From 9a720e63bf0d561b5e8e3259aa178fe5aabda89d Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Tue, 7 Jul 2026 13:41:24 -0400 Subject: [PATCH] ARM32 JIT change for running on real ARMv7 I don't understand the change, so this is really a minimal update to get the ARM32 JIT working on real hardware. --- erts/emulator/beam/jit/arm/32/beam_asm_module.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erts/emulator/beam/jit/arm/32/beam_asm_module.cpp b/erts/emulator/beam/jit/arm/32/beam_asm_module.cpp index fccf68c03351..cf951a6d2e17 100644 --- a/erts/emulator/beam/jit/arm/32/beam_asm_module.cpp +++ b/erts/emulator/beam/jit/arm/32/beam_asm_module.cpp @@ -567,7 +567,10 @@ arm::Mem BeamModuleAssembler::embed_constant(const ArgVal &value, } auto it = _constants.emplace(value, - Constant{.latestOffset = maxOffset, + Constant{.latestOffset = std::max( + currOffset, + maxOffset - + STUB_CHECK_INTERVAL), .anchor = a.newLabel(), .value = value}); const Constant &constant = it->second;