AdoptOpenJDK / jitwatch

Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.
Other
3.04k stars 435 forks source link

Help needed: Assembly not found #341

Closed Brixomatic closed 3 years ago

Brixomatic commented 3 years ago

Overview: no assembly issue

chriswhocodes commented 3 years ago

Hi, I don't see -XX:+PrintAssembly in your start command?

Brixomatic commented 3 years ago

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:

image

chriswhocodes commented 3 years ago

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

Brixomatic commented 3 years ago

Following the cygwin-tutorial on dropzone did the trick for me. Thanks a lot.