Author: Armin Rigo <[email protected]>
Branch:
Changeset: r322:ad8b5874acca
Date: 2013-06-30 19:14 +0200
http://bitbucket.org/pypy/stmgc/changeset/ad8b5874acca/
Log: Port here the changes done to test_random.
diff --git a/c4/demo_random.c b/c4/demo_random.c
--- a/c4/demo_random.c
+++ b/c4/demo_random.c
@@ -463,11 +463,14 @@
// copy_roots(td.roots_outside_perform, td.roots, td.num_roots);
// refresh td.roots:
+ gcptr end_marker = stm_pop_root();
+ assert(end_marker == END_MARKER_ON || end_marker == END_MARKER_OFF);
arg1 = stm_pop_root();
assert(arg1 == NULL);
pop_roots();
push_roots();
stm_push_root(arg1);
+ stm_push_root(end_marker);
int p = run_me();
if (p == -1) // maybe restart transaction
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit