[commit: ghc] master: Tiny comment on the change from StgWord8 to StgWord (7e44480)

git at git.haskell.org git
Thu Oct 3 08:26:06 UTC 2013


Repository : ssh://git at git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/7e44480218bb1cbd85d90bf68f35ea28421d460e/ghc

>---------------------------------------------------------------

commit 7e44480218bb1cbd85d90bf68f35ea28421d460e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Oct 2 13:57:41 2013 +0100

    Tiny comment on the change from StgWord8 to StgWord
    
    c.f. commit 0b0fec536e35769b64b8bc5397c84138fa512155


>---------------------------------------------------------------

7e44480218bb1cbd85d90bf68f35ea28421d460e
 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 4b96fec..12ef999 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 StgWord wakeup;
+    volatile StgWord wakeup;       // NB not StgWord8; only StgWord is guaranteed atomic
 #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