diff --git a/aot/main.cpp b/aot/main.cpp index c0eb079b20e3a4fc3055f2251ee4624deff2fb53..11ec60d43e3c54bb76ce01f4ccf20acc48588ca1 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