hotspot/src/share/vm/memory/defNewGeneration.cpp
changeset 7378 fe845b64d7fb
parent 6986 daf18aec57b5
child 7397 5b173b4ca846
--- a/hotspot/src/share/vm/memory/defNewGeneration.cpp	Tue Nov 09 10:47:20 2010 -0800
+++ b/hotspot/src/share/vm/memory/defNewGeneration.cpp	Thu Nov 11 10:42:43 2010 -0800
@@ -838,7 +838,9 @@
         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