PATCH: libffi vs. SPARC (again)

Anthony Green green@redhat.com
Wed Oct 3 15:37:00 GMT 2001


Jeff wrote:
> +  // Handle return type.  Constructor return values are faked, and
> +  // subword return types must be narrowed to the proper jvalue element.
>    if (is_constructor)
>      result->l = obj;
> +  else if (return_type == JvPrimClass (byte))
> +    result->b = (jbyte)result_word.i;
> +  else if (return_type == JvPrimClass (short))
> +    result->s = (jshort)result_word.i;
> +  else if (return_type == JvPrimClass (boolean))
> +    result->z = (jboolean)result_word.i;
> +  else if (return_type == JvPrimClass (char))
> +    result->c = (jchar)result_word.i;
> +  else
> +    memcpy (result, &result_word, sizeof (jvalue));

I'm surprised that this is necessary.  libffi should be changed if this is the
case.

Please remind me what the problem was again.

Thanks!

AG




More information about the Java-patches mailing list