This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFC] interpreter use of closures and return types
- From: Anthony Green <green at redhat dot com>
- To: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- Cc: "java-patches\ at gcc dot gnu dot org" <java-patches at gcc dot gnu dot org>, "aurelien\ at aurel32 dot net" <aurelien at aurel32 dot net>, Yunqiang Su <Yunqiang dot Su at imgtec dot com>
- Date: Wed, 22 Jun 2016 08:28:10 -0400
- Subject: Re: [RFC] interpreter use of closures and return types
- Authentication-results: sourceware.org; auth=none
- References: <6D39441BF12EF246A7ABCE6654B023537E45723C at HHMAIL01 dot hh dot imgtec dot org>
Matthew Fortune <Matthew.Fortune@imgtec.com> writes:
> The root of the problem seems to be in a oddity of FFI that integer return
> values less than word (or rather register) size are returned as an
> ffi_arg.
Yes, this is expected behaviour.
> The java interpreter does not appear to adhere to this and the patch below
> seems to fix the issue. Can anyone comment if this looks like the right
> approach?
On the surface it looks good to me.
Thanks,
AG