[pypy-commit] stmgc copy-over-original2: Fix the strange error of the debugging mprotect() calls by simply

arigo noreply at buildbot.pypy.org
Sat Jul 27 16:26:50 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: copy-over-original2
Changeset: r463:34dc06192796
Date: 2013-07-27 16:26 +0200
http://bitbucket.org/pypy/stmgc/changeset/34dc06192796/

Log:	Fix the strange error of the debugging mprotect() calls by simply
	running the example for less long.

	http://stackoverflow.com/questions/17896297/mprotect-does-not-
	always-collapse-adjacent-lines-in-proc-pid-maps

diff --git a/c4/demo2.c b/c4/demo2.c
--- a/c4/demo2.c
+++ b/c4/demo2.c
@@ -8,7 +8,7 @@
 #include "fprintcolor.h"
 
 
-#define LIST_LENGTH 500
+#define LIST_LENGTH 200
 #define NUMTHREADS  4
 
 
@@ -89,7 +89,7 @@
         if (r_next->value < r_current->value) {
             // swap current and next
             swap_nodes(r_prev, r_current, r_next);	  
-            fprintf(stdout, "#");
+            //fprintf(stdout, "#");
             
             // needs read barriers, because of write barriers in swap_nodes
             r_prev = (struct node*)stm_read_barrier((gcptr)r_prev);


More information about the pypy-commit mailing list