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; }