diff src/share/vm/runtime/advancedThresholdPolicy.cpp @ 20651:600c44255e5f

8056071: compiler/whitebox/IsMethodCompilableTest.java fails with 'method() is not compilable after 3 iterations' Summary: Always use MDO if valid and always compile trivial methods with C1 if available. Reviewed-by: kvn, iveresov
author thartmann
date Tue, 11 Nov 2014 11:05:41 +0100
parents 41dcdd636080
children 7848fc12602b
line wrap: on
line diff
--- a/src/share/vm/runtime/advancedThresholdPolicy.cpp	Tue Nov 18 00:56:42 2014 +0000
+++ b/src/share/vm/runtime/advancedThresholdPolicy.cpp	Tue Nov 11 11:05:41 2014 +0100
@@ -316,8 +316,8 @@
  * c. 0 -> (3->2) -> 4.
  *    In this case we enqueue a method for compilation at level 3, but the C1 queue is long enough
  *    to enable the profiling to fully occur at level 0. In this case we change the compilation level
- *    of the method to 2, because it'll allow it to run much faster without full profiling while c2
- *    is compiling.
+ *    of the method to 2 while the request is still in-queue, because it'll allow it to run much faster
+ *    without full profiling while c2 is compiling.
  *
  * d. 0 -> 3 -> 1 or 0 -> 2 -> 1.
  *    After a method was once compiled with C1 it can be identified as trivial and be compiled to