Skip to content

Commit

Permalink
Merge pull request #7315 from amicic/splitlist_targetcpus
Browse files Browse the repository at this point in the history
Use OMRPORT_CPU_TARGET for split list calculation
  • Loading branch information
babsingh authored Apr 22, 2024
2 parents 40107cb + 40aab8f commit 15eb2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc/base/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ MM_Configuration::initializeGCParameters(MM_EnvironmentBase *env)
/* initialize default split freelist split amount */
if (!extensions->splitFreeListAmountForced) {
OMRPORT_ACCESS_FROM_OMRPORT(env->getPortLibrary());
uintptr_t freeListSplitAmount = (omrsysinfo_get_number_CPUs_by_type(OMRPORT_CPU_ONLINE) - 1) / 8 + 1;
uintptr_t freeListSplitAmount = (omrsysinfo_get_number_CPUs_by_type(OMRPORT_CPU_TARGET) - 1) / 8 + 1;
#if defined(OMR_GC_MODRON_SCAVENGER)
if (extensions->scavengerEnabled) {
freeListSplitAmount = splitAmount;
Expand Down

0 comments on commit 15eb2a8

Please sign in to comment.