6919638: CMS: ExplicitGCInvokesConcurrent misinteracts with gc locker

GC-locker induced concurrent full gc should be asynchronous; policy now controlled by a separate flag, which defaults to false.

Reviewed-by: jmasa
This commit is contained in:
Y. Srinivas Ramakrishna 2010-05-03 20:19:05 -07:00
parent 643553d0e6
commit d14cf2e13c
5 changed files with 14 additions and 9 deletions

View file

@ -1424,10 +1424,9 @@ bool ConcurrentMarkSweepGeneration::should_collect(bool full,
bool CMSCollector::shouldConcurrentCollect() {
if (_full_gc_requested) {
assert(ExplicitGCInvokesConcurrent, "Unexpected state");
if (Verbose && PrintGCDetails) {
gclog_or_tty->print_cr("CMSCollector: collect because of explicit "
" gc request");
" gc request (or gc_locker)");
}
return true;
}