mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7001033: assert(gch->gc_cause() == GCCause::_scavenge_alot || !gch->incremental_collection_failed())
7002546: regression on SpecJbb2005 on 7b118 comparing to 7b117 on small heaps Relaxed assertion checking related to incremental_collection_failed flag to allow for ExplicitGCInvokesConcurrent behaviour where we do not want a failing scavenge to bail to a stop-world collection. Parameterized incremental_collection_will_fail() so we can selectively use, or not use, as appropriate, the statistical prediction at specific use sites. This essentially reverts the scavenge bail-out logic to what it was prior to some recent changes that had inadvertently started using the statistical prediction which can be noisy in the presence of bursty loads. Added some associated verbose non-product debugging messages. Reviewed-by: johnc, tonyp
This commit is contained in:
parent
4aaa89ea60
commit
544b475fc5
6 changed files with 54 additions and 23 deletions
|
@ -935,7 +935,7 @@ void GenCollectedHeap::collect_mostly_concurrent(GCCause::Cause cause) {
|
|||
void GenCollectedHeap::do_full_collection(bool clear_all_soft_refs,
|
||||
int max_level) {
|
||||
int local_max_level;
|
||||
if (!incremental_collection_will_fail() &&
|
||||
if (!incremental_collection_will_fail(false /* don't consult_young */) &&
|
||||
gc_cause() == GCCause::_gc_locker) {
|
||||
local_max_level = 0;
|
||||
} else {
|
||||
|
@ -951,7 +951,7 @@ void GenCollectedHeap::do_full_collection(bool clear_all_soft_refs,
|
|||
// A scavenge may not have been attempted, or may have
|
||||
// been attempted and failed, because the old gen was too full
|
||||
if (local_max_level == 0 && gc_cause() == GCCause::_gc_locker &&
|
||||
incremental_collection_will_fail()) {
|
||||
incremental_collection_will_fail(false /* don't consult_young */)) {
|
||||
if (PrintGCDetails) {
|
||||
gclog_or_tty->print_cr("GC locker: Trying a full collection "
|
||||
"because scavenge failed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue