Skip to content

Commit 531c56e

Browse files
committed
8256278: Shenandoah: Avoid num of dead callback from weak processor in Shenandoah root verifier
Reviewed-by: rkennke, shade
1 parent b5a9c92 commit 531c56e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/hotspot/share/gc/shenandoah/shenandoahRootVerifier.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "gc/shenandoah/shenandoahUtils.hpp"
3737
#include "gc/shared/oopStorage.inline.hpp"
3838
#include "gc/shared/oopStorageSet.hpp"
39-
#include "gc/shared/weakProcessor.inline.hpp"
4039
#include "runtime/thread.hpp"
4140
#include "utilities/debug.hpp"
4241

@@ -100,8 +99,8 @@ void ShenandoahRootVerifier::oops_do(OopClosure* oops) {
10099

101100
if (verify(WeakRoots)) {
102101
shenandoah_assert_safepoint();
103-
AlwaysTrueClosure always_true;
104-
WeakProcessor::weak_oops_do(&always_true, oops);
102+
serial_weak_roots_do(oops);
103+
concurrent_weak_roots_do(oops);
105104
} else if (verify(SerialWeakRoots)) {
106105
shenandoah_assert_safepoint();
107106
serial_weak_roots_do(oops);

0 commit comments

Comments
 (0)