Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 20632 invoked from network); 5 Mar 2007 21:35:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 21:35:13 -0000 Received: (qmail 43650 invoked by uid 500); 5 Mar 2007 21:35:18 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 43601 invoked by uid 500); 5 Mar 2007 21:35:17 -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 43580 invoked by uid 99); 5 Mar 2007 21:35:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 13:35:17 -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 gshimansky@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 13:35:04 -0800 Received: by ug-out-1314.google.com with SMTP id z36so1216479uge for ; Mon, 05 Mar 2007 13:34:42 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=SzJZhljZmgJ4j5hnQ2uLeo7j122csGP5r0WBKO5isLvYqrPhjg79n7tPRFobFiM7n1WkUPTJ0lsFauyB38JGIdekvTMdvrdXrFDOsUaHIAa+t04Y5UkxENfmVdBTZ7Uolbg1jlMg0z3Tu6ziaqLGYu4GE6PbepCuoykVyICVxvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=dDTmE+Rcf9koSfRLJpDNGsKhjfQVQEn24IvuiVKBzrzqlwMt3Dm9dvfBbJYDiuQvCgBW4iTOgcX6CuaDwuNc8mW1MFKQwK8vsLqrUiTrX+FZG/KX/8XgiglsN9h6sZx8IJXASHwokglOH/XosxpvAiX97zcTpE4xDHfqUiwgFCY= Received: by 10.67.22.2 with SMTP id z2mr11526730ugi.1173130481826; Mon, 05 Mar 2007 13:34:41 -0800 (PST) Received: from ?192.168.1.5? ( [91.76.77.2]) by mx.google.com with ESMTP id y2sm19387667mug.2007.03.05.13.34.41; Mon, 05 Mar 2007 13:34:41 -0800 (PST) From: Gregory Shimansky To: dev@harmony.apache.org Subject: Re: [drlvm][jvmti] JVMTI support? Date: Tue, 6 Mar 2007 00:34:40 +0300 User-Agent: KMail/1.9.5 References: <004601c75f69$c60ffd90$6a01a8c0@armand1cc074f4> In-Reply-To: <004601c75f69$c60ffd90$6a01a8c0@armand1cc074f4> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703060034.40380.gshimansky@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Tuesday 06 March 2007 00:03 Armand Navabi wrote: > Pavel, > > Interesting. I am working on Ubuntu 6.06. If I am in the Harmony bin > directory and I try to run like this: > > ./java -agentpath: HelloWorld > > I get the error I explained before. When I use Sun's java (java 5.0), it > works fine. I looked at the agent source and I find some inconsistency in its code. It calls GetEnv with JVMTI_VERSION constant, but prints error message with JVMTI_VERIONS_1 constant. These constants are actually different. The JVMTI_VERSION_1 constant has 0 in MICRO version field while JVMTI_VERSION has the actual MICRO version for the JVMTI implementation in VM. Could you change the agent to always use JVMTI_VERSION_1? In this case you won't depend on the MICRO version of the JVMTI implementation of the header file from JDK that you've used to compile agent code. > -----Original Message----- > From: Pavel Pervov [mailto:pmcfirst@gmail.com] > Sent: Monday, March 05, 2007 5:33 AM > To: dev@harmony.apache.org > Subject: Re: [drlvm][jvmti] JVMTI support? > > Armand, > > I tried this simple agent on Windows and got it working perfectly. > > What platform you are working on? > > Pavel. > > On 3/5/07, Armand Navabi wrote: > > Is there support for JVM Tool Interface from the JIT? The developers > > guide says that the JVMTI support component relies on support from > > execution engines. Section 3.3.2 mentions support for JVMTI in the > > interpreter, but I see no mention in the JIT section (Section 3.3.1). > > > > I am trying to use this simple agent > > ( > > http://wsjoung.wordpress.com/2006/11/17/the-java-virtual-machine-tool-inter >f ace-jvmti/ > > > ), > > but it causes the following error: > > > > ERROR: Unable to access JVMTI Version 1 (0x30010000), is your J2SE a 1.5 > > or newer version? JNIEnvs GetEnv() returned -3 > > > > I tried to use the agent with both the JIT and the interpreter, but both > > resulted in the above error. > > > > Thanks, > > Armand -- Gregory