< prev index next >

src/hotspot/share/gc/z/zRootsIterator.cpp

Print this page
rev 53848 : 8219469: ZGC: Extract functions out from ZNMethodTable into new ZNMethod class

*** 31,41 **** #include "gc/shared/barrierSetNMethod.hpp" #include "gc/shared/oopStorageParState.inline.hpp" #include "gc/shared/suspendibleThreadSet.hpp" #include "gc/z/zBarrierSetNMethod.hpp" #include "gc/z/zGlobals.hpp" ! #include "gc/z/zNMethodTable.hpp" #include "gc/z/zOopClosures.inline.hpp" #include "gc/z/zRootsIterator.hpp" #include "gc/z/zStat.hpp" #include "gc/z/zThreadLocalData.hpp" #include "memory/resourceArea.hpp" --- 31,41 ---- #include "gc/shared/barrierSetNMethod.hpp" #include "gc/shared/oopStorageParState.inline.hpp" #include "gc/shared/suspendibleThreadSet.hpp" #include "gc/z/zBarrierSetNMethod.hpp" #include "gc/z/zGlobals.hpp" ! #include "gc/z/zNMethod.hpp" #include "gc/z/zOopClosures.inline.hpp" #include "gc/z/zRootsIterator.hpp" #include "gc/z/zStat.hpp" #include "gc/z/zThreadLocalData.hpp" #include "memory/resourceArea.hpp"
*** 173,193 **** Threads::change_thread_claim_parity(); COMPILER2_PRESENT(DerivedPointerTable::clear()); if (ClassUnloading) { nmethod::oops_do_marking_prologue(); } else { ! ZNMethodTable::nmethods_do_begin(); } } ZRootsIterator::~ZRootsIterator() { ZStatTimer timer(ZSubPhasePauseRootsTeardown); ResourceMark rm; if (ClassUnloading) { nmethod::oops_do_marking_epilogue(); } else { ! ZNMethodTable::nmethods_do_end(); } JvmtiExport::gc_epilogue(); COMPILER2_PRESENT(DerivedPointerTable::update_pointers()); Threads::assert_all_threads_claimed(); --- 173,193 ---- Threads::change_thread_claim_parity(); COMPILER2_PRESENT(DerivedPointerTable::clear()); if (ClassUnloading) { nmethod::oops_do_marking_prologue(); } else { ! ZNMethod::oops_do_begin(); } } ZRootsIterator::~ZRootsIterator() { ZStatTimer timer(ZSubPhasePauseRootsTeardown); ResourceMark rm; if (ClassUnloading) { nmethod::oops_do_marking_epilogue(); } else { ! ZNMethod::oops_do_end(); } JvmtiExport::gc_epilogue(); COMPILER2_PRESENT(DerivedPointerTable::update_pointers()); Threads::assert_all_threads_claimed();
*** 230,240 **** Threads::possibly_parallel_threads_do(true, cl); } void ZRootsIterator::do_code_cache(ZRootsIteratorClosure* cl) { ZStatTimer timer(ZSubPhasePauseRootsCodeCache); ! ZNMethodTable::oops_do(cl); } void ZRootsIterator::oops_do(ZRootsIteratorClosure* cl, bool visit_jvmti_weak_export) { ZStatTimer timer(ZSubPhasePauseRoots); _universe.oops_do(cl); --- 230,240 ---- Threads::possibly_parallel_threads_do(true, cl); } void ZRootsIterator::do_code_cache(ZRootsIteratorClosure* cl) { ZStatTimer timer(ZSubPhasePauseRootsCodeCache); ! ZNMethod::oops_do(cl); } void ZRootsIterator::oops_do(ZRootsIteratorClosure* cl, bool visit_jvmti_weak_export) { ZStatTimer timer(ZSubPhasePauseRoots); _universe.oops_do(cl);
< prev index next >