profile questions
Anthony Green
green@redhat.com
Sun Aug 27 16:54:00 GMT 2006
On Sun, 2006年08月27日 at 08:40 -0700, Anthony Green wrote:
> So, my questions...
> 1. What's with _dl_addr taking > 51% of the time?
I can answer this question now. This is from the stack trace generation
code required for logging.
This is the same problem that made tromey check in the following patch
for our java.util.logging implementation:
http://gcc.gnu.org/ml/java-patches/2005-q1/msg00500.html
Unfortunately tomcat uses jakarta-commons-logging as a wrapper around
java.util.logging. Because it is a wrapper, it needs to pass the
caller's class/method info to our Logger instead of letting Logger use
tromey's fast method for determining the caller info.
This is really unfortunate. I can't think of nice solution.
jakarta-commons-logging's Jdk14Logger code here actually says:
// Hack (?) to get the stack trace.
Maybe one "solution" would be to extend this hack to call a gnu.gcj
class for fast caller identification.
AG
More information about the Java
mailing list