patch applied (ghc-7.0/packages/base): Fix #4533 - unregister callbacks on exception, fixing a memory leak
igloo at earth.li
Mon Dec 13 18:06:59 CET 2010
Sat Nov 27 10:18:26 PST 2010 Bryan O'Sullivan <bos at serpentine.com>
* Fix #4533 - unregister callbacks on exception, fixing a memory leak
Our problem here was that if a thread blocked in threadWait or
threadDelay and was killed by an exception thrown from another thread,
its registration with the IO manager would not be cleared.
The fix is simply to install exception handlers that do the cleanup and
propagate the exception.
M ./System/Event/Thread.hs -4 +7
View patch online:
More information about the Cvs-libraries