[pypy-commit] stmgc default: fix release build of random2

Raemi noreply at buildbot.pypy.org
Mon Aug 18 13:41:23 CEST 2014


Author: Remi Meier <remi.meier at inf.ethz.ch>
Branch: 
Changeset: r1317:b62545917bee
Date: 2014-08-18 13:41 +0200
http://bitbucket.org/pypy/stmgc/changeset/b62545917bee/

Log:	fix release build of random2

diff --git a/c7/demo/demo_random2.c b/c7/demo/demo_random2.c
--- a/c7/demo/demo_random2.c
+++ b/c7/demo/demo_random2.c
@@ -110,7 +110,7 @@
         num = get_rand(ss_size);
         /* XXX: impl detail: there is already a "-1" on the SS -> +1 */
         objptr_t r = (objptr_t)stm_thread_local.shadowstack_base[num+1].ss;
-        assert((((uintptr_t)r) & 3) == 0);
+        OPT_ASSERT((((uintptr_t)r) & 3) == 0);
     }
 
     if (num == 1 && td.active_roots_num > 0) {
@@ -380,7 +380,7 @@
             }
         }
     }
-    assert(roots_on_ss == td.roots_on_ss);
+    OPT_ASSERT(roots_on_ss == td.roots_on_ss);
 
     stm_rewind_jmp_leaveframe(&stm_thread_local, &rjbuf);
 }


More information about the pypy-commit mailing list