diff --git a/ecmascript/runtime.cpp b/ecmascript/runtime.cpp index 51c415c17ef0d156803f736cd19cb09225ac8883..879ec1c68695da41232cb61d0ee324f60e671b0b 100644 --- a/ecmascript/runtime.cpp +++ b/ecmascript/runtime.cpp @@ -160,11 +160,8 @@ void Runtime::PostInitialization(const EcmaVM *vm) void Runtime::InitGCConfig(const JSRuntimeOptions &options) { - bool defaultValue = options.IsEnableCMCGC(); - g_isEnableCMCGC = IsEnableCMCGC(defaultValue); - if (g_isEnableCMCGC) { - g_maxRegularHeapObjectSize = 32_KB; - } + g_isEnableCMCGC = true; + g_maxRegularHeapObjectSize = 32_KB; } void Runtime::DestroyIfLastVm()