[kaffe] memory allocation

gonzo Robert.N.Gonzalez@williams.edu
Wed, 14 Aug 2002 15:08:06 -0400 (EDT)


i have the need to allocate memory in the verifier for kaffe.  at the
moment, i'm simply using malloc, though since my verifyMethod does call
other methods (getClass, etc.) which may or may not (i believe) cause the
program to quit and thus potentially never freeing the memory i grabbed
depending on the OS.  is there a safer way to do this?

i was previously cautioned about any memory allocation as it would strain
the garbage collector.  however, this is memory allocation that is used
during the verification of a single method and is then freed after, so it
doesn't make any sense to allocate it with the overhead of garbage
collection.


basically, i wanna know the standard way of grabbing memory for local use
when needed :)


thanks!
~rob