summaryrefslogtreecommitdiff
path: root/includes/rts/Constants.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-11-25 13:57:29 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-11-25 13:57:29 +0000
commit150ac5e907ec5096660f90caaa5f076da181d81b (patch)
tree1063793e8e1c563e68004f7063993771736ebcfb /includes/rts/Constants.h
parent82a769cba9297d362b5e5ce2d1983e37b6057873 (diff)
downloadhaskell-150ac5e907ec5096660f90caaa5f076da181d81b.tar.gz
Keep a maximum of 6 spare worker threads per Capability (#4262)
Diffstat (limited to 'includes/rts/Constants.h')
-rw-r--r--includes/rts/Constants.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/rts/Constants.h b/includes/rts/Constants.h
index 140aaa4210..e21a893bbc 100644
--- a/includes/rts/Constants.h
+++ b/includes/rts/Constants.h
@@ -311,4 +311,13 @@
*/
#define SPIN_COUNT 1000
+/* -----------------------------------------------------------------------------
+ Spare workers per Capability in the threaded RTS
+
+ No more than MAX_SPARE_WORKERS will be kept in the thread pool
+ associated with each Capability.
+ -------------------------------------------------------------------------- */
+
+#define MAX_SPARE_WORKERS 6
+
#endif /* RTS_CONSTANTS_H */