-
Enhancement
-
Resolution: Fixed
-
P3
-
10
-
b11
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.
(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.
- relates to
-
JDK-8209784 Include hsdis in the JDK
-
- Resolved
-
-
JDK-8253757 Add LLVM-based backend for hsdis
-
- Resolved
-
-
JDK-8283519 Hsdis with capstone should annotate output
-
- Resolved
-
-
JDK-6684007 PrintAssembly plugin not available for linux or windows
-
- Closed
-
-
JDK-8130432 ppc64le: Fix build of hsdis
-
- Resolved
-
-
JDK-8026337 hs_err improvement: Print instructions around PC as assembler, not hex
-
- Closed
-
(1 relates to, 2 links to)