FIX #2185: sparks should not be treated as roots by the GC
[ghc-hetmet.git] / rts / sm / Compact.c
index c5f0c37..bb4d838 100644 (file)
@@ -966,6 +966,9 @@ compact(StgClosure *static_objects)
     // 1. thread the roots
     markCapabilities((evac_fn)thread_root, NULL);
 
+    // spark queues
+    traverseSparkQueues((evac_fn)thread_root, NULL);
+
     // the weak pointer lists...
     if (weak_ptr_list != NULL) {
        thread((void *)&weak_ptr_list);