[Haskell-cafe] Re: FPS: Finalizers not running (wasMemoryusageoutside of the Haskell heap)

Simon Marlow simonmar at microsoft.com
Mon Nov 7 11:39:15 EST 2005

On 07 November 2005 14:02, Bulat Ziganshin wrote:

> Hello Simon,
> Monday, November 07, 2005, 4:16:54 PM, you wrote:
>> Yes, mallocForeignPtr's are implemented using pinned GC'd memory,
>> with no finalizer (unless you add one).  That's why they're nice and
>> fast. 
> Simon, can you please write some docs about all these foreign stuff
> and their interaction with pure Haskell code? i see some bits of this
> information in these newsgroups regularly (for example, are you
> remember discussion about using lots of hashtables in program?), but
> there is no definitive source
> there is no need to write full-fledged doc right now, just
> "implementation notes" as the list of peculiarities will be great for
> the start

You're right, it would be good to have this folklore stuff written down.
I've added some notes to the mallocForeignPtr docs for now.


More information about the Haskell-Cafe mailing list