rename of method

This commit is contained in:
Leo Korinth 2026-01-19 14:23:08 +01:00
parent 5703deb18b
commit 7aa1f7e8df
2 changed files with 3 additions and 3 deletions

View File

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

View File

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