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

Reply via email to