[kaffe] memory allocation
Godmar Back
gback@stanford.edu
Wed, 14 Aug 2002 21:06:25 -0600 (MDT)
>
> 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.
- Godmar