Re: Performance penalty of using private variable in inner class

Endre Stølsvik <[email protected]>
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
[email protected] wrote:
> I diffed the assembly output from hotspot and my layperson conclusion is there is no [meaningful] difference.
>
> With the java 7 debug build I ran:
> javac T.java && java -server -XX:+PrintOptoAssembly -Xcomp -cp . T > private
> javac T.java && java -server -XX:+PrintOptoAssembly -Xcomp -cp . T > pp
>

I do know this is a rather old post to reply to, but I just came over it..

 From where did you get this exciting option?! When I google it, this
post is actually on place #3 and #4 of the result list, with #1 and #2
being some bugs.sun.com entries..!

How do you get hold of these [fast]debug builds?

Other cool options, listed along with the one you came up with, are the
PrintEscapeAnalysis and DoEscapeAnalysis, but I guess these aren't
available/enabled yet, at least Brian tells us that whenever they crop
up in some message..!

Is there a place that list ALL the X and XX options, preferably per JVM
version? It doesn't really seems like way too much to ask, but I've
never come across it. And the documentation there is, for example on the
GC tuning stuff, is spread out in lots of documents, some PDFs and
whatnots, and is always not for the current JVM!

Kind regards,
Endre.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.