From 8c31a8f34f7c0dc33ba25ceabe15be3b29fd5a4c Mon Sep 17 00:00:00 2001 From: uvxwx <116727374+uvxwx@users.noreply.github.com> Date: Sat, 18 Feb 2023 22:48:58 +0400 Subject: [PATCH] JitRuntime: removed duplicate code (#397) --- src/asmjit/core/jitruntime.cpp | 3 --- 1 file changed, 3 deletions(-) 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);