hotspot/src/share/vm/gc/cms/vmCMSOperations.cpp
changeset 31358 693058672cc6
parent 31032 8e72621ca186
child 33107 77bf0d2069a3
--- a/hotspot/src/share/vm/gc/cms/vmCMSOperations.cpp	Wed Jun 17 15:45:43 2015 +0000
+++ b/hotspot/src/share/vm/gc/cms/vmCMSOperations.cpp	Wed Jun 17 14:44:54 2015 +0200
@@ -198,8 +198,7 @@
     assert(SafepointSynchronize::is_at_safepoint(),
       "We can only be executing this arm of if at a safepoint");
     GCCauseSetter gccs(gch, _gc_cause);
-    gch->do_full_collection(gch->must_clear_all_soft_refs(),
-                            0 /* collect only youngest gen */);
+    gch->do_full_collection(gch->must_clear_all_soft_refs(), GenCollectedHeap::YoungGen);
   } // Else no need for a foreground young gc
   assert((_gc_count_before < gch->total_collections()) ||
          (GC_locker::is_active() /* gc may have been skipped */