Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat single CPU as if -Xgc:noConcurrentMark were set #19919

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion runtime/gc_modron_startup/mminit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2842,9 +2842,12 @@ configurateGCWithPolicyAndOptionsStandard(MM_EnvironmentBase *env)
MM_Configuration *
configurateGCWithPolicyAndOptions(OMR_VM* omrVM)
{
J9JavaVM *vm = (J9JavaVM*) omrVM->_language_vm;
PORT_ACCESS_FROM_JAVAVM(vm);
MM_Configuration *result = NULL;
MM_GCExtensions *extensions = MM_GCExtensions::getExtensions(omrVM);
MM_EnvironmentBase env(omrVM);
bool ccMark = false;

switch(extensions->configurationOptions._gcPolicy) {
case gc_policy_optthruput:
Expand All @@ -2866,8 +2869,9 @@ configurateGCWithPolicyAndOptions(OMR_VM* omrVM)
case gc_policy_gencon:
extensions->gcModeString = "-Xgcpolicy:gencon";
omrVM->gcPolicy = J9_GC_POLICY_GENCON;
ccMark = (1 != j9sysinfo_get_number_CPUs_by_type(J9PORT_CPU_TARGET));
/* scavenge, concurrentMark, noConcurrentSweep, loa */
setDefaultConfigOptions(extensions, true, true, false, true);
setDefaultConfigOptions(extensions, true, ccMark, false, true);
result = configurateGCWithPolicyAndOptionsStandard(&env);
break;

Expand Down