Commits

Alex Gaynor committed f82ae0d

(fijal, alex): fix a crash in the JIT when memory locations are more than 4GB apart

  • Participants
  • Parent commits b564452

Comments (0)

Files changed (1)

rpython/jit/backend/x86/assembler.py

         propagate_exception_descr = rffi.cast(lltype.Signed,
                   cast_instance_to_gcref(self.cpu.propagate_exception_descr))
         ofs = self.cpu.get_ofs_of_frame_field('jf_descr')
-        self.mc.MOV_bi(ofs, propagate_exception_descr)
+        self.mc.MOV(RawEbpLoc(ofs), imm(propagate_exception_descr))
         self.mc.MOV_rr(eax.value, ebp.value)
         #
         self._call_footer()