[kaffe] memory allocation
gback at cs.utah.edu
Wed Aug 14 20:06:25 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?
That's exactly what jthread_disable_stop/enable_stop are for.
Call jthread_disable_stop, allocate your memory (in the way Pat
described), free it, and then call jthread_enable_stop.
More information about the kaffe