Obtaining methods executed at least once?
Krystal Mok
rednaxelafx at gmail.com
Wed May 16 07:48:30 PDT 2012
On Wed, May 16, 2012 at 10:39 PM, Andreas Sewe <
sewe at st.informatik.tu-darmstadt.de> wrote:
> The question is whether I can force interpretation for all methods (so
> that the counts are incremented) by doing -XX:-UseCompiler?
>
I don't think you have to anything to "force" a Java method to be
interpreted first, because that's the default behavior already. Since you
only care about "non-zero" invocation counts, running a method in the
interpreter for even just once is enough, and it doesn't matter if the
method got compiled later.
So long as you don't do -Xcomp sort of stuff, you should get the correct
list of invoked methods this way. And with the -XX:-UseFastEmptyMethods
-XX:-UseFastAccessorMethods caveat.
Hopefully I'm not missing anything... :-)
- Kris
> Best wishes,
>
> Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20120516/21df5342/attachment.html
More information about the hotspot-dev
mailing list