Skip to content

Commit

Permalink
Merge pull request eclipse-omr#7212 from amicic/gcmaxthreads
Browse files Browse the repository at this point in the history
Use gcThreadCountSpecified
  • Loading branch information
babsingh authored Dec 19, 2023
2 parents 7a7426b + e4bf396 commit 2067ba1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions gc/base/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,7 @@ MM_Configuration::initializeGCThreadCount(MM_EnvironmentBase* env)
{
MM_GCExtensionsBase* extensions = env->getExtensions();

/* to be checked against gcThreadCountSpecified, once downstream projects properly set it */
if (!extensions->gcThreadCountForced) {
if (!extensions->gcThreadCountSpecified) {
extensions->gcThreadCount = defaultGCThreadCount(env);
}
}
Expand Down
2 changes: 0 additions & 2 deletions gc/base/ParallelDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ MM_ParallelDispatcher::contractThreadPool(MM_EnvironmentBase *env, uintptr_t new

Assert_MM_true(_threadShutdownCount == expectedThreadShutdownThread);

_extensions->gcThreadCount = newThreadCount;
_activeThreadCount = newThreadCount;
_threadCount = newThreadCount;
_threadCountMaximum = newThreadCount;
Expand Down Expand Up @@ -748,7 +747,6 @@ MM_ParallelDispatcher::expandThreadPool(MM_EnvironmentBase *env)
newThreadCount = _threadShutdownCount + 1;
}

_extensions->gcThreadCount = newThreadCount;
_threadCount = newThreadCount;
_threadCountMaximum = newThreadCount;
}
Expand Down

0 comments on commit 2067ba1

Please sign in to comment.