[commit: ghc] master: The shape of StgTVar should not depend on THREADED_RTS (8703bbc)

Simon Marlow <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/8703bbcdcc9a47a29bccc4343dcea43868fbbeb6

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

commit 8703bbcdcc9a47a29bccc4343dcea43868fbbeb6
Author: Simon Marlow <[email protected]>
Date:   Thu Nov 1 12:59:01 2012 +0000

    The shape of StgTVar should not depend on THREADED_RTS
    
    By shear luck I think this didn't lead to any actual runtime crashes,
    but it did cause some problems for debugging.

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

 includes/rts/storage/Closures.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/includes/rts/storage/Closures.h b/includes/rts/storage/Closures.h
index fcba1eb..2302b7d 100644
--- a/includes/rts/storage/Closures.h
+++ b/includes/rts/storage/Closures.h
@@ -306,9 +306,7 @@ typedef struct {
   StgHeader                  header;
   StgClosure                *volatile current_value;
   StgTVarWatchQueue         *volatile first_watch_queue_entry;
-#if defined(THREADED_RTS)
   StgInt                     volatile num_updates;
-#endif
 } StgTVar;
 
 typedef struct {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.