Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 43302 invoked from network); 29 Jul 2009 13:15:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jul 2009 13:15:20 -0000 Received: (qmail 30057 invoked by uid 500); 29 Jul 2009 13:15:06 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 30016 invoked by uid 500); 29 Jul 2009 13:15:06 -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 29991 invoked by uid 99); 29 Jul 2009 13:15:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 13:15:03 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 195.212.29.138 is neither permitted nor denied by domain of mark.hindess@googlemail.com) Received: from [195.212.29.138] (HELO mtagate5.uk.ibm.com) (195.212.29.138) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 13:14:53 +0000 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate5.uk.ibm.com (8.14.3/8.13.8) with ESMTP id n6TDDpRC663556 for ; Wed, 29 Jul 2009 13:13:51 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n6TDDn8c1650794 for ; Wed, 29 Jul 2009 14:13:52 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n6TDDnH9018017 for ; Wed, 29 Jul 2009 14:13:49 +0100 Received: from anaheim.local (dhcp-9-20-183-185.hursley.ibm.com [9.20.183.185]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n6TDDnf0018012 for ; Wed, 29 Jul 2009 14:13:49 +0100 Message-Id: <200907291313.n6TDDnf0018012@d06av01.portsmouth.uk.ibm.com> X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-16) with nmh-1.2 In-reply-to: <4A7031F1.3020209@apache.org> References: <4A70307B.3090804@googlemail.com> <4A7031F1.3020209@apache.org> Comments: In-reply-to Gregory Shimansky message dated "Wed, 29 Jul 2009 15:26:41 +0400." From: Mark Hindess To: dev@harmony.apache.org Subject: Re: [classlib][jdwp] Use java 6 branch JDWP in java 5 builds? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Jul 2009 14:13:49 +0100 X-Virus-Checked: Checked by ClamAV on apache.org In message <4A7031F1.3020209@apache.org>, Gregory Shimansky writes: > > Oliver Deakin said the following on 29.07.2009 15:20: > > Hi all, > > > > After determining the cause of HARMONY-6246 [1] I discovered that it has > > already been fixed in the Java 6 branch, where I recently applied the > > contribution in HARMONY-6187 [2]. This got me thinking - there have been > > a number of bug fixes, performance improvements and portability changes > > made which were applied in that contribution and it is likely we will > > hit some of the same issues again in the Java 5 branch which have > > already been fixed in Java 6. > > > > Is it possible for us just to use the updated Java 6 branch JDWP in our > > Java 5 builds as well? Not only would we benefit from the code > > improvements made there, we would have one unified code base for JDWP > > (and possibly the whole of jdktools?). > > > > Any comments on this idea? > > If JDWP agent with Java6 update doesn't demand that VM support new > features of JVMTI (that is it can work with Java5 VM), I think it is a > good idea. Backporting all of the bugfixes may be quite difficult since > it is necessary to separate pure bugfixes from Java6 enhancements in [2]. > > > [1] https://issues.apache.org/jira/browse/HARMONY-6246 > > [2] https://issues.apache.org/jira/browse/HARMONY-6187 Does the current combination of DRLVM and java6 branch JDWP work consistently? That is, do all of hardcoded (?) capabilities[0] that JDWP claims are supported work with DRLVM as expected? Does any of the Java 5 JDWP functionality require 6.0 JVMTI calls? Assuming the answers to the above are yes, yes and no, then I see no problem. If anyone needs a JDWP for a Java 5 VM then we'd just need to #ifdef the reporting of the capabilities to stop 6.0 calls being invoked. Regards, Mark. [0] particularly java 6 ones such as canGetInstanceInfo, canRequestMonitorEvents, canGetMonitorFrameInfo, canUseSourceNameFilters, canGetConstantPool, and canForceEarlyReturn