|
29 | 29 | #include "gc/shared/barrierSet.hpp"
|
30 | 30 | #include "gc/shared/barrierSetNMethod.hpp"
|
31 | 31 | #include "gc/shared/oopStorageSet.hpp"
|
32 |
| -#include "gc/shared/oopStorageParState.inline.hpp" |
33 | 32 | #include "gc/shared/oopStorageSetParState.inline.hpp"
|
34 | 33 | #include "gc/shared/suspendibleThreadSet.hpp"
|
35 | 34 | #include "gc/z/zBarrierSetNMethod.hpp"
|
@@ -62,18 +61,6 @@ static const ZStatSubPhase ZSubPhaseConcurrentRootsCodeCache("Concurrent Roots C
|
62 | 61 | static const ZStatSubPhase ZSubPhasePauseWeakRootsJVMTIWeakExport("Pause Weak Roots JVMTIWeakExport");
|
63 | 62 | static const ZStatSubPhase ZSubPhaseConcurrentWeakRootsOopStorageSet("Concurrent Weak Roots OopStorageSet");
|
64 | 63 |
|
65 |
| -template <typename T, void (T::*F)(ZRootsIteratorClosure*)> |
66 |
| -ZSerialOopsDo<T, F>::ZSerialOopsDo(T* iter) : |
67 |
| - _iter(iter), |
68 |
| - _claimed(false) {} |
69 |
| - |
70 |
| -template <typename T, void (T::*F)(ZRootsIteratorClosure*)> |
71 |
| -void ZSerialOopsDo<T, F>::oops_do(ZRootsIteratorClosure* cl) { |
72 |
| - if (!_claimed && Atomic::cmpxchg(&_claimed, false, true) == false) { |
73 |
| - (_iter->*F)(cl); |
74 |
| - } |
75 |
| -} |
76 |
| - |
77 | 64 | template <typename T, void (T::*F)(ZRootsIteratorClosure*)>
|
78 | 65 | ZParallelOopsDo<T, F>::ZParallelOopsDo(T* iter) :
|
79 | 66 | _iter(iter),
|
@@ -101,21 +88,6 @@ void ZSerialWeakOopsDo<T, F>::weak_oops_do(BoolObjectClosure* is_alive, ZRootsIt
|
101 | 88 | }
|
102 | 89 | }
|
103 | 90 |
|
104 |
| -template <typename T, void (T::*F)(BoolObjectClosure*, ZRootsIteratorClosure*)> |
105 |
| -ZParallelWeakOopsDo<T, F>::ZParallelWeakOopsDo(T* iter) : |
106 |
| - _iter(iter), |
107 |
| - _completed(false) {} |
108 |
| - |
109 |
| -template <typename T, void (T::*F)(BoolObjectClosure*, ZRootsIteratorClosure*)> |
110 |
| -void ZParallelWeakOopsDo<T, F>::weak_oops_do(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl) { |
111 |
| - if (!_completed) { |
112 |
| - (_iter->*F)(is_alive, cl); |
113 |
| - if (!_completed) { |
114 |
| - _completed = true; |
115 |
| - } |
116 |
| - } |
117 |
| -} |
118 |
| - |
119 | 91 | ZJavaThreadsIterator::ZJavaThreadsIterator() :
|
120 | 92 | _threads(),
|
121 | 93 | _claimed(0) {}
|
|
0 commit comments