Author: tobias@masterthesis-vm
Branch: c8-efficient-serial-execution
Changeset: r2021:32769a7365e2
Date: 2017-03-03 11:53 +0100
http://bitbucket.org/pypy/stmgc/changeset/32769a7365e2/

Log:    Fix marker tests

diff --git a/c8/test/test_marker.py b/c8/test/test_marker.py
--- a/c8/test/test_marker.py
+++ b/c8/test/test_marker.py
@@ -7,10 +7,11 @@
     def recording(self, *kinds):
         seen = []
         @ffi.callback("stmcb_timing_event_fn")
-        def timing_event(tl, event, marker):
+        def timing_event(tl, event, payload):
             if len(kinds) > 0 and event not in kinds:
                 return
-            if marker:
+            if payload and payload.type == lib.STM_EVENT_PAYLOAD_MARKER:
+                marker = payload.data.loc_marker
                 expanded = (marker.odd_number, marker.object)
             else:
                 expanded = None
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to