LinkResolver question

Yi Yang idealistyy at gmail.com
Thu Aug 26 10:23:23 PDT 2010


Hello everyone,

I added a printf statement into the LinkResolver::resolve_invokestatic(),
hoping that it would hook a static method call when a invokestatic bytecode
happens. However, it prints out more statements than I expected, and the
.class file tested actually doesn't have any static method calls (according
to javap also). So, my question is, why does resolve_invokestatic()  be
called even if there is no invokestatic bytecode?

Also, do you think adding instrumentation hooks into LinkResolver is a good
idea to record the method calls information during the runtime? Thank you.

Best,
Yi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20100826/3a23e4b8/attachment.html 


More information about the hotspot-dev mailing list