From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125322 invoked by alias); 22 Jun 2016 12:28:36 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org Received: (qmail 125278 invoked by uid 89); 22 Jun 2016 12:28:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*r:sk:java-pa, H*Ad:U*java-patches X-HELO: mail-qk0-f177.google.com Received: from mail-qk0-f177.google.com (HELO mail-qk0-f177.google.com) (209.85.220.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 22 Jun 2016 12:28:15 +0000 Received: by mail-qk0-f177.google.com with SMTP id t127so61742609qkf.1 for ; Wed, 22 Jun 2016 05:28:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=ELKWSR8n0avgWadKGPSzWMEccs23t5qrrsJdYoKNc0Q=; b=bHj4ogFGq1aZHIsiSoFi6Bb0AlW6eeubnPM/vK9rloUTucFnwtjdMDTnxj/wedsuBx 3eDKyKrAC96raQvuNavtTyU/U11DxWVH3yRRfrslGg5a/tNAXiDD41EkBHjZ+HAsvmSP hh/alaawcY1R4HqSvZWHpb8Q4qDEbkVVXRiLzw7qeWBLi8pVLSdRCzj7okVyHjwhc8lM pLxqfHi2qUKnsd0fDpr4bt7nM2DrFJFjKbWdZwVpeID2lryHfwyp0TNoaDXm5wXc/kWb KGJQ8UbRm1+UacM4z6Y22YpMPCUKCQhH+mxe6qluS0wMrrLzZjTLvDEYequ3OJGM4Ixm c9iQ== X-Gm-Message-State: ALyK8tIe3w35mIa+9uhzjPG1BlmacU7zRS48P+Djot7Gm/2QTOzvwqGC/986LCBgkRT7J8L7 X-Received: by 10.237.50.199 with SMTP id z65mr37062077qtd.24.1466598493477; Wed, 22 Jun 2016 05:28:13 -0700 (PDT) Received: from localhost (CPE687f74122463-CM00fc8d24cab0.cpe.net.cable.rogers.com. [99.224.54.224]) by smtp.gmail.com with ESMTPSA id p39sm22853612qtp.14.2016.06.22.05.28.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Jun 2016 05:28:12 -0700 (PDT) From: Anthony Green To: Matthew Fortune Cc: "java-patches\@gcc.gnu.org" , "aurelien\@aurel32.net" , Yunqiang Su Subject: Re: [RFC] interpreter use of closures and return types References: <6D39441BF12EF246A7ABCE6654B023537E45723C@HHMAIL01.hh.imgtec.org> Date: Wed, 22 Jun 2016 12:28:00 -0000 In-Reply-To: <6D39441BF12EF246A7ABCE6654B023537E45723C@HHMAIL01.hh.imgtec.org> (Matthew Fortune's message of "Wed, 22 Jun 2016 11:54:14 +0000") Message-ID: <87inx12ysl.fsf@laptop.atgreen.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00021.txt.bz2 Matthew Fortune 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