We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c74dd2 commit 0ae3239Copy full SHA for 0ae3239
src-control/Control/RefCount.hs
@@ -605,12 +605,14 @@ enableForgottenRefChecks :: IO ()
605
disableForgottenRefChecks :: IO ()
606
607
#ifdef NO_IGNORE_ASSERTS
608
-enableForgottenRefChecks =
+enableForgottenRefChecks = do
609
+ performMajorGCWithBlockingIfAvailable
610
modifyIORef globalForgottenRef $ \case
611
Disabled -> Enabled Nothing
612
Enabled _ -> error "enableForgottenRefChecks: already enabled"
613
-disableForgottenRefChecks =
614
+disableForgottenRefChecks = do
615
616
617
Disabled -> error "disableForgottenRefChecks: already disabled"
618
Enabled Nothing -> Disabled
0 commit comments