This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/JVMTI] Implement GetErrorName


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]