File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
src/hotspot/share/gc/shared Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,6 @@ class ReferenceProcessor : public ReferenceDiscoverer {
397
397
398
398
// whether discovery is atomic wrt other collectors
399
399
bool discovery_is_atomic () const { return _discovery_is_atomic; }
400
- void set_atomic_discovery (bool atomic) { _discovery_is_atomic = atomic; }
401
400
402
401
// whether discovery is done by multiple threads same-old-timeously
403
402
bool discovery_is_mt () const { return _discovery_is_mt; }
@@ -561,27 +560,6 @@ class ReferenceProcessorIsAliveMutator: StackObj {
561
560
}
562
561
};
563
562
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
-
585
563
enum class RefProcThreadModel { Multi, Single };
586
564
587
565
/*
You can’t perform that action at this time.
0 commit comments