mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
InternalMemorySizeLimit init bugfix
Signed-off-by: y00576111 <yaojian16@huawei.com> Change-Id: Id3afe265f1ce536ef0f9cc284cf469f50b46e5f1
This commit is contained in:
parent
49f0a819b1
commit
fb3ff49a84
@ -104,9 +104,6 @@ template<typename T>
|
||||
using JSHandle = ecmascript::JSHandle<T>;
|
||||
|
||||
namespace {
|
||||
constexpr uint32_t INTERNAL_POOL_SIZE = 0;
|
||||
constexpr uint32_t CODE_POOL_SIZE = 0;
|
||||
constexpr uint32_t COMPILER_POOL_SIZE = 0;
|
||||
// NOLINTNEXTLINE(fuchsia-statically-constructed-objects)
|
||||
constexpr std::string_view ENTRY_POINTER = "_GLOBAL::func_main_0";
|
||||
}
|
||||
@ -123,9 +120,6 @@ bool JSNApi::CreateRuntime(const RuntimeOption &option)
|
||||
runtimeOptions.SetArkProperties(option.GetArkProperties());
|
||||
// Mem
|
||||
runtimeOptions.SetHeapSizeLimit(option.GetGcPoolSize());
|
||||
runtimeOptions.SetInternalMemorySizeLimit(INTERNAL_POOL_SIZE);
|
||||
runtimeOptions.SetCodeCacheSizeLimit(CODE_POOL_SIZE);
|
||||
runtimeOptions.SetCompilerMemorySizeLimit(COMPILER_POOL_SIZE);
|
||||
runtimeOptions.SetInternalAllocatorType("malloc");
|
||||
|
||||
// Boot
|
||||
|
Loading…
Reference in New Issue
Block a user