102 template <bool nv, class OopClosureType>
103 inline int oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr);
104
105 // Reference processing part of the iterators.
106
107 // Specialized for [T = oop] or [T = narrowOop].
108 template <bool nv, typename T, class OopClosureType, class Contains>
109 inline void oop_oop_iterate_ref_processing_specialized(oop obj, OopClosureType* closure, Contains& contains);
110
111 // Only perform reference processing if the referent object is within mr.
112 template <bool nv, class OopClosureType>
113 inline void oop_oop_iterate_ref_processing_bounded(oop obj, OopClosureType* closure, MemRegion mr);
114
115 // Reference processing
116 template <bool nv, class OopClosureType>
117 inline void oop_oop_iterate_ref_processing(oop obj, OopClosureType* closure);
118
119
120 public:
121
122 #define InstanceRefKlass_OOP_OOP_ITERATE_DECL(OopClosureType, nv_suffix) \
123 int oop_oop_iterate##nv_suffix(oop obj, OopClosureType* closure); \
124 int oop_oop_iterate##nv_suffix##_m(oop obj, OopClosureType* closure, MemRegion mr);
125
126 ALL_OOP_OOP_ITERATE_CLOSURES_1(InstanceRefKlass_OOP_OOP_ITERATE_DECL)
127 ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceRefKlass_OOP_OOP_ITERATE_DECL)
128
129 #if INCLUDE_ALL_GCS
130 #define InstanceRefKlass_OOP_OOP_ITERATE_BACKWARDS_DECL(OopClosureType, nv_suffix) \
131 int oop_oop_iterate_backwards##nv_suffix(oop obj, OopClosureType* closure);
132
133 ALL_OOP_OOP_ITERATE_CLOSURES_1(InstanceRefKlass_OOP_OOP_ITERATE_BACKWARDS_DECL)
134 ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceRefKlass_OOP_OOP_ITERATE_BACKWARDS_DECL)
135 #endif // INCLUDE_ALL_GCS
136
137 static void release_and_notify_pending_list_lock(BasicLock *pending_list_basic_lock);
138 static void acquire_pending_list_lock(BasicLock *pending_list_basic_lock);
139 static bool owns_pending_list_lock(JavaThread* thread);
140
141 // Update non-static oop maps so 'referent', 'nextPending' and
142 // 'discovered' will look like non-oops
143 static void update_nonstatic_oop_maps(Klass* k);
144
145 public:
146 // Verification
147 void oop_verify_on(oop obj, outputStream* st);
148 };
149
150 #endif // SHARE_VM_OOPS_INSTANCEREFKLASS_HPP
|
102 template <bool nv, class OopClosureType>
103 inline int oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr);
104
105 // Reference processing part of the iterators.
106
107 // Specialized for [T = oop] or [T = narrowOop].
108 template <bool nv, typename T, class OopClosureType, class Contains>
109 inline void oop_oop_iterate_ref_processing_specialized(oop obj, OopClosureType* closure, Contains& contains);
110
111 // Only perform reference processing if the referent object is within mr.
112 template <bool nv, class OopClosureType>
113 inline void oop_oop_iterate_ref_processing_bounded(oop obj, OopClosureType* closure, MemRegion mr);
114
115 // Reference processing
116 template <bool nv, class OopClosureType>
117 inline void oop_oop_iterate_ref_processing(oop obj, OopClosureType* closure);
118
119
120 public:
121
122 ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_OOP_ITERATE_DECL)
123 ALL_OOP_OOP_ITERATE_CLOSURES_2(OOP_OOP_ITERATE_DECL)
124
125 #if INCLUDE_ALL_GCS
126 ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_OOP_ITERATE_DECL_BACKWARDS)
127 ALL_OOP_OOP_ITERATE_CLOSURES_2(OOP_OOP_ITERATE_DECL_BACKWARDS)
128 #endif // INCLUDE_ALL_GCS
129
130 static void release_and_notify_pending_list_lock(BasicLock *pending_list_basic_lock);
131 static void acquire_pending_list_lock(BasicLock *pending_list_basic_lock);
132 static bool owns_pending_list_lock(JavaThread* thread);
133
134 // Update non-static oop maps so 'referent', 'nextPending' and
135 // 'discovered' will look like non-oops
136 static void update_nonstatic_oop_maps(Klass* k);
137
138 public:
139 // Verification
140 void oop_verify_on(oop obj, outputStream* st);
141 };
142
143 #endif // SHARE_VM_OOPS_INSTANCEREFKLASS_HPP
|