RFR: 8025692: Add trace to find out what methods are used at runtime.

Karen Kinnear karen.kinnear at oracle.com
Fri Mar 27 13:56:46 UTC 2015


Couple of questions 

1) The bug says "so that infrequently used methods" ...
So I was expecting a use count, rather than what appears to be a table of any entries that are used.
It looks fairly straightforward to add a use count.

2) You put the hook in ciMethod.cpp -- does this catch interpreter calls to a method?

3) Does the compiler already track profile information of how often a method is called? If so,
is there a way to print that information?

4) is this something we would want to be able to turn on remotely, i.e. a writeable flag? So people could
track calls from a given point?


On Mar 26, 2015, at 10:34 PM, Yumin Qi wrote:

> Please review:
> bug: https://bugs.openjdk.java.net/browse/JDK-8025692
> webrev: http://cr.openjdk.java.net/~minqi/8025692/webrev01/
> Summary: Add two flags to help list all java methods called in runtime, this is also in product and can help CDS to rearrange methods in shared archive to avoid loading infrequent methods into memory.
> Tests: vm.runtime.quick.testlist, JPRT
> Thanks
> Yumin

More information about the hotspot-runtime-dev mailing list