mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8215491: ICStubInterface::finalize finds zombie nmethod with ZGC concurrent class unloading
Reviewed-by: dlong, coleenp
This commit is contained in:
parent
1cc5cf4c02
commit
83adde9866
2 changed files with 7 additions and 6 deletions
|
@ -1283,6 +1283,13 @@ bool nmethod::make_not_entrant_or_zombie(int state) {
|
|||
flush_dependencies(/*delete_immediately*/true);
|
||||
}
|
||||
|
||||
// Clear ICStubs to prevent back patching stubs of zombie or flushed
|
||||
// nmethods during the next safepoint (see ICStub::finalize).
|
||||
{
|
||||
CompiledICLocker ml(this);
|
||||
clear_ic_stubs();
|
||||
}
|
||||
|
||||
// zombie only - if a JVMTI agent has enabled the CompiledMethodUnload
|
||||
// event and it hasn't already been reported for this nmethod then
|
||||
// report it now. The event may have been reported earlier if the GC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue