You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Elford, Chris L" <ch...@intel.com> on 2006/05/12 20:18:44 UTC

[DRLVM] -- JVMTI support?

Hi all,
 
  I was working with the version of DRLVM that I compiled off of
JIRA-438.  I tried it with a JVMTI agent using -agentlib:...  It looks
like this version gives Class Load events.  According to JVMTI, loading
eclipse loads 4,189 classes.
 
  I'm not seeing any Method Load Events though.  Has anyone else tried
JIRA-438 with JVMTI and seen more events?
 
Thanks!
 
Chris Elford
Intel Middleware Products Division

Re: [DRLVM] -- JVMTI support?

Posted by Gregory Shimansky <gs...@gmail.com>.
On Friday 12 May 2006 22:18 Elford, Chris L wrote:
> Hi all,
>
>   I was working with the version of DRLVM that I compiled off of
> JIRA-438.  I tried it with a JVMTI agent using -agentlib:...  It looks
> like this version gives Class Load events.  According to JVMTI, loading
> eclipse loads 4,189 classes.
>
>   I'm not seeing any Method Load Events though.  Has anyone else tried
> JIRA-438 with JVMTI and seen more events?

If you mean CompiledMethodLoad event, you may not see it since when JVMTI is 
enabled on command line (-agentlib, -agentpath or -xrun options are 
specified) then by defaul VM currently enables interpreter mode. It is made 
because JVMTI is not implemented to any usable extent in VM in JIT mode yet. 
But in interpreter mode it is already usable for simple debugging.

So if you want to see CompiledMethodLoad event you need to explicitly specify 
-Dvm.use_interpreter=false on the VM command line. This will allow you to 
receive some JIT/interpreter independent events like ClassLoad or 
ClassPrepare and several profiling related events like CompiledMethodLoad or 
DynamicCodeGenerated. If that doesn't work, let me know. It should :)

-- 
Gregory Shimansky, Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org