Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8260414

Remove unused set_single_threaded_mode() method in task executor

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b10

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lkorinth Leo Korinth
              Reporter:
              lkorinth Leo Korinth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: