8330981: ZGC: Should not dedup strings in the finalizer graph

Reviewed-by: stefank, aboldtch, tschatzl
This commit is contained in:
Erik Österlund 2024-05-31 12:50:41 +00:00
parent d481215126
commit 2f2dc2289b
2 changed files with 8 additions and 4 deletions

View File

@ -367,8 +367,10 @@ void XMark::mark_and_follow(XMarkContext* context, XMarkStackEntry entry) {
const oop obj = XOop::from_address(addr);
follow_object(obj, finalizable);
// Try deduplicate
try_deduplicate(context, obj);
if (!finalizable) {
// Try deduplicate
try_deduplicate(context, obj);
}
}
}
}

View File

@ -457,8 +457,10 @@ void ZMark::mark_and_follow(ZMarkContext* context, ZMarkStackEntry entry) {
const oop obj = to_oop(addr);
follow_object(obj, finalizable);
// Try deduplicate
try_deduplicate(context, obj);
if (!finalizable) {
// Try deduplicate
try_deduplicate(context, obj);
}
}
}
}