< prev index next >

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

Print this page

        

*** 60,70 **** void G1MarkSweep::invoke_at_safepoint(ReferenceProcessor* rp, bool clear_all_softrefs) { assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint"); HandleMark hm; // Discard invalid handles created during gc ! #if defined(COMPILER2) || INCLUDE_JVMCI DerivedPointerTable::clear(); #endif #ifdef ASSERT if (G1CollectedHeap::heap()->collector_policy()->should_clear_all_soft_refs()) { assert(clear_all_softrefs, "Policy should have been checked earler"); --- 60,70 ---- void G1MarkSweep::invoke_at_safepoint(ReferenceProcessor* rp, bool clear_all_softrefs) { assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint"); HandleMark hm; // Discard invalid handles created during gc ! #if COMPILER2_OR_JVMCI DerivedPointerTable::clear(); #endif #ifdef ASSERT if (G1CollectedHeap::heap()->collector_policy()->should_clear_all_soft_refs()) { assert(clear_all_softrefs, "Policy should have been checked earler");
*** 94,104 **** mark_sweep_phase1(marked_for_unloading, clear_all_softrefs); // Prepare compaction. mark_sweep_phase2(); ! #if defined(COMPILER2) || INCLUDE_JVMCI // Don't add any more derived pointers during phase3 DerivedPointerTable::set_active(false); #endif // Adjust all pointers. --- 94,104 ---- mark_sweep_phase1(marked_for_unloading, clear_all_softrefs); // Prepare compaction. mark_sweep_phase2(); ! #if COMPILER2_OR_JVMCI // Don't add any more derived pointers during phase3 DerivedPointerTable::set_active(false); #endif // Adjust all pointers.
*** 109,119 **** GenMarkSweep::restore_marks(); BiasedLocking::restore_marks(); GenMarkSweep::deallocate_stacks(); ! #if defined(COMPILER2) || INCLUDE_JVMCI // Now update the derived pointers. DerivedPointerTable::update_pointers(); #endif CodeCache::gc_epilogue(); --- 109,119 ---- GenMarkSweep::restore_marks(); BiasedLocking::restore_marks(); GenMarkSweep::deallocate_stacks(); ! #if COMPILER2_OR_JVMCI // Now update the derived pointers. DerivedPointerTable::update_pointers(); #endif CodeCache::gc_epilogue();
*** 202,212 **** g1h->partial_cleaning(&GenMarkSweep::is_alive, true, true, G1StringDedup::is_enabled()); } if (VerifyDuringGC) { HandleMark hm; // handle scope ! #if defined(COMPILER2) || INCLUDE_JVMCI DerivedPointerTableDeactivate dpt_deact; #endif g1h->prepare_for_verify(); // Note: we can verify only the heap here. When an object is // marked, the previous value of the mark word (including --- 202,212 ---- g1h->partial_cleaning(&GenMarkSweep::is_alive, true, true, G1StringDedup::is_enabled()); } if (VerifyDuringGC) { HandleMark hm; // handle scope ! #if COMPILER2_OR_JVMCI DerivedPointerTableDeactivate dpt_deact; #endif g1h->prepare_for_verify(); // Note: we can verify only the heap here. When an object is // marked, the previous value of the mark word (including
< prev index next >