< prev index next >

src/share/vm/gc/g1/g1MarkSweep.cpp

Print this page
rev 13233 : 8179268: Factor out AdaptiveSizePolicy from top-level interfaces CollectorPolicy and CollectedHeap

*** 58,72 **** void G1MarkSweep::invoke_at_safepoint(ReferenceProcessor* rp, bool clear_all_softrefs) { assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint"); - #ifdef ASSERT - if (G1CollectedHeap::heap()->collector_policy()->should_clear_all_soft_refs()) { - assert(clear_all_softrefs, "Policy should have been checked earler"); - } - #endif // hook up weak ref data so it can be used during Mark-Sweep assert(GenMarkSweep::ref_processor() == NULL, "no stomping"); assert(rp != NULL, "should be non-NULL"); assert(rp == G1CollectedHeap::heap()->ref_processor_stw(), "Precondition"); --- 58,67 ----
< prev index next >