hotspot/src/share/vm/gc/cms/vmCMSOperations.cpp
changeset 31358 693058672cc6
parent 31032 8e72621ca186
child 33107 77bf0d2069a3
equal deleted inserted replaced
31357:0cef600ba9b7 31358:693058672cc6
   196     // out to a full collection in this attempt, but that's
   196     // out to a full collection in this attempt, but that's
   197     // for the future.
   197     // for the future.
   198     assert(SafepointSynchronize::is_at_safepoint(),
   198     assert(SafepointSynchronize::is_at_safepoint(),
   199       "We can only be executing this arm of if at a safepoint");
   199       "We can only be executing this arm of if at a safepoint");
   200     GCCauseSetter gccs(gch, _gc_cause);
   200     GCCauseSetter gccs(gch, _gc_cause);
   201     gch->do_full_collection(gch->must_clear_all_soft_refs(),
   201     gch->do_full_collection(gch->must_clear_all_soft_refs(), GenCollectedHeap::YoungGen);
   202                             0 /* collect only youngest gen */);
       
   203   } // Else no need for a foreground young gc
   202   } // Else no need for a foreground young gc
   204   assert((_gc_count_before < gch->total_collections()) ||
   203   assert((_gc_count_before < gch->total_collections()) ||
   205          (GC_locker::is_active() /* gc may have been skipped */
   204          (GC_locker::is_active() /* gc may have been skipped */
   206           && (_gc_count_before == gch->total_collections())),
   205           && (_gc_count_before == gch->total_collections())),
   207          "total_collections() should be monotonically increasing");
   206          "total_collections() should be monotonically increasing");