Skip to content

Temporary, backportable fix for -fno-code memory leaks (#20509)

Matthew Pickering requested to merge wip/temp-20509 into master

As observed in #20509 there was a problem with a backpack hack which caused potential for large amounts of memory to be retained in interactive sessions when using -fno-code.

This "fix" just makes sure the hack is applied in less situations. If you are using backpack then you are still susceptible to these kinds of leaks but given that backpack barely works with GHCi anyway, it's not critical.

cc @sheaf @wz1000

Merge request reports