diff options
Diffstat (limited to 'src/vm/ceemain.cpp')
-rw-r--r-- | src/vm/ceemain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/ceemain.cpp b/src/vm/ceemain.cpp index 3ca3356717..10216f58ec 100644 --- a/src/vm/ceemain.cpp +++ b/src/vm/ceemain.cpp @@ -458,7 +458,7 @@ void InitializeStartupFlags() g_IGCconcurrent = 0; - g_heap_type = (flags & STARTUP_SERVER_GC) == 0 ? GC_HEAP_WKS : GC_HEAP_SVR; + g_heap_type = ((flags & STARTUP_SERVER_GC) && GetCurrentProcessCpuCount() > 1) ? GC_HEAP_SVR : GC_HEAP_WKS; g_IGCHoardVM = (flags & STARTUP_HOARD_GC_VM) == 0 ? 0 : 1; } #endif // CROSSGEN_COMPILE |