Commits

Antonio Cuni committed 8df1e16

tentative RPython fix: in ResumeDataDirectReader virtuals_int_cache contains real integers, while in ResumeDataBox reader it contains boxes, so we cannot initialize it by 0

Comments (0)

Files changed (1)

pypy/jit/metainterp/resume.py

     virtuals_cache = None
     virtuals_int_cache = None
     virtual_default = None
-    virtual_int_default = 0
+    virtual_int_default = None
 
     def _init(self, cpu, storage):
         self.cpu = cpu
 class ResumeDataDirectReader(AbstractResumeDataReader):
     unique_id = lambda: None
     virtual_default = lltype.nullptr(llmemory.GCREF.TO)
+    virtual_int_default = 0
     resume_after_guard_not_forced = 0
     #             0: not a GUARD_NOT_FORCED
     #             1: in handle_async_forcing