8222841: Incorrect static call stub interactions with class unloading

Reviewed-by: kvn, coleenp
This commit is contained in:
Erik Österlund 2019-05-14 12:07:24 +02:00
parent cc6cc06183
commit 5dd18ea628
12 changed files with 112 additions and 44 deletions

View file

@ -1555,7 +1555,7 @@ void nmethod::metadata_do(MetadataClosure* f) {
// Visit all immediate references that are embedded in the instruction stream.
RelocIterator iter(this, oops_reloc_begin());
while (iter.next()) {
if (iter.type() == relocInfo::metadata_type ) {
if (iter.type() == relocInfo::metadata_type) {
metadata_Relocation* r = iter.metadata_reloc();
// In this metadata, we must only follow those metadatas directly embedded in
// the code. Other metadatas (oop_index>0) are seen as part of