8343508: Parallel: Use ordinary klass accessor in verify_filler_in_dense_prefix

Reviewed-by: tschatzl, zgu
This commit is contained in:
Albert Mingkun Yang 2024-11-13 08:32:44 +00:00
parent c78de7bf5f
commit e9ede464b2

View File

@ -1914,7 +1914,7 @@ void PSParallelCompact::verify_filler_in_dense_prefix() {
oop obj = cast_to_oop(cur_addr);
oopDesc::verify(obj);
if (!mark_bitmap()->is_marked(cur_addr)) {
Klass* k = cast_to_oop(cur_addr)->klass_without_asserts();
Klass* k = cast_to_oop(cur_addr)->klass();
assert(k == Universe::fillerArrayKlass() || k == vmClasses::FillerObject_klass(), "inv");
}
cur_addr += obj->size();