Author: Carl Friedrich Bolz <[email protected]>
Branch: guard-compatible
Changeset: r83322:9ebf2fc754a2
Date: 2016-03-24 14:01 +0100
http://bitbucket.org/pypy/pypy/changeset/9ebf2fc754a2/

Log:    inform valgrind of the patching

diff --git a/rpython/jit/backend/x86/guard_compat.py 
b/rpython/jit/backend/x86/guard_compat.py
--- a/rpython/jit/backend/x86/guard_compat.py
+++ b/rpython/jit/backend/x86/guard_compat.py
@@ -2,7 +2,7 @@
 from rpython.rlib.objectmodel import we_are_translated
 from rpython.rtyper.lltypesystem import lltype, rffi
 from rpython.jit.backend.x86.arch import WORD, IS_X86_32, IS_X86_64
-from rpython.jit.backend.x86 import rx86, codebuf
+from rpython.jit.backend.x86 import rx86, codebuf, valgrind
 from rpython.jit.backend.x86.regloc import X86_64_SCRATCH_REG, imm, eax, edx
 from rpython.jit.backend.llsupport.asmmemmgr import MachineDataBlockWrapper
 from rpython.jit.metainterp.compile import GuardCompatibleDescr
@@ -136,6 +136,7 @@
     # the old 'compatinfo' is not used any more, but will only be freed
     # when the looptoken is freed
     compatinfop[0] = rffi.cast(rffi.VOIDP, newcompatinfo)
+    valgrind.discard_translations(rffi.cast(lltype.Signed, compatinfop), WORD)
 
     # the machine code is not updated here.  We leave it to the actual
     # guard_compatible to update it if needed.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to