summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2008-12-04 10:12:01 +0000
committerSimon Marlow <marlowsd@gmail.com>2008-12-04 10:12:01 +0000
commita3ea8b447cb55279a5767ebe04d861da3b761924 (patch)
treed8e7a4f368b3c3960b26d0059379fad7cc1875c5 /rts
parent19fcb519897270c9fcd2c0f707636e9682ff1b08 (diff)
downloadhaskell-a3ea8b447cb55279a5767ebe04d861da3b761924.tar.gz
fix an assertion failure in prof/threaded/debug mode
Diffstat (limited to 'rts')
-rw-r--r--rts/sm/Evac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/sm/Evac.c b/rts/sm/Evac.c
index bbb7fe5795..1c453fc52e 100644
--- a/rts/sm/Evac.c
+++ b/rts/sm/Evac.c
@@ -943,8 +943,12 @@ selector_loop:
// the original selector thunk, p.
SET_INFO(p, (StgInfoTable *)info_ptr);
LDV_RECORD_DEAD_FILL_SLOP_DYNAMIC((StgClosure *)p);
+#if defined(THREADED_RTS)
+ SET_INFO(p, &stg_WHITEHOLE_info);
+#else
SET_INFO(p, &stg_BLACKHOLE_info);
#endif
+#endif
// the closure in val is now the "value" of the
// THUNK_SELECTOR in p. However, val may itself be a