Move the call to heapCensus() into GarbageCollect(), just before
authorSimon Marlow <marlowsd@gmail.com>
Wed, 20 Jul 2011 14:29:54 +0000 (15:29 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 20 Jul 2011 15:23:29 +0000 (16:23 +0100)
commite903a09466c5a700baea8a34511cbdc2576b136e
treef3564334039591b62cc126960a2c1c6dd4c513f0
parent2c2a434f411029977992207a19245a24f942ff78
Move the call to heapCensus() into GarbageCollect(), just before
calling resurrectThreads() (fixes #5314).

This avoids a lot of problems, because resurrectThreads() may
overwrite some closures in the heap, leaving slop behind.  The bug in
instances, this fix avoids them all in one go.
rts/Schedule.c
rts/sm/GC.c
rts/sm/GC.h