fix GC bug introduced with the C finalizer support
[ghc-hetmet.git] / 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);