Commits

Armin Rigo committed 2d26e16

It's actually easy to fix this assumption by making sure this particular
descr doesn't move any more.

  • Participants
  • Parent commits 693c4c1
  • Branches remove-globals-in-jit

Comments (0)

Files changed (1)

File pypy/jit/backend/x86/assembler.py

         _offset, _size, _ = unpack_fielddescr(descrs.jf_descr)
         fail_descr = self.cpu.get_fail_descr_from_number(value)
         value = fail_descr.hide(self.cpu)
-        value = rffi.cast(lltype.Signed, value)       # XXX assumes non-moving
+        rgc._make_sure_does_not_move(value)
+        value = rffi.cast(lltype.Signed, value)
         self.mc.CMP_mi((eax.value, _offset), value)
         # patched later
         self.mc.J_il8(rx86.Conditions['E'], 0) # goto B if we get 'done_with_this_frame'