Skip to content

Commit 5ae9a12

Browse files
committed
8268964: Remove unused ReferenceProcessorAtomicMutator
Reviewed-by: tschatzl, pliden
1 parent f4d20b2 commit 5ae9a12

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/hotspot/share/gc/shared/referenceProcessor.hpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ class ReferenceProcessor : public ReferenceDiscoverer {
397397

398398
// whether discovery is atomic wrt other collectors
399399
bool discovery_is_atomic() const { return _discovery_is_atomic; }
400-
void set_atomic_discovery(bool atomic) { _discovery_is_atomic = atomic; }
401400

402401
// whether discovery is done by multiple threads same-old-timeously
403402
bool discovery_is_mt() const { return _discovery_is_mt; }
@@ -561,27 +560,6 @@ class ReferenceProcessorIsAliveMutator: StackObj {
561560
}
562561
};
563562

564-
// A utility class to temporarily change the disposition
565-
// of the "discovery_is_atomic" field of the
566-
// given ReferenceProcessor in the scope that contains it.
567-
class ReferenceProcessorAtomicMutator: StackObj {
568-
private:
569-
ReferenceProcessor* _rp;
570-
bool _saved_atomic_discovery;
571-
572-
public:
573-
ReferenceProcessorAtomicMutator(ReferenceProcessor* rp,
574-
bool atomic):
575-
_rp(rp) {
576-
_saved_atomic_discovery = _rp->discovery_is_atomic();
577-
_rp->set_atomic_discovery(atomic);
578-
}
579-
580-
~ReferenceProcessorAtomicMutator() {
581-
_rp->set_atomic_discovery(_saved_atomic_discovery);
582-
}
583-
};
584-
585563
enum class RefProcThreadModel { Multi, Single };
586564

587565
/*

0 commit comments

Comments
 (0)