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

DCmd Compiler.codelist should print all compiled methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • b21
    • generic
    • generic

      Right now Compiler.codelist only prints JIT compiled methods (nmethods) but it should print AOT compiled methods as well.

      The patch also adds an additional column to show the "state" of the method. It can be important to know if the method is active or not.

      473 4 0 java.util.zip.ZipFile$Source.initCEN(I)V [0x0000000109fe0190, 0x0000000109fe0440 - 0x0000000109fe27f8]
      499 4 2 java.util.Collections$UnmodifiableCollection$1.next()Ljava/lang/Object; [0x0000000109fe3790, 0x0000000109fe3960 - 0x0000000109fe3b00]

      AOT compiled code shows up with a compile level of -1:

      819 -1 0 jdk.vm.ci.code.RegisterValue.<init>(Ljdk/vm/ci/meta/ValueKind;Ljdk/vm/ci/code/Register;)V [0x00007fe3e2623af0, 0x000000010df35468 - 0x000000010df35760]
      820 -1 0 jdk.vm.ci.code.RegisterValue.getRegister()Ljdk/vm/ci/code/Register; [0x00007fe3e2623c00, 0x000000010df357e8 - 0x000000010df35868]
      821 -1 0 jdk.vm.ci.code.RegisterValue.equals(Ljava/lang/Object;)Z [0x00007fe3e2623d10, 0x000000010df358e8 - 0x000000010df35b08]

            twisti Christian Thalinger (Inactive)
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: