< prev index next >

src/share/vm/oops/klass.cpp

Print this page

        

*** 486,496 **** // 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) { oop obj = *p; if (obj != NULL) { G1SATBCardTableModRefBS::enqueue(obj); } } --- 486,496 ---- // 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 || (UseShenandoahGC && ShenandoahSATBBarrier)) { oop obj = *p; if (obj != NULL) { G1SATBCardTableModRefBS::enqueue(obj); } }
< prev index next >