From 3f1e5fb7f7a5ac6088c642a8660b6a142b977214 Mon Sep 17 00:00:00 2001 From: Ilya Trubachev Date: Fri, 9 Sep 2022 16:49:11 +0300 Subject: [PATCH] increase compiler size in aot Signed-off-by: Ilya Trubachev --- aot/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aot/main.cpp b/aot/main.cpp index c0eb079b2..11ec60d43 100644 --- a/aot/main.cpp +++ b/aot/main.cpp @@ -32,7 +32,7 @@ class MemManager { public: explicit MemManager() { - constexpr auto COMPILER_SIZE = 128_MB; + constexpr auto COMPILER_SIZE = 256_MB; MemConfig::Initialize(0, 0, COMPILER_SIZE, 0); PoolManager::Initialize(PoolType::MMAP); @@ -68,6 +68,8 @@ static int GenerateProgram(panda::pandasm::Program *prog, const std::string &out } panda::bytecodeopt::OPTIONS.SetOptLevel(optLevel); + // Set default value instead of maximum set in panda::bytecodeopt::SetCompilerOptions() + panda::compiler::OPTIONS.SetCompilerMaxBytecodeSize(panda::compiler::OPTIONS.GetCompilerMaxBytecodeSize()); panda::bytecodeopt::OptimizeBytecode(prog, mapsp, output, true, true); } #endif -- Gitee