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

Add Capstone as backend for hsdis

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 19
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: