1. Pypy
  2. Untitled project
  3. pypy


Armin Rigo  committed f21ab1e

Move gc_writebarrier() closer to where it needs to be: just before calling the assembler

  • Participants
  • Parent commits 2df4a2c
  • Branches default

Comments (0)

Files changed (2)

File rpython/jit/backend/llsupport/gc.py

View file
  • Ignore whitespace
     def malloc_jitframe(self, frame_info):
         """ Allocate a new frame, overwritten by tests
-        frame = jitframe.JITFRAME.allocate(frame_info)
-        llop.gc_writebarrier(lltype.Void, frame)
-        return frame
+        return jitframe.JITFRAME.allocate(frame_info)
 class JitFrameDescrs:
     def _freeze_(self):

File rpython/jit/backend/llsupport/llmodel.py

View file
  • Ignore whitespace
                         assert kind == history.REF
                         self.set_ref_value(ll_frame, num, arg)
+                llop.gc_writebarrier(lltype.Void, ll_frame)
                 ll_frame = func(ll_frame)
                 if not self.translate_support_code: