diff -r 425412369353 -r 35db8fba55f9 src/hotspot/share/gc/z/zRootsIterator.cpp --- a/src/hotspot/share/gc/z/zRootsIterator.cpp Wed Aug 21 16:19:17 2019 -0400 +++ b/src/hotspot/share/gc/z/zRootsIterator.cpp Wed Aug 21 18:42:30 2019 -0400 @@ -30,6 +30,7 @@ #include "gc/shared/barrierSet.hpp" #include "gc/shared/barrierSetNMethod.hpp" #include "gc/shared/oopStorageParState.inline.hpp" +#include "gc/shared/oopStorageSet.hpp" #include "gc/shared/suspendibleThreadSet.hpp" #include "gc/z/zBarrierSetNMethod.hpp" #include "gc/z/zGlobals.hpp" @@ -43,7 +44,6 @@ #include "prims/jvmtiExport.hpp" #include "prims/resolvedMethodTable.hpp" #include "runtime/atomic.hpp" -#include "runtime/jniHandles.hpp" #include "runtime/thread.hpp" #include "runtime/safepoint.hpp" #include "runtime/synchronizer.hpp" @@ -265,8 +265,8 @@ } ZConcurrentRootsIterator::ZConcurrentRootsIterator(int cld_claim) : - _jni_handles_iter(JNIHandles::global_handles()), - _vm_handles_iter(SystemDictionary::vm_global_oop_storage()), + _jni_handles_iter(OopStorageSet::jni_global()), + _vm_handles_iter(OopStorageSet::vm_global()), _cld_claim(cld_claim), _jni_handles(this), _vm_handles(this), @@ -337,10 +337,10 @@ } ZConcurrentWeakRootsIterator::ZConcurrentWeakRootsIterator() : - _vm_weak_handles_iter(SystemDictionary::vm_weak_oop_storage()), - _jni_weak_handles_iter(JNIHandles::weak_global_handles()), - _string_table_iter(StringTable::weak_storage()), - _resolved_method_table_iter(ResolvedMethodTable::weak_storage()), + _vm_weak_handles_iter(OopStorageSet::vm_weak()), + _jni_weak_handles_iter(OopStorageSet::jni_weak()), + _string_table_iter(OopStorageSet::string_table_weak()), + _resolved_method_table_iter(OopStorageSet::resolved_method_table_weak()), _vm_weak_handles(this), _jni_weak_handles(this), _string_table(this),