Skip to content

Store dehydrated data structures in CgModBreaks

Matthew Pickering requested to merge wip/ghci-leaks-fix into master

This fixes a tricky leak in GHCi where we were retaining old copies of HscEnvs when reloading. If not all modules were recompiled then these hydrated fields in break points would retain a reference to the old HscEnv which could double memory usage.

Fixes #22530 (closed)

Merge request reports