Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp @ 751:20c6f43950b5
6490395: G1: Tidy up command line flags.
Summary: Change G1 flag names to be more consistent and disable some in 'product' mode.
Reviewed-by: tonyp, iveresov
author | johnc |
---|---|
date | Thu, 30 Apr 2009 15:07:53 -0700 |
parents | 4f360ec815ba |
children | 315a5d70b295 |
comparison
equal
deleted
inserted
replaced
748:51285b431bb2 | 751:20c6f43950b5 |
---|---|
51 while (_cg1r->enabled()) { | 51 while (_cg1r->enabled()) { |
52 MutexUnlocker ux(G1ConcRefine_mon); | 52 MutexUnlocker ux(G1ConcRefine_mon); |
53 ResourceMark rm; | 53 ResourceMark rm; |
54 HandleMark hm; | 54 HandleMark hm; |
55 | 55 |
56 if (TraceG1Refine) gclog_or_tty->print_cr("G1-Refine starting pass"); | 56 if (G1TraceConcurrentRefinement) { |
57 gclog_or_tty->print_cr("G1-Refine starting pass"); | |
58 } | |
57 _sts.join(); | 59 _sts.join(); |
58 bool no_sleep = _cg1r->refine(); | 60 bool no_sleep = _cg1r->refine(); |
59 _sts.leave(); | 61 _sts.leave(); |
60 if (!no_sleep) { | 62 if (!no_sleep) { |
61 MutexLockerEx x(CGC_lock, Mutex::_no_safepoint_check_flag); | 63 MutexLockerEx x(CGC_lock, Mutex::_no_safepoint_check_flag); |
205 terminate(); | 207 terminate(); |
206 } | 208 } |
207 | 209 |
208 | 210 |
209 void ConcurrentG1RefineThread::yield() { | 211 void ConcurrentG1RefineThread::yield() { |
210 if (TraceG1Refine) gclog_or_tty->print_cr("G1-Refine-yield"); | 212 if (G1TraceConcurrentRefinement) gclog_or_tty->print_cr("G1-Refine-yield"); |
211 _sts.yield("G1 refine"); | 213 _sts.yield("G1 refine"); |
212 if (TraceG1Refine) gclog_or_tty->print_cr("G1-Refine-yield-end"); | 214 if (G1TraceConcurrentRefinement) gclog_or_tty->print_cr("G1-Refine-yield-end"); |
213 } | 215 } |
214 | 216 |
215 void ConcurrentG1RefineThread::stop() { | 217 void ConcurrentG1RefineThread::stop() { |
216 // it is ok to take late safepoints here, if needed | 218 // it is ok to take late safepoints here, if needed |
217 { | 219 { |
228 MutexLockerEx mu(Terminator_lock); | 230 MutexLockerEx mu(Terminator_lock); |
229 while (!_has_terminated) { | 231 while (!_has_terminated) { |
230 Terminator_lock->wait(); | 232 Terminator_lock->wait(); |
231 } | 233 } |
232 } | 234 } |
233 if (TraceG1Refine) gclog_or_tty->print_cr("G1-Refine-stop"); | 235 if (G1TraceConcurrentRefinement) gclog_or_tty->print_cr("G1-Refine-stop"); |
234 } | 236 } |
235 | 237 |
236 void ConcurrentG1RefineThread::print() { | 238 void ConcurrentG1RefineThread::print() { |
237 gclog_or_tty->print("\"Concurrent G1 Refinement Thread\" "); | 239 gclog_or_tty->print("\"Concurrent G1 Refinement Thread\" "); |
238 Thread::print(); | 240 Thread::print(); |