From f045a20583d2579eec1cfba6321288fdf1b32da1 Mon Sep 17 00:00:00 2001 From: Sarychev Konstantin Date: Tue, 6 Aug 2024 18:02:48 +0800 Subject: [PATCH] [MM] Fix heap manager multithreading options Issue:#IAI0Y6 Testing:'ninja all tests' Signed-off-by:Sarychev Konstantin --- runtime/ecma_vm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/ecma_vm.cpp b/runtime/ecma_vm.cpp index f2a5098ff..f1b94e6a1 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 }; -- Gitee