From d74f4e35f68815305deecaa46f5a205dc70a0c32 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 9 Feb 2018 15:59:00 +0000 Subject: [PATCH] block_of_code: Increase constant pool size --- src/backend_x64/block_of_code.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend_x64/block_of_code.cpp b/src/backend_x64/block_of_code.cpp index e0123a7d..c0c6dd94 100644 --- a/src/backend_x64/block_of_code.cpp +++ b/src/backend_x64/block_of_code.cpp @@ -33,12 +33,13 @@ const Xbyak::Reg64 BlockOfCode::ABI_PARAM4 = Xbyak::util::rcx; constexpr size_t TOTAL_CODE_SIZE = 128 * 1024 * 1024; constexpr size_t FAR_CODE_OFFSET = 100 * 1024 * 1024; +constexpr size_t CONSTANT_POOL_SIZE = 2 * 1024 * 1024; BlockOfCode::BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi) : Xbyak::CodeGenerator(TOTAL_CODE_SIZE) , cb(std::move(cb)) , jsi(jsi) - , constant_pool(*this, 256) + , constant_pool(*this, CONSTANT_POOL_SIZE) { GenRunCode(); exception_handler.Register(*this);