< prev index next >
src/share/vm/runtime/thread.cpp
Print this page
rev 11463 : Backport Traversal GC
*** 1954,1964 ****
#if INCLUDE_ALL_GCS
// We must flush the G1-related buffers before removing a thread
// from the list of active threads. We must do this after any deferred
// card marks have been flushed (above) so that any entries that are
// added to the thread's dirty card queue as a result are not lost.
! if (UseG1GC || (UseShenandoahGC && ShenandoahSATBBarrier)) {
flush_barrier_queues();
}
if (UseShenandoahGC && UseTLAB && gclab().is_initialized()) {
gclab().make_parsable(true);
}
--- 1954,1964 ----
#if INCLUDE_ALL_GCS
// We must flush the G1-related buffers before removing a thread
// from the list of active threads. We must do this after any deferred
// card marks have been flushed (above) so that any entries that are
// added to the thread's dirty card queue as a result are not lost.
! if (UseG1GC || (UseShenandoahGC)) {
flush_barrier_queues();
}
if (UseShenandoahGC && UseTLAB && gclab().is_initialized()) {
gclab().make_parsable(true);
}
*** 2044,2054 ****
if (UseTLAB) {
tlab().make_parsable(true); // retire TLAB, if any
}
#if INCLUDE_ALL_GCS
! if (UseG1GC || (UseShenandoahGC && ShenandoahSATBBarrier)) {
flush_barrier_queues();
}
if (UseShenandoahGC && UseTLAB && gclab().is_initialized()) {
gclab().make_parsable(true);
}
--- 2044,2054 ----
if (UseTLAB) {
tlab().make_parsable(true); // retire TLAB, if any
}
#if INCLUDE_ALL_GCS
! if (UseG1GC || (UseShenandoahGC)) {
flush_barrier_queues();
}
if (UseShenandoahGC && UseTLAB && gclab().is_initialized()) {
gclab().make_parsable(true);
}
< prev index next >