--- old/src/share/vm/gc/g1/concurrentMarkThread.cpp 2016-03-09 16:00:22.303938029 -0500 +++ new/src/share/vm/gc/g1/concurrentMarkThread.cpp 2016-03-09 16:00:22.106940492 -0500 @@ -111,10 +111,10 @@ G1CollectedHeap* g1h = G1CollectedHeap::heap(); G1CollectorPolicy* g1_policy = g1h->g1_policy(); - while (!_should_terminate) { + while (!should_terminate()) { // wait until started is set. sleepBeforeNextCycle(); - if (_should_terminate) { + if (should_terminate()) { _cm->root_regions()->cancel_scan(); break; } @@ -295,7 +295,7 @@ assert(!in_progress(), "should have been cleared"); MutexLockerEx x(CGC_lock, Mutex::_no_safepoint_check_flag); - while (!started() && !_should_terminate) { + while (!started() && !should_terminate()) { CGC_lock->wait(Mutex::_no_safepoint_check_flag); }