[RFA/JVMTI] Implement GetErrorName

Tom Tromey tromey@redhat.com
Wed Sep 20 16:25:00 GMT 2006


>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> I've corrected this to use vanilla strcpy. I've also included a little
Keith> test for it.

Keith> Look better?

Nearly there...

Keith> +  *name_ptr = (char *) _Jv_Malloc (strlen (name) + 1);
Keith> +  if (*name_ptr == NULL)
Keith> +    return JVMTI_ERROR_OUT_OF_MEMORY;

I think you want _Jv_MallocUnchecked here.
Hmm, I think we have this problem elsewhere in jvmti.cc.

With that change this is ok, thanks.

Tom



More information about the Java-patches mailing list