mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8240693: Sweeper should not examine dying metadata in is_unloading() nmethod during static call stub cleaning
Reviewed-by: kvn, coleenp, pliden
This commit is contained in:
parent
76a8557d0c
commit
a5b81d97f9
2 changed files with 7 additions and 2 deletions
|
@ -1073,8 +1073,8 @@ void CodeCache::old_nmethods_do(MetadataClosure* f) {
|
|||
length = old_compiled_method_table->length();
|
||||
for (int i = 0; i < length; i++) {
|
||||
CompiledMethod* cm = old_compiled_method_table->at(i);
|
||||
// Only walk alive nmethods, the dead ones will get removed by the sweeper.
|
||||
if (cm->is_alive()) {
|
||||
// Only walk alive nmethods, the dead ones will get removed by the sweeper or GC.
|
||||
if (cm->is_alive() && !cm->is_unloading()) {
|
||||
old_compiled_method_table->at(i)->metadata_do(f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue