GC leaks memory under -threaded
|Reported by:||NeilMitchell||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
The following program leaks 2Mb/s under Windows:
$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.4 $ cat Test.hs import System.Mem import Control.Monad main = forever performGC $ ghc --make Test.hs -threaded $ Test.exe
This leak does not occur if you remove the
-threaded, or if you run the same test on Linux. I am using
forever to leak memory more quickly, but I believe the same issues will arise if
performGC is called in the normal course of a program.
I consider this leak to be critical, so have marked severity appropriately.