diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-11-25 13:57:29 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-11-25 13:57:29 +0000 |
commit | 150ac5e907ec5096660f90caaa5f076da181d81b (patch) | |
tree | 1063793e8e1c563e68004f7063993771736ebcfb /includes/rts/Constants.h | |
parent | 82a769cba9297d362b5e5ce2d1983e37b6057873 (diff) | |
download | haskell-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.h | 9 |
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 */ |