[pypy-commit] pypy stmgc-c8: fix become_inevitable in vmprof

Raemi pypy.commits at gmail.com
Mon Jun 20 07:00:40 EDT 2016


Author: Remi Meier <remi.meier at gmail.com>
Branch: stmgc-c8
Changeset: r85243:e7a5293758ae
Date: 2016-05-27 10:03 +0200
http://bitbucket.org/pypy/pypy/changeset/e7a5293758ae/

Log:	fix become_inevitable in vmprof

	Already OK in the JIT, but the RPython part caused inevitable
	transactions by accessing the raw memory. Inevitable is not
	necessary in this case as we reset the vmprof_tl_stack on abort
	(stm/extracode.h)

diff --git a/rpython/rlib/rvmprof/cintf.py b/rpython/rlib/rvmprof/cintf.py
--- a/rpython/rlib/rvmprof/cintf.py
+++ b/rpython/rlib/rvmprof/cintf.py
@@ -72,7 +72,8 @@
 VMPROFSTACK.become(rffi.CStruct("vmprof_stack_s",
                                 ('next', PVMPROFSTACK),
                                 ('value', lltype.Signed),
-                                ('kind', lltype.Signed)))
+                                ('kind', lltype.Signed),
+                                hints={'stm_dont_track_raw_accesses': True}))
 # ----------
 
 


More information about the pypy-commit mailing list