@@ -168,30 +168,13 @@ ShenandoahRootScanner::~ShenandoahRootScanner() {
168
168
}
169
169
170
170
void ShenandoahRootScanner::roots_do (uint worker_id, OopClosure* oops) {
171
- CLDToOopClosure clds_cl (oops, ClassLoaderData::_claim_strong);
172
171
MarkingCodeBlobClosure blobs_cl (oops, !CodeBlobToOopClosure::FixRelocations);
173
- roots_do (worker_id, oops, &clds_cl, & blobs_cl);
172
+ roots_do (worker_id, oops, &blobs_cl);
174
173
}
175
174
176
- void ShenandoahRootScanner::strong_roots_do (uint worker_id, OopClosure* oops) {
177
- CLDToOopClosure clds_cl (oops, ClassLoaderData::_claim_strong);
178
- MarkingCodeBlobClosure blobs_cl (oops, !CodeBlobToOopClosure::FixRelocations);
179
- strong_roots_do (worker_id, oops, &clds_cl, &blobs_cl);
180
- }
181
-
182
- void ShenandoahRootScanner::roots_do (uint worker_id, OopClosure* oops, CLDClosure* clds, CodeBlobClosure* code, ThreadClosure *tc) {
183
- assert (!ShenandoahSafepoint::is_at_shenandoah_safepoint () ||
184
- !ShenandoahHeap::heap ()->unload_classes (),
185
- " Expect class unloading when Shenandoah cycle is running" );
186
- assert (clds != NULL , " Only possible with CLD closure" );
187
-
188
- ShenandoahParallelOopsDoThreadClosure tc_cl (oops, code, tc);
189
- ResourceMark rm;
190
- _thread_roots.threads_do (&tc_cl, worker_id);
191
- }
175
+ void ShenandoahRootScanner::roots_do (uint worker_id, OopClosure* oops, CodeBlobClosure* code, ThreadClosure *tc) {
176
+ assert (ShenandoahSafepoint::is_at_shenandoah_safepoint (), " Must be at a safepoint" );
192
177
193
- void ShenandoahRootScanner::strong_roots_do (uint worker_id, OopClosure* oops, CLDClosure* clds, CodeBlobClosure* code, ThreadClosure* tc) {
194
- assert (ShenandoahHeap::heap ()->unload_classes (), " Should be used during class unloading" );
195
178
ShenandoahParallelOopsDoThreadClosure tc_cl (oops, code, tc);
196
179
ResourceMark rm;
197
180
_thread_roots.threads_do (&tc_cl, worker_id);
0 commit comments