[Gc] Howto implement my own heap?

Lothar Scholz scholz at scriptolutions.com
Fri Sep 10 02:50:55 PDT 2010


Hello,

I want to implement my own simple heap where i can alloc many many small objects
in one custom heap and then free everything with a single call later.

Using "GC_add_roots" and "GC_remove_roots" for the whole custom heap memory space
seems to be the easiest way but i worry about performance a little
bit. Especially when i start to use large chunks or add a lot of
roots (for example if i split the growing heap into many 8KB pages).

-- 
Best regards,
 Lothar Scholz              mailto:scholz at scriptolutions.com



More information about the Gc mailing list