[pypy-commit] pypy vmprof: pypy_execute_frame_trampoline can (obviosuly) execute random python code, so we need to teach llexternal about it. Without, you get e.g. the wrong asmgcc labels, etc.

antocuni noreply at buildbot.pypy.org
Wed Dec 10 17:37:37 CET 2014


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: vmprof
Changeset: r74883:59ba61e4f315
Date: 2014-12-10 16:37 +0000
http://bitbucket.org/pypy/pypy/changeset/59ba61e4f315/

Log:	pypy_execute_frame_trampoline can (obviosuly) execute random python
	code, so we need to teach llexternal about it. Without, you get e.g.
	the wrong asmgcc labels, etc.

diff --git a/pypy/module/_vmprof/interp_vmprof.py b/pypy/module/_vmprof/interp_vmprof.py
--- a/pypy/module/_vmprof/interp_vmprof.py
+++ b/pypy/module/_vmprof/interp_vmprof.py
@@ -56,7 +56,8 @@
     [llmemory.GCREF, llmemory.GCREF, llmemory.GCREF],
     llmemory.GCREF,
     compilation_info=eci,
-    _nowrapper=True, sandboxsafe=True)
+    _nowrapper=True, sandboxsafe=True,
+    random_effects_on_gcobjs=True)
 
 pypy_vmprof_init = rffi.llexternal("pypy_vmprof_init", [], lltype.Void, compilation_info=eci)
 vmprof_enable = rffi.llexternal("vmprof_enable", [rffi.CCHARP, rffi.LONG], lltype.Void, compilation_info=eci)


More information about the pypy-commit mailing list