< prev index next >

src/share/vm/oops/klass.cpp

Print this page

        

@@ -486,11 +486,11 @@
 // This barrier is used by G1 to remember the old oop values, so
 // that we don't forget any objects that were live at the snapshot at
 // the beginning. This function is only used when we write oops into Klasses.
 void Klass::klass_update_barrier_set_pre(oop* p, oop v) {
 #if INCLUDE_ALL_GCS
-  if (UseG1GC) {
+  if (UseG1GC || (UseShenandoahGC && ShenandoahSATBBarrier)) {
     oop obj = *p;
     if (obj != NULL) {
       G1SATBCardTableModRefBS::enqueue(obj);
     }
   }
< prev index next >