diff --git a/src/asmjit/core/jitruntime.cpp b/src/asmjit/core/jitruntime.cpp index be1c2f4..814353f 100644 --- a/src/asmjit/core/jitruntime.cpp +++ b/src/asmjit/core/jitruntime.cpp @@ -47,9 +47,6 @@ Error JitRuntime::_add(void** dst, CodeHolder* code) noexcept { if (codeSize < estimatedCodeSize) _allocator.shrink(rx, codeSize); - if (codeSize < estimatedCodeSize) - _allocator.shrink(rx, codeSize); - { VirtMem::ProtectJitReadWriteScope rwScope(rx, codeSize);