Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

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

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

commit 8703bbcdcc9a47a29bccc4343dcea43868fbbeb6
Author: Simon Marlow <marlo...@gmail.com>
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 {



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to