Author: Armin Rigo <[email protected]>
Branch: c7-more-segments
Changeset: r1043:883134c1db24
Date: 2014-03-16 12:33 +0100
http://bitbucket.org/pypy/stmgc/changeset/883134c1db24/

Log:    Use by default the value of STM_NB_SEGMENTS.

diff --git a/duhton/duhton.c b/duhton/duhton.c
--- a/duhton/duhton.c
+++ b/duhton/duhton.c
@@ -7,7 +7,7 @@
     char *filename = NULL;
     int interactive = 1;
        int i;
-       int num_threads = DEFAULT_NUM_THREADS;
+       int num_threads = STM_NB_SEGMENTS;
 
        for (i = 1; i < argc; ++i) {
                if (strcmp(argv[i], "--help") == 0) {
diff --git a/duhton/duhton.h b/duhton/duhton.h
--- a/duhton/duhton.h
+++ b/duhton/duhton.h
@@ -13,8 +13,6 @@
 #endif
 
 
-#define DEFAULT_NUM_THREADS 2
-
 extern __thread stm_thread_local_t stm_thread_local;
 
 struct DuObject_s {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to