Wholy shit what a lousy reader i am... I've completly missed the if(m_debug) line !!!
And that one was set to true in the version i have. So i was in a debug mode...
Sorry to disturb you all....
/Lepe
----- Original Message -----
From: Lennart Petersson <[EMAIL PROTECTED]>
To: jBoss Developer <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 1:17 PM
Subject: [JBoss-dev] CPU killer...
Can someone explain to me these lines of code:
*********** Start
org.jboss.util.Semaphore.java
...
protected void logAcquire()
{
...
...
StringWiter sw = new StringWriteer();
new Exception().printStackTrace(new PrintWriter(sw));
String trace = sw.toString();
...
...
}
*********** End
Well ok, I do understand what is happening, i'm more interested in why it is done and
if there is a way to do it more efficient because in my testcase this
printStackTrace() is taking 65 % of the CPU time !!!
/Lennart
===================
Lennart Petersson
www.benefit.se/english
[EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development