Andrew Haley wrote:
:
OK.  I'll check for the NULL, then.  If I have to change the patch that's
been in IcedTea for ages then I'll use strdup instead of malloc.  But what
is one supposed to do if the allocation fails?  Simply emit an error
message to stderr and call abort() ?
JNU_ThrowOutOfMemoryError(env, NULL) and return NULL should do it and will be treated as a fatal error by HotSpot.

-Alan.


Reply via email to