Author: Remi Meier <[email protected]>
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}))
 # ----------
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to