< prev index next >
src/share/vm/prims/jvm.cpp
Print this page
rev 11463 : Backport Traversal GC
*** 585,595 ****
static void fixup_cloned_reference(ReferenceType ref_type, oop src, oop clone) {
// If G1 is enabled then we need to register a non-null referent
// with the SATB barrier.
#if INCLUDE_ALL_GCS
! if (UseG1GC || UseShenandoahGC) {
oop referent = java_lang_ref_Reference::referent(clone);
if (referent != NULL) {
G1SATBCardTableModRefBS::enqueue(referent);
}
}
--- 585,595 ----
static void fixup_cloned_reference(ReferenceType ref_type, oop src, oop clone) {
// If G1 is enabled then we need to register a non-null referent
// with the SATB barrier.
#if INCLUDE_ALL_GCS
! if (UseG1GC || (UseShenandoahGC && ShenandoahKeepAliveBarrier)) {
oop referent = java_lang_ref_Reference::referent(clone);
if (referent != NULL) {
G1SATBCardTableModRefBS::enqueue(referent);
}
}
< prev index next >