mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8223585: vmTestbase/runtime/pcl/* get SEGV in MetadataOnStackClosure::do_metadata(Metadata*)+0x0
Adjust old method table by only one thread. Reviewed-by: kvn, jcbeyler, sspitsyn
This commit is contained in:
parent
08193be19c
commit
bc264ba95b
2 changed files with 7 additions and 4 deletions
|
@ -1143,7 +1143,6 @@ void nmethod::make_unloaded() {
|
|||
MutexLocker ml(SafepointSynchronize::is_at_safepoint() ? NULL : CodeCache_lock,
|
||||
Mutex::_no_safepoint_check_flag);
|
||||
Universe::heap()->unregister_nmethod(this);
|
||||
CodeCache::unregister_old_nmethod(this);
|
||||
}
|
||||
|
||||
// Clear the method of this dead nmethod
|
||||
|
@ -1336,7 +1335,6 @@ bool nmethod::make_not_entrant_or_zombie(int state) {
|
|||
MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
||||
if (nmethod_needs_unregister) {
|
||||
Universe::heap()->unregister_nmethod(this);
|
||||
CodeCache::unregister_old_nmethod(this);
|
||||
}
|
||||
flush_dependencies(/*delete_immediately*/true);
|
||||
}
|
||||
|
@ -1415,6 +1413,7 @@ void nmethod::flush() {
|
|||
}
|
||||
|
||||
Universe::heap()->flush_nmethod(this);
|
||||
CodeCache::unregister_old_nmethod(this);
|
||||
|
||||
CodeBlob::flush();
|
||||
CodeCache::free(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue