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

Add Capstone as backend for hsdis

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 19
    • 10
    • infrastructure
    • b11

    Description

      The Capstone disassembly library http://www.capstone-engine.org looks really good as a potential engine for the "hsdis" plugin, which HotSpot uses to implement the -XX:+PrintAssembly switch. The plugin uses Gnu Binutils to get its work done. We should also make the plugin compile with Capstone.

      (We use the plugin rather than directly incorporating a disassembler in HotSpot to reduce code size and maintenance burden. The plugin itself is very small, much smaller than any disassembler; it's just enough code to invoke a disassembler in a platform-neutral manner. OpenJDK is not in the disassembler business, even though we assemble a lot of the planet's executing code.)

      This would be a fine project for the OpenJDK community.

      Attachments

        Issue Links

          Activity

            People

              ihse Magnus Ihse Bursie
              jrose John Rose
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: