Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/defNewGeneration.cpp @ 1953:8d81b4a1d3e1
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
author | ysr |
---|---|
date | Thu, 11 Nov 2010 10:42:43 -0800 |
parents | c766bae6c14d |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1952:4df7f8cba524 | 1953:8d81b4a1d3e1 |
---|---|
836 // a full collection in between. | 836 // a full collection in between. |
837 if (!seen_incremental_collection_failed && | 837 if (!seen_incremental_collection_failed && |
838 gch->incremental_collection_failed()) { | 838 gch->incremental_collection_failed()) { |
839 seen_incremental_collection_failed = true; | 839 seen_incremental_collection_failed = true; |
840 } else if (seen_incremental_collection_failed) { | 840 } else if (seen_incremental_collection_failed) { |
841 assert(!gch->incremental_collection_failed(), "Twice in a row"); | 841 assert(gch->gc_cause() == GCCause::_scavenge_alot || !gch->incremental_collection_failed(), |
842 "Twice in a row"); | |
843 | |
842 seen_incremental_collection_failed = false; | 844 seen_incremental_collection_failed = false; |
843 } | 845 } |
844 #endif // ASSERT | 846 #endif // ASSERT |
845 } | 847 } |
846 | 848 |