Commits

Maciej Fijalkowski  committed 7ace34a

Improve the test and a fix

  • Participants
  • Parent commits ff681a0
  • Branches use-out-of-line-guards

Comments (0)

Files changed (2)

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

             mc = codebuf.MachineCodeBlockWrapper()
             mc.JMP_l(tgt)
             mc.copy_to_raw_memory(addr - 1)
+        # positions invalidated
+        looptoken.compiled_loop_token.invalidate_positions = []
 
 class CPU386(AbstractX86CPU):
     WORD = 4

File pypy/jit/metainterp/test/test_quasiimmut.py

             total = f(foo)
             foo.a = 2
             total += f(foo)
+            foo.a = 1
+            total += f(foo)
             return total
 
         res = self.meta_interp(main, [])
+        self.check_loop_count(7)
         assert res == main()
 
 class TestLLtypeGreenFieldsTests(QuasiImmutTests, LLJitMixin):