8260301: misc gc/g1/unloading tests fails with "RuntimeException: Method could not be enqueued for compilation at level N" #2356
On return WB wait to acquire Compile_lock before checking compilation status
This lock is used by ciEnv for compiled code publishing:
So while WB waits the lock compiler thread can finish compilation, register nmethod and clear method's queued_for_compilation bit.
The problem is that WB check
The fix is to check compiled code again similar to check in CompileBroker:
Passed hs-tier1-4 testing and 100 x vmTestbase/gc/g1/unloading/tests/unloading_compilation_*.
@vnkozlov This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 30 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
@vnkozlov Since your change was applied there have been 30 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit f025bc1.