Commit 4cb89d67 authored by Simon Marlow's avatar Simon Marlow

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.
parent 50bc3980
......@@ -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!"); }
/* ----------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment