mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
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:
parent
643553d0e6
commit
d14cf2e13c
5 changed files with 14 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue