Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 50810 invoked from network); 13 Dec 2006 09:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 09:33:34 -0000 Received: (qmail 72045 invoked by uid 500); 13 Dec 2006 09:33:39 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 72017 invoked by uid 500); 13 Dec 2006 09:33:39 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 72008 invoked by uid 99); 13 Dec 2006 09:33:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 01:33:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of t.p.ellison@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 01:33:27 -0800 Received: by ug-out-1314.google.com with SMTP id z36so97532uge for ; Wed, 13 Dec 2006 01:33:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=XmgNdhb6q7g6wwFczk+o3Vi89lM8PZ8/UnQEbW6KLEENSVjXd9eFUdif3uMLBxlmLqcSF2Jra2C1LwpYBJpnBbYOd5afm5A9m8Yr96P1ux2Zblppv3NG9d9fmUbDJFmIsDP9GddZefCXDQ+IFDy4Ej9B0j2qWoY7bJV3v1k1+jY= Received: by 10.67.121.15 with SMTP id y15mr868137ugm.1166002381548; Wed, 13 Dec 2006 01:33:01 -0800 (PST) Received: from ?9.20.183.73? ( [195.212.29.67]) by mx.google.com with ESMTP id 29sm407203uga.2006.12.13.01.33.01; Wed, 13 Dec 2006 01:33:01 -0800 (PST) Message-ID: <457FC8C7.2090102@gmail.com> Date: Wed, 13 Dec 2006 09:32:55 +0000 From: Tim Ellison User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [drlvm][em64t] drlvm broken on em64t? References: <457EC663.5040209@pobox.com> <457EE270.2040602@pobox.com> <457EEC45.20308@pobox.com> <457F1E88.7050807@pobox.com> <457F2FCF.2040905@pobox.com> <457F350A.5090104@pobox.com> In-Reply-To: <457F350A.5090104@pobox.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Geir Magnusson Jr. wrote: > Right - the thing I was asking if the behavior of GetSystemProperty() > changed. > > Looking at Ollie's change in r486100, he seems to think that it's not an > error to not have the property set, but our impl of it does. > > That's the issue I'm trying to get to - does the API of > GetSystemProperty() specify that it returns an error code if the > property isn't set? > > If so, then Ollie's code is wrong. If not, then it's either that the > API is ambiguous (Ollie's assumption wasn't unreasonable) or our impl of > GetSystemProperty() is wrong. I agree that the API needs further definition, so I propose the following clarification: Index: modules/luni/src/main/native/include/shared/vmi.h =================================================================== --- modules/luni/src/main/native/include/shared/vmi.h (revision 486224) +++ modules/luni/src/main/native/include/shared/vmi.h (working copy) @@ -220,7 +220,7 @@ /** * @fn VMInterfaceFunctions_::GetSystemProperty(VMInterface * vmi, char *key, char **valuePtr) - * Retrieve the value of a VM system property. + * Retrieve the value of a VM system property. If the property is not set returns NULL. * * @note The returned string is owned by the VM, and should not be freed. */ Regards, Tim