GHCi: Fix load/reload space leaks (#4029)
authorJason Eisenberg <jasoneisenberg@gmail.com>
Sat, 5 Mar 2016 19:00:38 +0000 (20:00 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sat, 5 Mar 2016 19:00:56 +0000 (20:00 +0100)
commit6ca9b15f77e58931953edb7c872b803cb261fce9
tree35e118570baaefdc85faf34df0970f3fafdfae1f
parent120b9cdb31878ecee442c0a4bb9532a9d30c0c64
GHCi: Fix load/reload space leaks (#4029)

This patch addresses GHCi load/reload space leaks which could be
fixed without adversely affecting performance.

Test Plan: make test "TEST=T4029"

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: mpickering, thomie

Differential Revision: https://phabricator.haskell.org/D1950

GHC Trac Issues: #4029
compiler/main/GhcMake.hs
compiler/main/InteractiveEval.hs
compiler/main/Packages.hs
ghc/GHCi/UI.hs
testsuite/tests/perf/space_leaks/T4029.script [new file with mode: 0644]
testsuite/tests/perf/space_leaks/T4029a.hs [new file with mode: 0644]
testsuite/tests/perf/space_leaks/T4029b.hs [new file with mode: 0644]
testsuite/tests/perf/space_leaks/all.T
testsuite/tests/rename/should_fail/T11071.stderr