diff --git a/runtime/ecma_vm.cpp b/runtime/ecma_vm.cpp index f2a5098ffedccd43ce0532d78ee8f0255e981420..f1b94e6a167131a8a749830ab5d001b8e264c16c 100644 --- a/runtime/ecma_vm.cpp +++ b/runtime/ecma_vm.cpp @@ -1,5 +1,5 @@ /** - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -64,6 +64,7 @@ #include "runtime/include/thread_scopes.h" #include "runtime/mem/gc/gc_root.h" #include "runtime/mem/gc/reference-processor/empty_reference_processor.h" +#include "runtime/mem/lock_config_helper.h" #include "runtime/mem/object_helpers.h" #include "plugins/ecmascript/runtime/compiler/ecmascript_runtime_interface.h" #include "plugins/ecmascript/runtime/ecma_compiler.h" @@ -95,7 +96,7 @@ static mem::MemoryManager *CreateMM(const LanguageContext &ctx, mem::InternalAll nullptr, // register_finalize_reference_func options.GetMaxGlobalRefSize(), // max_global_ref_size options.IsGlobalReferenceSizeCheckEnabled(), // is_global_reference_size_check_enabled - true, // is_single_thread + MT_MODE_SINGLE, // multithreading mode options.IsUseTlabForAllocations(), // is_use_tlab_for_allocations options.IsStartAsZygote(), // is_start_as_zygote };