Object allocation tracing / profilers

Robert Stupp snazy at snazy.de
Fri Feb 7 22:39:19 UTC 2014

Am 07.02.2014 um 23:29 schrieb Jeremy Manson <jeremymanson at google.com>:

> We have a patch for tracking method calls, too.  It doesn't do callbacks on method invocation, but it does provide a list of method invocations.  You can already do callbacks on method entry and exit with JVMTI, but it is expensive, which is why we built that.  If there's interest, we can provide it.
> As far as the allocation tracking patch - you will have to feel comfortable patching and building your own JDK, and writing a blob of native code loaded by the JVM that will dlsym into libjvm.so to fish out the method to register your callback.  Does that sound like something you feel comfortable doing?

Hm - I interrupted coding C/C++ when Java was born. But I want to give it a try :) A nice project to "get back to the roots" and get a deeper understanding what's going on in that "wunderbox" JVM/Hotspot.

> (I'm about to send the forward-port patch out to get code-reviewed for JDK8 before leaving for the first half of vacation, so if that doesn't scare you, then I can send it the week after next, or so.)



More information about the core-libs-dev mailing list