summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-03-10 20:42:56 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-03-10 20:42:56 +0000
commit4cb89d670945dfcb747d0ab74ac89dd9348ed6cd (patch)
tree44426622fe7bcb1668f72d0a02027baf67259622 /ghc
parent50bc39808cd5b483a048a4d387f937963bd0e00f (diff)
downloadhaskell-4cb89d670945dfcb747d0ab74ac89dd9348ed6cd.tar.gz
Give WHITEHOLE the BLACKHOLE closure type, instead of INVALID_OBJECT
Just to keep sanity checking happy, and so we don't need a completely new closure type.
Diffstat (limited to 'ghc')
-rw-r--r--ghc/rts/StgMiscClosures.cmm6
1 files changed, 5 insertions, 1 deletions
diff --git a/ghc/rts/StgMiscClosures.cmm b/ghc/rts/StgMiscClosures.cmm
index c29a47402f..70d08aeb0e 100644
--- a/ghc/rts/StgMiscClosures.cmm
+++ b/ghc/rts/StgMiscClosures.cmm
@@ -435,9 +435,13 @@ INFO_TABLE(stg_SE_CAF_BLACKHOLE,0,1,SE_CAF_BLACKHOLE,"SE_CAF_BLACKHOLE","SE_CAF_
#endif
/* ----------------------------------------------------------------------------
+ Whiteholes are used for the "locked" state of a closure (see lockClosure())
+
+ The closure type is BLAKCHOLE, just because we need a valid closure type
+ for sanity checking.
------------------------------------------------------------------------- */
-INFO_TABLE(stg_WHITEHOLE, 0,0, INVALID_OBJECT, "WHITEHOLE", "WHITEHOLE")
+INFO_TABLE(stg_WHITEHOLE, 0,0, BLACKHOLE, "WHITEHOLE", "WHITEHOLE")
{ foreign "C" barf("WHITEHOLE object entered!"); }
/* ----------------------------------------------------------------------------