patch applied (packages/base): Fix #4533 - unregister callbacks on exception, fixing a memory leak
Ian Lynagh
igloo at earth.li
Mon Dec 13 17:25:18 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:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=packages/base;a=darcs_commitdiff;h=20101127181826-00f12-c6995e46de1e70fa37477f35a52b4d5852ba0912.gz
More information about the Cvs-libraries
mailing list