Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentMarkThread.cpp @ 1019:035d2e036a9b
6885041: G1: inconsistent thread dump
Summary: When G1 is enabled, thread dumps are inconsistent as the info for some of the G1 threads is not formatted properly.
Reviewed-by: ysr, johnc
author | tonyp |
---|---|
date | Fri, 02 Oct 2009 16:12:07 -0400 |
parents | e1fdf4fd34dc |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1018:8afee153274a | 1019:035d2e036a9b |
---|---|
284 while (!_has_terminated) { | 284 while (!_has_terminated) { |
285 Terminator_lock->wait(); | 285 Terminator_lock->wait(); |
286 } | 286 } |
287 } | 287 } |
288 | 288 |
289 void ConcurrentMarkThread::print() { | 289 void ConcurrentMarkThread::print() const { |
290 gclog_or_tty->print("\"Concurrent Mark GC Thread\" "); | 290 print_on(tty); |
291 Thread::print(); | 291 } |
292 gclog_or_tty->cr(); | 292 |
293 void ConcurrentMarkThread::print_on(outputStream* st) const { | |
294 st->print("\"G1 Main Concurrent Mark GC Thread\" "); | |
295 Thread::print_on(st); | |
296 st->cr(); | |
293 } | 297 } |
294 | 298 |
295 void ConcurrentMarkThread::sleepBeforeNextCycle() { | 299 void ConcurrentMarkThread::sleepBeforeNextCycle() { |
296 clear_in_progress(); | 300 clear_in_progress(); |
297 // We join here because we don't want to do the "shouldConcurrentMark()" | 301 // We join here because we don't want to do the "shouldConcurrentMark()" |