Skip to content
Permalink
Browse files
8260414: Remove unused set_single_threaded_mode() method in task exec…
…utor

Reviewed-by: kbarrett, ayang
  • Loading branch information
lkorinth committed Feb 15, 2021
1 parent c6eedda commit 3882fda83bebf4a8c8100fd59c37f04610491ce7
Showing with 1 addition and 9 deletions.
  1. +0 −5 src/hotspot/share/gc/shared/referenceProcessor.cpp
  2. +1 −4 src/hotspot/share/gc/shared/referenceProcessor.hpp
@@ -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;
@@ -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 @@ class AbstractRefProcTaskExecutor {

// 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.

1 comment on commit 3882fda

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 3882fda Feb 15, 2021

Please sign in to comment.