On x86, use thread-local storage instead of stealing a reg for gct
authorSimon Marlow <marlowsd@gmail.com>
Fri, 3 Apr 2009 12:18:16 +0000 (12:18 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 3 Apr 2009 12:18:16 +0000 (12:18 +0000)
commitf9d5c95fb4b4989ce4da8005793d3730452a33a9
tree44cb4ca0029ffa322af4c50a0b63b173be28edd2
parented45b268cba82ed698853b4a1c3d35e904ec020d
On x86, use thread-local storage instead of stealing a reg for gct
Benchmarks show that using TLS instead of stealing a register is
better by a few percent on x86, due to the lack of registers.

This only affects -threaded; without -threaded we're (now) using
static storage for the GC data.
rts/sm/GCThread.h