src/share/vm/gc_implementation/g1/concurrentMark.cpp
Print this page
*** 3769,3779 ****
// Decide what the target size is, depending whether we're going to
// drain it partially (so that other tasks can steal if they run out
// of things to do) or totally (at the very end).
size_t target_size;
if (partially) {
! target_size = MIN2((size_t)_task_queue->max_elems()/3, GCDrainStackTargetSize);
} else {
target_size = 0;
}
if (_task_queue->size() > target_size) {
--- 3769,3779 ----
// Decide what the target size is, depending whether we're going to
// drain it partially (so that other tasks can steal if they run out
// of things to do) or totally (at the very end).
size_t target_size;
if (partially) {
! target_size = MIN2((_task_queue->max_elems()/3), GCDrainStackTargetSize);
} else {
target_size = 0;
}
if (_task_queue->size() > target_size) {