InternalMemorySizeLimit init bugfix

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: Id3afe265f1ce536ef0f9cc284cf469f50b46e5f1
This commit is contained in:
y00576111 2022-01-27 15:25:05 +08:00
parent 49f0a819b1
commit fb3ff49a84

View File

@ -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