From 8703bbcdcc9a47a29bccc4343dcea43868fbbeb6 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 1 Nov 2012 12:59:01 +0000 Subject: 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 file changed, 2 deletions(-) diff --git a/includes/rts/storage/Closures.h b/includes/rts/storage/Closures.h index fcba1ebeb6..2302b7d2a1 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 { -- cgit v1.2.1