title: PrintAssembly option on JVM Hotspot is enabled but not showing any assembly trace
body: <p>I am working on intel i386, Ubuntu 14. The OpenJDK version info shown by <code>$java -version</code> is</p>
  <pre><code>java version &quot;1.7.0_65&quot;
  OpenJDK Runtime Environment (IcedTea 2.5.2) (7u65-2.5.2-3~14.04)
  OpenJDK Server VM (build 24.65-b04, mixed mode)
  </code></pre>
  <p>As mentioned <a href="https://wikis.oracle.com/display/HotSpotInternals/PrintAssembly" rel="nofollow noreferrer">here</a> I have copied the required binary <code>hsdis-i386.so</code> to the following locations</p>
  <pre><code>/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/server
  </code></pre>
  <p>and</p>
  <pre><code>/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/client
  </code></pre>
  <p>Then I followed <a href="http://dolzhenko.blogspot.in/2010/04/java-printassembly.html" rel="nofollow noreferrer">this</a> blog to workaround and try to get an assembly code of a java program. I used below command to test a sample java program <code>MyClass.java</code></p>
  <pre><code>java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly -XX:PrintAssemblyOptions=hsdis-print-bytes -XX:CompileCommand=print,MyClass MyClass
  </code></pre>
  <p>The message I got on the console is</p>
  <pre><code>OpenJDK Server VM warning: PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output
  CompilerOracle: unrecognized line &quot;print Test&quot;
  c = 50
  </code></pre>
  <p>Where <code>MyClass.java</code> is</p>
  <pre><code>public class MyClass{
    public static void main(String [] args){
      int a = 10;
      int b = 40;
      int c = a + b;
      System.out.println(&quot;c = &quot;+c);
    }
  }
  </code></pre>
  <p>As per my understanding and looking at above message, jvm is able to locate <code>hsdis-i386.so</code> and so its saying <code>PrintAssembly is enabled</code>, however it is not showing any assembly code out there. Please help me point out the mistake I am doing.</p>