diff --git a/src/hotspot/share/gc/shared/referenceProcessor.cpp b/src/hotspot/share/gc/shared/referenceProcessor.cpp index e2fed87ffb3..1779bdfabca 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..1af26228dff 100644 --- a/src/hotspot/share/gc/shared/referenceProcessor.hpp +++ b/src/hotspot/share/gc/shared/referenceProcessor.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -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.