From 7aa1f7e8dfa18ef7f58d9f17a6ef79749d5f8923 Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Mon, 19 Jan 2026 14:23:08 +0100 Subject: [PATCH] rename of method --- src/hotspot/share/gc/shared/workerThread.cpp | 4 ++-- src/hotspot/share/gc/shared/workerThread.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hotspot/share/gc/shared/workerThread.cpp b/src/hotspot/share/gc/shared/workerThread.cpp index c669c80ac8a..2e6fd768593 100644 --- a/src/hotspot/share/gc/shared/workerThread.cpp +++ b/src/hotspot/share/gc/shared/workerThread.cpp @@ -93,7 +93,7 @@ void WorkerThreads::initialize_workers() { } } -bool WorkerThreads::allow_creation_failure() const { +bool WorkerThreads::allow_inject_creation_failure() const { if (!is_init_completed()) { // Never allow creation failures during VM init return false; @@ -108,7 +108,7 @@ bool WorkerThreads::allow_creation_failure() const { } WorkerThread* WorkerThreads::create_worker(uint name_suffix) { - if (InjectGCWorkerCreationFailure && allow_creation_failure()) { + if (InjectGCWorkerCreationFailure && allow_inject_creation_failure()) { return nullptr; } diff --git a/src/hotspot/share/gc/shared/workerThread.hpp b/src/hotspot/share/gc/shared/workerThread.hpp index 0b4da21ebc4..abb977decc9 100644 --- a/src/hotspot/share/gc/shared/workerThread.hpp +++ b/src/hotspot/share/gc/shared/workerThread.hpp @@ -103,7 +103,7 @@ public: WorkerThreads(const char* name, uint max_workers); void initialize_workers(); - bool allow_creation_failure() const; + bool allow_inject_creation_failure() const; uint max_workers() const { return _max_workers; } uint created_workers() const { return _created_workers; }