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

hsdis generates duplicate output for JVMCI installed code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b21

      Description

      http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2017-May/026232.html

      I tried to disassemble JVMCI installed code via hsdis.
      It works but I got duplicate output from hsdis.

      How to reproduce:

         1. Clone reproducer from GitHub
              https://github.com/YaSuenag/jdt-2017-examples

         2. Copy some files from hotspot testcase
              Please read README.md in this repository.

         3. Edit Makefile to use hsdis
              - code-injection/Makefile
              - Enable UnlockDiagnosticVMOptions and CompilerDirectivesFile

         4. Deploy hsdis to JDK 9 EA b169

         5. Run reproducer
              $ make JAVA_HOME=/path/to/jdk9 syscall


      hsdis is called from JVMCIEnv::register_method() and CodeInstaller::install().
      So we get same output from hsdis twice.

        Attachments

          Activity

            People

            • Assignee:
              ysuenaga Yasumasa Suenaga
              Reporter:
              ysuenaga Yasumasa Suenaga
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: