A small favor if you can PrintAssembly on non x86?

Dennis Byrne dennisbyrne at apache.org
Fri Nov 27 15:42:15 UTC 2009

I am writing an article on memory barriers and the only hardware I can
get my hands on is x86.  The consistency guarantees of the x86 memory
model leave me very few examples to write about because the jvm does
not have to work so hard.  I will gladly put the names of anyone that
can help me in the acknowledgments sections of the article when it is

If you have a recent build of openjdk (or update 14+ of jdk 1.6), and
you have the base-hsdis or hsdis plugin installed (in other words, you
can PrintAssembly), please run these four simple commands and please
send me the output of write.txt and read.txt.

$ wget http://people.apache.org/~dennisbyrne/memory/WriterReader.java
$ javac WriterReader.java
$ java -XX:+UnlockDiagnosticVMOptions
-XX:CompileCommand=print,WriterReader.write WriterReader > write.txt
$ java -XX:+UnlockDiagnosticVMOptions
-XX:CompileCommand=print,WriterReader.read WriterReader > read.txt

Ideal would be Itanium or PPC output.  These memory models are much
different and would give me more examples to write about.  The weaker
the better.  Sparc would still be interesting also.

Getting a hold of a non-x86 system has been more difficult than
writing the article itself.  Any help you can give me is greatly

Dennis Byrne

More information about the discuss mailing list