Check upper/lower bounds on various RTS flags (#3633)
authorSimon Marlow <marlowsd@gmail.com>
Thu, 19 Nov 2009 14:24:22 +0000 (14:24 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 19 Nov 2009 14:24:22 +0000 (14:24 +0000)
commita6f61eeea1db7592d1a0f92d61a3d9971daecd73
treee1da94e8ec6c736fcef38648ef26288b37c955e2
parentaf18880ffe8a4d7c4ee449d353319adb530a782c
Check upper/lower bounds on various RTS flags (#3633)

Also, make K mean 1024 rather than 1000, in RTS flags (similarly for M
and G).  The main reason I want to change it is that otherwise this
might be confusing:

exp3_8: error in RTS option -H4k: size outside allowed range (4096 - 18446744073709551615)

And I think the original reason for using 1000 instead of 1024,
worries about direct-mapped caches, is not an issue in this context
(even if you can find a direct-mapped cache these days).
rts/RtsFlags.c