Looking for directions about compiling and tracing OpenJDK
Ira Abramov
Lists-Linux-IL at ira.abramov.org
Tue Oct 9 12:32:18 IST 2012
Quoting Amos Shapira, from the post of Tue, 09 Oct:
> Hi,
>
> I have an idea which involves going somewhat deep into the bowls of the
> Java Jar class loader when using the official Oracle JDK 6 (and soon 7).
> To verify this I started looking at the JDK source code but it's not small
> and I'd like to try to trace through it while it executes Java programs.
>
> Does anyone here have experience in doing something like this and can give
> me some useful pointers on how to do this?
>
> I'd like to be able to do "gdb java -jar HelloWorld.jar" and single-step
> through the class loader while it loads HelloWorld.jar.
My humble opinion - gdb will catch way too much crap. Is it so low in
the stack that you can't provision it with JMX and trace it through
that?
--
Ben and Jerry's love child
Ira Abramov
http://ira.abramov.org/email/
More information about the Linux-il
mailing list