Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8260301: misc gc/g1/unloading tests fails with "RuntimeException: Method could not be enqueued for compilation at level N" #2356

wants to merge 1 commit into from
Changes from all commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.


Just for now

@@ -991,6 +991,15 @@ bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* T
if ((!is_blocking && is_queued) || nm != NULL) {
return true;
// Check code again because compilation may be finished before Compile_lock is acquired.
if (bci == InvocationEntryBci) {
CompiledMethod* code = mh->code();
if (code != NULL && code->as_nmethod_or_null() != NULL) {
return true;
} else if (mh->lookup_osr_nmethod_for(bci, comp_level, false) != NULL) {
return true;
tty->print("WB error: failed to %s compile at level %d method ", is_blocking ? "blocking" : "", comp_level);
ProTip! Use n and p to navigate between commits in a pull request.