[pypy-commit] stmgc c7-more-segments: Use by default the value of STM_NB_SEGMENTS.
arigo
noreply at buildbot.pypy.org
Sun Mar 16 12:34:13 CET 2014
Author: Armin Rigo <arigo at tunes.org>
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 {
More information about the pypy-commit
mailing list