mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
6976372: # assert(_owner == Thread::current()) failed: invariant
Reviewed-by: kvn, twisti
This commit is contained in:
parent
a96301c84e
commit
0f1f7c3b7f
2 changed files with 5 additions and 9 deletions
|
@ -2493,15 +2493,13 @@ nmethod *AdapterHandlerLibrary::create_native_wrapper(methodHandle method) {
|
|||
}
|
||||
|
||||
// Must unlock before calling set_code
|
||||
|
||||
// Install the generated code.
|
||||
if (nm != NULL) {
|
||||
method->set_code(method, nm);
|
||||
nm->post_compiled_method_load_event();
|
||||
} else {
|
||||
// CodeCache is full, disable compilation
|
||||
// Ought to log this but compile log is only per compile thread
|
||||
// and we're some non descript Java thread.
|
||||
MutexUnlocker mu(AdapterHandlerLibrary_lock);
|
||||
CompileBroker::handle_full_code_cache();
|
||||
}
|
||||
return nm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue