[pypy-svn] r77190 - pypy/trunk/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Mon Sep 20 10:38:41 CEST 2010


Author: fijal
Date: Mon Sep 20 10:38:40 2010
New Revision: 77190

Modified:
   pypy/trunk/pypy/jit/backend/x86/assembler.py
Log:
Sprinkle a bit more valgrind_invalidated here and there


Modified: pypy/trunk/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/trunk/pypy/jit/backend/x86/assembler.py	Mon Sep 20 10:38:40 2010
@@ -475,6 +475,7 @@
         # align, e.g. for Mac OS X        
         aligned_words = align_stack_words(words+2)-2 # 2 = EIP+EBP
         mc.writeimm32(-WORD * aligned_words)
+        mc.valgrind_invalidated()
         mc.done()
 
     def _call_header(self):
@@ -597,6 +598,7 @@
         target = newlooptoken._x86_direct_bootstrap_code
         mc = codebuf.InMemoryCodeBuilder(oldadr, oldadr + 16)
         mc.JMP(imm(target))
+        mc.valgrind_invalidated()
         mc.done()
 
     def _assemble_bootstrap_code(self, inputargs, arglocs):



More information about the Pypy-commit mailing list