diff options
author | Simon Marlow <marlowsd@gmail.com> | 2013-09-17 21:49:53 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2013-10-01 11:10:08 +0100 |
commit | 0b0fec536e35769b64b8bc5397c84138fa512155 (patch) | |
tree | 986a812dd9e1849e46aa1a04f463a216c9c3d6b7 /rts | |
parent | cb7785f6c1c4cb582ec9aa8ec01255f1788571d7 (diff) | |
download | haskell-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.h | 2 |
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 |