[commit: ghc] master: use StgWord not StgWord8 for wakeup (0b0fec5)
git at git.haskell.org
git
Tue Oct 1 10:10:26 UTC 2013
Repository : ssh://git at git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/0b0fec536e35769b64b8bc5397c84138fa512155/ghc
>---------------------------------------------------------------
commit 0b0fec536e35769b64b8bc5397c84138fa512155
Author: Simon Marlow <marlowsd at gmail.com>
Date: Tue Sep 17 21:49:53 2013 +0100
use StgWord not StgWord8 for wakeup
volatile StgWord8 is not guaranteed to be atomic.
>---------------------------------------------------------------
0b0fec536e35769b64b8bc5397c84138fa512155
rts/sm/GCThread.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h
index 748b068..be7bfbb 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
More information about the ghc-commits
mailing list