From 61a659f4bfe066250af871b9d84943bed526e71d Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Tue, 16 Feb 2021 18:29:41 +0000 Subject: [PATCH] 8260415: Remove unused class ReferenceProcessorMTProcMutator Reviewed-by: ayang, sjohanss --- .../share/gc/shared/referenceProcessor.hpp | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/hotspot/share/gc/shared/referenceProcessor.hpp b/src/hotspot/share/gc/shared/referenceProcessor.hpp index 1af26228dff..26060e61bc5 100644 --- a/src/hotspot/share/gc/shared/referenceProcessor.hpp +++ b/src/hotspot/share/gc/shared/referenceProcessor.hpp @@ -601,28 +601,6 @@ class ReferenceProcessorAtomicMutator: StackObj { } }; - -// A utility class to temporarily change the MT processing -// disposition of the given ReferenceProcessor instance -// in the scope that contains it. -class ReferenceProcessorMTProcMutator: StackObj { - private: - ReferenceProcessor* _rp; - bool _saved_mt; - - public: - ReferenceProcessorMTProcMutator(ReferenceProcessor* rp, - bool mt): - _rp(rp) { - _saved_mt = _rp->processing_is_mt(); - _rp->set_mt_processing(mt); - } - - ~ReferenceProcessorMTProcMutator() { - _rp->set_mt_processing(_saved_mt); - } -}; - // This class is an interface used to implement task execution for the // reference processing. class AbstractRefProcTaskExecutor {