JVMTI lib location (original) (raw)

mr rupplin mearvk at outlook.com
Mon Aug 13 01:52:05 UTC 2018


Where are the source codes for the following methods:

err = (*jvmti)->GetMethodDeclaringClass(jvmti, frames[i].method, &declaring_class);

err = (*jvmti)->GetClassSignature(jvmti, declaring_class, &declaringClassName, NULL);

Thanks,

Max


From: David Holmes <david.holmes at oracle.com> Sent: Sunday, August 12, 2018 7:07 PM To: mr rupplin; core-libs-dev at openjdk.java.net; serviceability-dev Subject: Re: JVMTI lib location

Hi Max,

On 11/08/2018 6:41 AM, mr rupplin wrote:

Trying to write a quick agent for the JVM. The jvmti.h file is found quickly but I do not know what to link it with. Can you guys help?

JVM TI is a serviceability-dev topic, though that's really about developing JVM TI not using it. There are numerous tutorials/blog pages on using JVM TI e.g. [1]. IIUC the JVM TI agent library is dynamically loaded into the JVM and thus dynamically linked with the JVM TI runtime

David

[1] http://www.oracle.com/technetwork/articles/javase/index-140680.html

Thanks.

Max r.



More information about the core-libs-dev mailing list