mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6998802: ScavengeALot: assert(!gch->incremental_collection_failed()) failed: Twice in a row
Weaken assert by excluding scavenges resulting from -XX:+ScavengeALot stress-testing option. Reviewed-by: jmasa, tonyp
This commit is contained in:
parent
579c9e4b03
commit
33688e92b9
1 changed files with 3 additions and 1 deletions
|
@ -838,7 +838,9 @@ void DefNewGeneration::gc_epilogue(bool full) {
|
||||||
gch->incremental_collection_failed()) {
|
gch->incremental_collection_failed()) {
|
||||||
seen_incremental_collection_failed = true;
|
seen_incremental_collection_failed = true;
|
||||||
} else if (seen_incremental_collection_failed) {
|
} else if (seen_incremental_collection_failed) {
|
||||||
assert(!gch->incremental_collection_failed(), "Twice in a row");
|
assert(gch->gc_cause() == GCCause::_scavenge_alot || !gch->incremental_collection_failed(),
|
||||||
|
"Twice in a row");
|
||||||
|
|
||||||
seen_incremental_collection_failed = false;
|
seen_incremental_collection_failed = false;
|
||||||
}
|
}
|
||||||
#endif // ASSERT
|
#endif // ASSERT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue