Author: Armin Rigo <[email protected]>
Branch: c8-gil-like
Changeset: r1809:b5442bfc9534
Date: 2015-06-11 22:37 +0200
http://bitbucket.org/pypy/stmgc/changeset/b5442bfc9534/

Log:    These two disabled cases work too

diff --git a/c8/demo/demo_random.c b/c8/demo/demo_random.c
--- a/c8/demo/demo_random.c
+++ b/c8/demo/demo_random.c
@@ -318,9 +318,7 @@
         stm_become_inevitable(&stm_thread_local, "please");
         pop_roots();
         return NULL;
-    } else if (0 &&            // XXXXXXXXXXXXXXXXXXXXX
-                                                       
-               get_rand(240) == 1) {
+    } else if (get_rand(240) == 1) {
         push_roots();
         stm_become_globally_unique_transaction(&stm_thread_local, "really");
         fprintf(stderr, "[GUT/%d]", (int)STM_SEGMENT->segment_num);
@@ -384,9 +382,7 @@
             push_roots();
 
             long call_fork = (arg != NULL && *(long *)arg);
-            if (1 ||   // XXXXXXXXXXXXXXXX
-                                          
-                call_fork == 0) {   /* common case */
+            if (call_fork == 0) {   /* common case */
                 if (get_rand(100) < 50) {
                     stm_leave_transactional_zone(&stm_thread_local);
                     /* Nothing here; it's unlikely that a different thread
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to