diff --git a/src/hotspot/share/gc/shared/referenceProcessor.cpp b/src/hotspot/share/gc/shared/referenceProcessor.cpp
index c4ba975cfea..3de2b0d8017 100644
--- a/src/hotspot/share/gc/shared/referenceProcessor.cpp
+++ b/src/hotspot/share/gc/shared/referenceProcessor.cpp
@@ -245,11 +245,6 @@ ReferenceProcessorStats ReferenceProcessor::process_discovered_references(
process_phantom_refs(is_alive, keep_alive, complete_gc, task_executor, phase_times);
}
- if (task_executor != NULL) {
- // Record the work done by the parallel workers.
- task_executor->set_single_threaded_mode();
- }
-
phase_times->set_total_time_ms((os::elapsedTime() - start_time) * 1000);
return stats;
diff --git a/src/hotspot/share/gc/shared/referenceProcessor.hpp b/src/hotspot/share/gc/shared/referenceProcessor.hpp
index 695bdf49053..f0dfd1d1bd9 100644
--- a/src/hotspot/share/gc/shared/referenceProcessor.hpp
+++ b/src/hotspot/share/gc/shared/referenceProcessor.hpp
@@ -633,9 +633,6 @@ public:
// Executes a task using worker threads.
virtual void execute(ProcessTask& task, uint ergo_workers) = 0;
-
- // Switch to single threaded mode.
- virtual void set_single_threaded_mode() { };
};
// Abstract reference processing task to execute.
index c4ba975cfea..3de2b0d8017 100644
--- a/src/hotspot/share/gc/shared/referenceProcessor.cpp
+++ b/src/hotspot/share/gc/shared/referenceProcessor.cpp
@@ -245,11 +245,6 @@ ReferenceProcessorStats ReferenceProcessor::process_discovered_references(
process_phantom_refs(is_alive, keep_alive, complete_gc, task_executor, phase_times);
}
- if (task_executor != NULL) {
- // Record the work done by the parallel workers.
- task_executor->set_single_threaded_mode();
- }
-
phase_times->set_total_time_ms((os::elapsedTime() - start_time) * 1000);
return stats;
diff --git a/src/hotspot/share/gc/shared/referenceProcessor.hpp b/src/hotspot/share/gc/shared/referenceProcessor.hpp
index 695bdf49053..f0dfd1d1bd9 100644
--- a/src/hotspot/share/gc/shared/referenceProcessor.hpp
+++ b/src/hotspot/share/gc/shared/referenceProcessor.hpp
@@ -633,9 +633,6 @@ public:
// Executes a task using worker threads.
virtual void execute(ProcessTask& task, uint ergo_workers) = 0;
-
- // Switch to single threaded mode.
- virtual void set_single_threaded_mode() { };
};
// Abstract reference processing task to execute.