Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235181

-XX:+PrintDisassembly also emits NMethods

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Java 12.0.1 on linux-x64, but also has been reproduced previously on 13 and 14-ea

      A DESCRIPTION OF THE PROBLEM :
      -XX:+PrintDisassembly VM option toggles additional output, which, i assume, is information about NMethods (see actual result)

      Everything i've expected was just assembly listings as in https://wiki.openjdk.java.net/display/HotSpot/PrintAssembly, however, i don't see them as well (hsdis64.so is present in {jdk}/lib, but i can't guarantee i've done everything right).

      I'm not a c++ expert, but probably there should be && instead of ||: https://github.com/openjdk/jdk/blob/5a21a8c4ddf081d1a684144ff4aad88ca6a37a78/src/hotspot/share/code/nmethod.cpp#L915

      REGRESSION : Last worked in version 8u231

      ACTUAL -
      Lots of entries like this:

      ImmutableOopMap{rsi=Oop r11=Oop r8=Oop r9=Oop }pc offsets: 520
      ImmutableOopMap{r11=Oop r8=Oop r9=Oop }pc offsets: 533
      ImmutableOopMap{r11=Oop r8=Oop r9=Oop rax=Oop }pc offsets: 566 599 Compiled method (c1) 23 29 3 java.util.HashMap$Node::<init> (26 bytes)
       total in heap [0x00007f9b3d116210,0x00007f9b3d1167e8] = 1496
       relocation [0x00007f9b3d116388,0x00007f9b3d1163c8] = 64
       main code [0x00007f9b3d1163e0,0x00007f9b3d116660] = 640
       stub code [0x00007f9b3d116660,0x00007f9b3d1166f0] = 144
       metadata [0x00007f9b3d1166f0,0x00007f9b3d116708] = 24
       scopes data [0x00007f9b3d116708,0x00007f9b3d116750] = 72
       scopes pcs [0x00007f9b3d116750,0x00007f9b3d1167e0] = 144
       dependencies [0x00007f9b3d1167e0,0x00007f9b3d1167e8] = 8

      FREQUENCY : always


            rraghavan Rahul Raghavan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: