Fix memory leak from #12664
[ghc.git] / rts / Weak.h
index ba8c1ca..fbdf18a 100644 (file)
 
 #include "Capability.h"
 
+#include "BeginPrivate.h"
+
+extern rtsBool running_finalizers;
+extern StgWeak * dead_weak_ptr_list;
+
+void runCFinalizers(StgCFinalizerList *list);
+void runAllCFinalizers(StgWeak *w);
 void scheduleFinalizers(Capability *cap, StgWeak *w);
 void markWeakList(void);
 
-#endif
+#include "EndPrivate.h"
+
+#endif /* WEAK_H */
+