RFR(S): 8061486: [TESTBUG] compiler/whitebox/ tests fail : must be osr_compiled (reappeared in nightlies)
tobias.hartmann at oracle.com
Wed Oct 22 14:49:39 UTC 2014
please review the following patch.
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
 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