summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-09-17 21:49:53 +0100
committerSimon Marlow <marlowsd@gmail.com>2013-10-01 11:10:08 +0100
commit0b0fec536e35769b64b8bc5397c84138fa512155 (patch)
tree986a812dd9e1849e46aa1a04f463a216c9c3d6b7 /rts
parentcb7785f6c1c4cb582ec9aa8ec01255f1788571d7 (diff)
downloadhaskell-0b0fec536e35769b64b8bc5397c84138fa512155.tar.gz
use StgWord not StgWord8 for wakeup
volatile StgWord8 is not guaranteed to be atomic.
Diffstat (limited to 'rts')
-rw-r--r--rts/sm/GCThread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h
index 748b0687fa..be7bfbbb04 100644
--- a/rts/sm/GCThread.h
+++ b/rts/sm/GCThread.h
@@ -122,7 +122,7 @@ typedef struct gc_thread_ {
OSThreadId id; // The OS thread that this struct belongs to
SpinLock gc_spin;
SpinLock mut_spin;
- volatile StgWord8 wakeup;
+ volatile StgWord wakeup;
#endif
nat thread_index; // a zero based index identifying the thread
rtsBool idle; // sitting out of this GC cycle