[9] RFR(S): 8061486: [TESTBUG] compiler/whitebox/ tests fail : must be osr_compiled (reappeared in nightlies)

Tobias Hartmann tobias.hartmann at oracle.com
Wed Oct 22 14:49:39 UTC 2014


please review the following patch.

Bug: https://bugs.openjdk.java.net/browse/JDK-8061486
Webrev: http://cr.openjdk.java.net/~thartmann/8061486/webrev.00/

JDK-8060454 added a deoptimization before triggering the OSR compilation to
avoid non-OSR compilations blocking OSR compilations.
This is not sufficient because non-OSR compilations may also be triggered at
backedges while the loop is being executed (if the backedge threshold is not yet
reached but the invocation threshold is).

Call warmup code from OSR triggering method, make sure non-OSR compilation is
triggered and wait for completion until OSR compilation is triggered.

- Failing test on Windows and Linux
- Whitebox tests with different parameters on JPRT


[1] See 'AdvancedThresholdPolicy::method_back_branch_event()':
   // Use loop event as an opportunity to also check if there's been
   // enough calls.

More information about the hotspot-compiler-dev mailing list