[kaffe] memory allocation

gonzo Robert.N.Gonzalez at williams.edu
Wed Aug 14 12:08:06 PDT 2002


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





More information about the kaffe mailing list