Sittampalam, Ganesh wrote:
Ashley Yakeley wrote:

I really don't know enough about the RTS to know. The
alternative would be to keep all initialised values
when the module is unloaded. I'm guessing this is more
feasible.

Easier, but a guaranteed memory leak.

But it's limited to the initialisers. An IORef holding an Integer isn't much memory, and it only ever gets leaked once.

--
Ashley Yakeley
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to