X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2Frts%2FConstants.h;h=54a1ca71ca3c6c8fd7b79b968871e67bce5a7d98;hb=4bba92f93b88e15f0e0f23732d2cfa540acb737b;hp=0aee60aa83c18fed3c0b2a20330b1a2e6e20a6fc;hpb=0417404f5d1230c9d291ea9f73e2831121c8ec99;p=ghc-hetmet.git diff --git a/includes/rts/Constants.h b/includes/rts/Constants.h index 0aee60a..54a1ca7 100644 --- a/includes/rts/Constants.h +++ b/includes/rts/Constants.h @@ -296,4 +296,13 @@ #error RESERVED_STACK_WORDS may be wrong! #endif +/* + * The number of times we spin in a spin lock before yielding (see + * #3758). To tune this value, use the benchmark in #3758: run the + * server with -N2 and the client both on a dual-core. Also make sure + * that the chosen value doesn't slow down any of the parallel + * benchmarks in nofib/parallel. + */ +#define SPIN_COUNT 1000 + #endif /* RTS_CONSTANTS_H */