thread_stack(RET_BCO): Grab the pointer to the BCO *before* threading
it. Fixes crashes when using compacting GC with GHCi.
I noticed while debugging this that compacting GC is horrendously slow
now, which might have something to do with the new eval/apply PAP
layouts. That's something to investigate later.
/* -----------------------------------------------------------------------------
- * $Id: GCCompact.c,v 1.16 2003/04/22 16:25:10 simonmar Exp $
+ * $Id: GCCompact.c,v 1.17 2003/10/22 11:11:59 simonmar Exp $
*
* (c) The GHC Team 2001
*
nat size;
p++;
- thread(p);
bco = (StgBCO *)*p;
+ thread(p);
p++;
size = BCO_BITMAP_SIZE(bco);
thread_large_bitmap(p, BCO_BITMAP(bco), size);