Use MonadFix in generalBuildHeapGraph to avoid infinite loop on heap reference cycles
This was causing my debugger to loop forever and consume infinite memory when analyzing hasura/graphql-engine
I tested using the cycles
program here and running a dominator tree analysis on a snapshot of cycles
, observing that before this change we hang forever
TODOs here:
-
Figure out how test suite works, integrate cycle test -
figure out how to repro the ghc bug below, open ticket and reference it here