提交 c38c069b 编写于 作者: Y ysr

6998802: ScavengeALot: assert(!gch->incremental_collection_failed()) failed: Twice in a row

Summary: Weaken assert by excluding scavenges resulting from -XX:+ScavengeALot stress-testing option.
Reviewed-by: jmasa, tonyp
上级 1f8c1415
......@@ -838,7 +838,9 @@ void DefNewGeneration::gc_epilogue(bool full) {
gch->incremental_collection_failed()) {
seen_incremental_collection_failed = true;
} 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;
}
#endif // ASSERT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册