8270386: Better verification of scan methods

Reviewed-by: hseigel, coleenp, mschoene, rhalade
This commit is contained in:
Ioi Lam 2021-08-16 19:37:15 +00:00 committed by Henry Jen
parent 9a94fbc793
commit fa47c368d4

View file

@ -2417,7 +2417,9 @@ void InstanceKlass::metaspace_pointers_do(MetaspaceClosure* it) {
} else {
it->push(&_default_vtable_indices);
}
it->push(&_fields);
// _fields might be written into by Rewriter::scan_method() -> fd.set_has_initialized_final_update()
it->push(&_fields, MetaspaceClosure::_writable);
if (itable_length() > 0) {
itableOffsetEntry* ioe = (itableOffsetEntry*)start_of_itable();