We have seen VM crashes which were related to nmethods, but not inside an nmethod. An example is JDK-8357017. We were only able to understand the problem because we had a core file. Seeing instructions in the created hs_err file would have helped a lot. It is possible to print some instructions when a register is pointing into code of an nmethod.
- links to
-
Review(master) openjdk/jdk/27530