< prev index next >
src/share/vm/prims/jvmtiGetLoadedClasses.cpp
Print this page
rev 11463 : Backport Traversal GC
*** 44,54 ****
// CLD/SD, and its _java_mirror or _class_loader can be stored in a root
// or a reachable object making it alive again. The SATB part of G1 needs
// to get notified about this potential resurrection, otherwise the marking
// might not find the object.
#if INCLUDE_ALL_GCS
! if ((o != NULL) && (UseG1GC || UseShenandoahGC)) {
G1SATBCardTableModRefBS::enqueue(o);
}
#endif
}
--- 44,54 ----
// CLD/SD, and its _java_mirror or _class_loader can be stored in a root
// or a reachable object making it alive again. The SATB part of G1 needs
// to get notified about this potential resurrection, otherwise the marking
// might not find the object.
#if INCLUDE_ALL_GCS
! if ((o != NULL) && (UseG1GC || (UseShenandoahGC && ShenandoahKeepAliveBarrier))) {
G1SATBCardTableModRefBS::enqueue(o);
}
#endif
}
< prev index next >