Closed Brixomatic closed 3 years ago
Hi, I don't see -XX:+PrintAssembly
in your start command?
Hi, I don't see
-XX:+PrintAssembly
in your start command?
Hi,
thanks for the quick reaction.
Using -XX:+PrintAssembly
I get some stuff, but it doesn't quite look like assembly and I get lots of "unknown instruction, assembly reference loaded?" popups:
Hi, that looks like the disassembler hasn't disassembled the native code back to readable mnemonics.
I've only had success using hsdis from GNU binutils with JITWatch so I'd recommend you try that?
It's fairly easy to build from OpenJDK sources even on Windows:
https://stackoverflow.com/questions/33903276/how-to-build-hsdis-dll-for-windows-32-bit
https://dropzone.nfshost.com/hsdis/
Cheers,
Chris
Following the cygwin-tutorial on dropzone did the trick for me. Thanks a lot.
Using Windows 10
Using JDK 15
Downloaded hsdis-1.2.2-win32-amd64.zip (also tried hsdis-1.2.2-win32-x86.zip) from [https://sourceforge.net/projects/fcml/files/latest/download]() Copied hsdis.dll and hsdis.lib to
c:\Program Files\Java\jdk-15.0.1.9-hotspot\bin\server
Started jmh benchmark from MINGW64 Terminal like this:
Started jitwatch using the same JDK:
Added class files and directories in config, opened log and clicked "start"
No assembly found for any method.
Overview:![no assembly issue](https://user-images.githubusercontent.com/37806303/112997903-d0793800-916d-11eb-9502-4a77f3541654.png)