logo       

Re: threadDelay space leak under win32: msg#00015

lang.haskell.glasgow.bugs

Subject: Re: threadDelay space leak under win32

Fixed now on the STABLE branch, but 6.2.2 and, at least,
all previous 6.x releases suffer from this embarrassing mem
leak. Thanks for reporting the problem.

--sigbjorn

----- Original Message ----- From: "Simon Marlow" <simonmar@xxxxxxxxxxxxx>
To: "Philippa Cowderoy" <flippa@xxxxxxxxxxx>; <glasgow-haskell-bugs@xxxxxxxxxxx>
Cc: <sof@xxxxxxxxxx>
Sent: Monday, November 08, 2004 07:54
Subject: RE: threadDelay space leak under win32


On 07 November 2004 22:47, Philippa Cowderoy wrote:

Using the binary distros of GHC 6.2.1 and 6.2.2 under Win2K, this
leaks 12K of memory per second on my machine (as do larger programs
using threadDelay in the idle event of a wxHaskell app):

module Main where
import Control.Concurrent
main = (threadDelay 1000) >> main

I've no idea if it also happens on *nix platforms, or with a
win32/cygwin build.

Yes, that looks like a memory leak somewhere in the Async IO subsystem
on Windows. The leak goes away using the threaded RTS on the latest CVS
version of GHC, because there we're using plain sleep() calls to
implement threadDelay and bypassing AsyncIO.

Sigbjorn: you're the owner of the Windows AsyncIO implementation, care
to look into this leak?

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise