1. cbjadwani
  2. pypy

Commits

Maciej Fijalkowski  committed 645f736 Draft

hopefully fix test_jit_get_stats

  • Participants
  • Parent commits f2805b6
  • Branches default

Comments (0)

Files changed (2)

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

View file
         self._build_stack_check_slowpath()
         if gc_ll_descr.gcrootmap:
             self._build_release_gil(gc_ll_descr.gcrootmap)
-        debug_start('jit-backend-counts')
-        self.set_debug(have_debug_prints())
-        debug_stop('jit-backend-counts')
+        if not self._debug:
+            # if self._debug is already set it means that someone called
+            # set_debug by hand before initializing the assembler. Leave it
+            # as it is
+            debug_start('jit-backend-counts')
+            self.set_debug(have_debug_prints())
+            debug_stop('jit-backend-counts')
 
     def setup(self, looptoken):
         assert self.memcpy_addr != 0, "setup_once() not called?"

File pypy/jit/backend/x86/test/test_ztranslation.py

View file
         assert bound & (bound-1) == 0       # a power of two
 
     def test_jit_get_stats(self):
-        py.test.xfail()
         driver = JitDriver(greens = [], reds = ['i'])
         
         def f():