Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 22872 invoked from network); 18 Aug 2009 14:12:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 14:12:37 -0000 Received: (qmail 16189 invoked by uid 500); 18 Aug 2009 14:11:56 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 14952 invoked by uid 500); 18 Aug 2009 14:11:52 -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 13666 invoked by uid 99); 18 Aug 2009 13:58:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 13:58:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of oliver.deakin@googlemail.com designates 209.85.218.224 as permitted sender) Received: from [209.85.218.224] (HELO mail-bw0-f224.google.com) (209.85.218.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 13:57:50 +0000 Received: by bwz24 with SMTP id 24so3192260bwz.38 for ; Tue, 18 Aug 2009 06:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=TqUTXW8dYKxBWepDnrryIjMeErUWf4qFJ44en1vlcxY=; b=Ure4z0dftT3FHqHxWEW9IhH9/AuJLISHUdfHFQBjzwDsrdKLIdvqdTfNqcF0PWzxKu AeTtJuJGp6x4qBl5uFh02mce87aYJMzFw1V9RnXT6U/OKEhYqgHGmZVyBjdQ2Re79RZR Yo/uOxyNFtSFBDFBMIg12GHE+PBa0Zfw6kfx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qRWU/Ycw1uY5zf58iK31VtpGsm7cUYDSJtR1CdPptkjpz6qzALGLXeCg1S/UqWIQra 4mBSnPXQPpHb4Of7M403YeWhiYy1YTyKk11/O6ZYTpiopzLuR7tDQ5xSj0BWSdV3oIXq 2mYhfRirsaTbcPI0hMainyZRPXMbQ8dcMcQqc= Received: by 10.204.152.27 with SMTP id e27mr3800896bkw.192.1250603849833; Tue, 18 Aug 2009 06:57:29 -0700 (PDT) Received: from ?9.20.183.199? (blueice2n1.uk.ibm.com [195.212.29.75]) by mx.google.com with ESMTPS id 22sm6726797fkq.23.2009.08.18.06.57.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Aug 2009 06:57:28 -0700 (PDT) Message-ID: <4A8AB349.6090602@googlemail.com> Date: Tue, 18 Aug 2009 14:57:29 +0100 From: Oliver Deakin User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [drlvm] Thread library function table added References: <4A8179FC.9010409@googlemail.com> <94d710af0908112202x6eb5498dy9bd1dd84dbdde0b5@mail.gmail.com> <200908120654.n7C6sTjC024127@d06av03.portsmouth.uk.ibm.com> <4A8524A4.5040506@googlemail.com> <4A8A7B91.6090206@googlemail.com> <200908181131.n7IBVfcS030703@d12av04.megacenter.de.ibm.com> In-Reply-To: <200908181131.n7IBVfcS030703@d12av04.megacenter.de.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mark Hindess wrote: > I think we should do this. However, this will "break" developers using > the IBM VME. Perhaps we could do: > > Index: make/properties.xml > =================================================================== > --- make/properties.xml (revision 805151) > +++ make/properties.xml (working copy) > @@ -286,7 +286,10 @@ > > > > - > + > + > + > + > > > > > to mitigate this slightly? > It's not very pretty, but it would at least automate this step for the current VME until it is updated. It would still be an issue if users take a first time checkout of the class libraries, build them and then overlay the IBM VME, as the j9vm23 library would not be present at build time, but at least it would save us specifying the hy.no.thr flag for subsequent builds. It also needs to look for j9vm23.dll on Windows, having an condition for either library should do the trick. Regards, Oliver > Regards, > Mark. > > In message <4A8A7B91.6090206@googlemail.com>, Oliver Deakin writes: > >> Carrying on from this discussion, I'd like to make hy.no.thr=true the >> default setting and stop building the classlib thread library in the >> federated build. >> >> Please let me know if there are any objections/comments on this, >> otherwise I will make the change after M11 is published. >> >> Regards, >> Oliver >> >> Oliver Deakin wrote: >> >>> Mark Hindess wrote: >>> >>>> In message >>>> <94d710af0908112202x6eb5498dy9bd1dd84dbdde0b5@mail.gmail.com>, >>>> Sean Qiu writes: >>>> >>>> >>>>> +1 for both of your proposal, it sounds reasonable and cool. >>>>> Thanks, Oli. >>>>> >>>>> >>>> I am in favour of removing the option completely and removing the >>>> classlib thread code. Of course, this breaks the IBM VME so perhaps we >>>> can leave it in place - but change the default? - until a new IBM VME is >>>> available? >>>> >>>> >>> Yes, I think we should switch the default to hy.no.thr=true for a >>> transition period. There is no harm in keeping the classlib thread >>> code present for a while, but I think the eventual goal should be to >>> delete it from the repo. >>> >>> >>>> >>>> >>>>> One question here, what do you mean remove the code? svn del? >>>>> What about we "svn move" it to some other place, such as >>>>> >>>>> https://svn.apache.org/repos/asf/harmony/enhanced/legacy >>>>> >>>>> >>>> Well, we already have: >>>> >>>> https://svn.apache.org/repos/asf/harmony/enhanced/classlib/archive >>>> >>>> but I think "svn delete" is fine since you can always checkout earlier >>>> revisions if you need to revisit the code. >>>> >>>> >>> Agreed. >>> >>> Regards, >>> Oliver >>> >>> >>>> Regards, >>>> Mark. >>>> >>>> >>>> >>>>> 2009/8/11 Oliver Deakin : >>>>> >>>>> >>>>>> Hi all, >>>>>> >>>>>> I have added an implementation of the thread library function table >>>>>> for >>>>>> DRLVM which can be enabled by building with the "-Dhy.no.thr=true" >>>>>> flag >>>>>> specified on the Ant command line. This means we no longer need to >>>>>> build th >>>>>> >>>>>> >>>>> e >>>>> >>>>> >>>>>> classlib thread library in the federated build, and we also no >>>>>> longer need >>>>>> to copy the DRLVM hythr library into jre/bin (although I havn't >>>>>> changed the >>>>>> build to not do the copy yet). I have temporarily set the hythr >>>>>> library >>>>>> version to 0.2 so that the federated build can be run with and >>>>>> without the >>>>>> hy.no.thr flag set. >>>>>> >>>>>> This opens a couple of questions for discussion: >>>>>> 1) Shall we set the hy.no.thr option to true as default? I >>>>>> personally think >>>>>> we should - the classlib hythr library is not used in the federated >>>>>> builds, >>>>>> so there is no reason to continue building it. >>>>>> 2) Shall we remove the thread library from classlib altogether? If >>>>>> hy.no.thr=true becomes the default, I can see reasons for and >>>>>> against [1] >>>>>> removing the source from classlib, but I think the reasons to >>>>>> remove the >>>>>> code outweigh the reasons to keep it. My vote is to remove that source >>>>>> module from classlib altogether. >>>>>> >>>>>> Ideas/comments? >>>>>> >>>>>> Regards, >>>>>> Oliver >>>>>> >>>>>> [1] A few I can think of straight off: >>>>>> For: >>>>>> - Unused thread library code in classlib is unlikely to be maintained. >>>>>> - Some classlib thread code is incorrect (x86_64 linux has some >>>>>> invalid >>>>>> assembler code I believe). >>>>>> - Shrinks the source tree footprint. >>>>>> - All VMs will likely have their own implementation of this >>>>>> functionality >>>>>> anyway. >>>>>> Against: >>>>>> - Raises the bar slightly for VM vendors wishing to use the Harmony >>>>>> class >>>>>> libraries. >>>>>> >>>>>> >>>> >>>> >>>> >> -- >> Oliver Deakin >> Unless stated otherwise above: >> IBM United Kingdom Limited - Registered in England and Wales with number 7415 >> 98. >> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU >> >> > > > > -- Oliver Deakin Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU