id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3502,GC leaks memory under -threaded,NeilMitchell,,"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. ",bug,closed,high,6.12.1,Runtime System,6.10.4,fixed,,ndmitchell@… lennart@…,Windows,Unknown/Multiple,,Unknown,,,,
