--- old/src/share/vm/gc/g1/concurrentG1RefineThread.cpp 2016-02-24 13:40:59.815564488 -0500 +++ new/src/share/vm/gc/g1/concurrentG1RefineThread.cpp 2016-02-24 13:40:59.676566226 -0500 @@ -107,15 +107,6 @@ } } -void ConcurrentG1RefineThread::run() { - initialize_in_thread(); - wait_for_universe_init(); - - run_service(); - - terminate(); -} - void ConcurrentG1RefineThread::run_service() { _vtime_start = os::elapsedVTime(); @@ -166,23 +157,6 @@ log_debug(gc, refine)("Stopping %d", _worker_id); } -void ConcurrentG1RefineThread::stop() { - // it is ok to take late safepoints here, if needed - { - MutexLockerEx mu(Terminator_lock); - _should_terminate = true; - } - - stop_service(); - - { - MutexLockerEx mu(Terminator_lock); - while (!_has_terminated) { - Terminator_lock->wait(); - } - } -} - void ConcurrentG1RefineThread::stop_service() { MutexLockerEx x(_monitor, Mutex::_no_safepoint_check_flag); _monitor->notify();