Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide disassemblage for JIT methods #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jrudolph
Copy link
Member

The code needs more cleanup and stability before I will merge it.

The code is also very non-portable. I know it works for at least one of the JVMs I have installed but as this code contains some evil hacks like trying to guess C++ class memory layout to construct C++ classes from C code, it will probably break badly in sufficiently different environments. If someone has better ideas how to figure out the memory layout (maybe by accessing debug symbols?), please advice.

You need to put hsdis-<arch>.so to one of the places where hotspot expects it.

Also, we need to support calling out to proper objdump for non-JITted DSOs.

Another improvement would be to use a named pipe or a socket instead of this brittle write file / read file setup to transfer data from the target process to the agent loader.

Will fix #7 when ready.

Conflicts:
	.gitignore
	CMakeLists.txt
	perf-java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

annotate a JITted method
1 participant