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

VM is null null #352

Closed Thihup closed 2 years ago

Thihup commented 2 years ago

Using JDK 11+, the following code in JITWatchUI.java fails to work properly:

https://github.com/AdoptOpenJDK/jitwatch/blob/master/ui/src/main/java/org/adoptopenjdk/jitwatch/ui/main/JITWatchUI.java#L732-L735

A way to fix it would be using some of java.* (java.version/java.vendor) system property

chriswhocodes commented 2 years ago

Thanks, I'll take a look at those properties.

chriswhocodes commented 2 years ago

Fixed in https://github.com/AdoptOpenJDK/jitwatch/commit/46a8258b8589265500b53d7e70502a7ac53983fd

Thanks for the tip on how to fix this :)