hotspot/src/share/vm/memory/collectorPolicy.cpp
changeset 7419 263dd4e89b9d
parent 7397 5b173b4ca846
child 8687 264727307495
--- a/hotspot/src/share/vm/memory/collectorPolicy.cpp	Tue Dec 07 16:44:34 2010 -0800
+++ b/hotspot/src/share/vm/memory/collectorPolicy.cpp	Tue Dec 07 21:55:53 2010 -0800
@@ -685,7 +685,7 @@
       result = expand_heap_and_allocate(size, is_tlab);
     }
     return result;   // could be null if we are out of space
-  } else if (!gch->incremental_collection_will_fail()) {
+  } else if (!gch->incremental_collection_will_fail(false /* don't consult_young */)) {
     // Do an incremental collection.
     gch->do_collection(false            /* full */,
                        false            /* clear_all_soft_refs */,
@@ -693,6 +693,9 @@
                        is_tlab          /* is_tlab */,
                        number_of_generations() - 1 /* max_level */);
   } else {
+    if (Verbose && PrintGCDetails) {
+      gclog_or_tty->print(" :: Trying full because partial may fail :: ");
+    }
     // Try a full collection; see delta for bug id 6266275
     // for the original code and why this has been simplified
     // with from-space allocation criteria modified and