At 02:08 AM 3/1/2003, Greg Fausak wrote:
Is pkg_malloc some sort of memory management thing?
I mean, do I have to clean up, or does something come in and clean
up behind me?
It is our own malloc libary. Use malloc to allocate dynamic memory
and free to give it away then.
We are using it rather than stdlib malloc because it has some convenient
debugging features, can be very fast, and can be used with shmem too.
Is there a parent/child memory mallocator available?
It
would make freeing easier. A single free of the parent
rather than keeping track myself.
We do everything manually. It takes more core but is self-rewarding
in terms of speed and clarity.
If you are worried about leaks, turn on the debugging version
(you need to set the proper defs in Makefile.defs) -- after termination,
ser will print all unreleased fragments.
-jiri