Using java -XX:+PrintFlagsFinal
I found the TieredCompilation
flag, and I read about it a bit online.
Yet, I still don't know exactly what happens when setting it to false
.
I know that the compilation system supports 5 execution levels, basically splitted into interpreter, C1 and C2:
- level 0 - interpreter
- level 1 - C1 with full optimization (no profiling)
- level 2 - C1 with invocation and backedge counters
- level 3 - C1 with full profiling (level 2 + MDO)
- level 4 - C2
Two questions:
(1) By setting -XX:-TieredCompilation
, are some of this levels just disabled? If yes, which?
(2) Is there some flag to decide whether to disable C1 or C2, or to not compile at all?
See Question&Answers more detail:os