equal
deleted
inserted
replaced
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"); |