A valid method ID
Roman Kennke
roman.kennke at aicas.com
Mon Jul 21 09:11:53 PDT 2008
Hi,
> For sake of profiling, I want to record some unique numberic ID for each
> method in the java code. I am modifying the JVM CPP interpreter and was
> wondering about what value I should use as an ID that doesn't change
> throughout execution. I don't want to rely on method name + signature. For
> now, I use the jmethodID object address, I am not sure if it remains
> unchanged or not.
According to the JNI spec it must not change as long as the
corresponding class is not unloaded and re-loaded.
/Roman
--
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com * Tel: +49-721-663 968-48
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt
More information about the hotspot-dev
mailing list