Hi Everyone,
I'm following this group now for a while and I want to learn more about this stuff and get my hands dirty a bit. I'm using Mac OS X, but I managed to get the hsdis dylib running and eventually some ASM output.
Now, the most simplest program I came up with is of course:
public class Main {
public static void main(String[] args) {}
}
Now, when I run it with
javac Main.java && java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly Main
While I understand that there must be something going on, I wonder why there are so many String#hashCode calls in there? (nearly 30)..
My other question is that if you guys know some "tricks" to actually make it easy to mark/spot some code that I'm interested in debugging.. like if I put an algorithm into a method, how can I easily identify that method ans spot where my code is actually supposed to run?
Any input or initial help would be greatly appreciated (and may be of help to newcomers). To contribute back, I'll write up a blog post on how get this up and running on Mac OS X, since I didnt find lots of material on the web either.
Cheers,
Michael