-
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix space leak where EPS retained HPTs from old HscEnv
The issue here is that the `ModuleGraph` value is not forced eagerly, so the EPS ends up loading an interface file for an external package and retains a stale reference to the old HPT for the rest of the session. The heap should always satisfy the invariant that no HomeModInfo are reachable via the EPS. See GHC issue #20509 for something similar.
- Loading branch information
1 parent
7518a3a
commit d3e6a01
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters