GC leaks memory under -threaded
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | lennart@augustsson.net, ndmitchell@gmail.com |
| Operating system | |
| Architecture |