8330981: ZGC: Should not dedup strings in the finalizer graph
Reviewed-by: stefank, aboldtch, tschatzl
This commit is contained in:
parent
d481215126
commit
2f2dc2289b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user