fix GC bug introduced with the C finalizer support
authorSimon Marlow <marlowsd@gmail.com>
Tue, 30 Jun 2009 08:08:34 +0000 (08:08 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 30 Jun 2009 08:08:34 +0000 (08:08 +0000)
rts/sm/Compact.c

index 5f56c1e..9c13253 100644 (file)
@@ -640,6 +640,7 @@ thread_obj (StgInfoTable *info, StgPtr p)
     case WEAK:
     {
        StgWeak *w = (StgWeak *)p;
+       thread(&w->cfinalizer);
        thread(&w->key);
        thread(&w->value);
        thread(&w->finalizer);