From c7c61c8d4032afc74932ebb755a7d8567300f223 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 29 Oct 2010 04:11:13 +0200 Subject: RecursiveLock: TRACE_LOCK: StackTrace -> err.println --- src/java/com/jogamp/common/util/locks/RecursiveLock.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/java') diff --git a/src/java/com/jogamp/common/util/locks/RecursiveLock.java b/src/java/com/jogamp/common/util/locks/RecursiveLock.java index 010467b..de61451 100644 --- a/src/java/com/jogamp/common/util/locks/RecursiveLock.java +++ b/src/java/com/jogamp/common/util/locks/RecursiveLock.java @@ -131,8 +131,10 @@ public class RecursiveLock implements LockExt { synchronized(sdata) { Thread cur = Thread.currentThread(); if(TRACE_LOCK) { - Throwable tt = new Throwable("LOCK 0 ["+this+"], recursions "+sdata.recursionCount+", cur "+cur+", owner "+sdata.owner); - tt.printStackTrace(); + String msg = "LOCK 0 ["+this+"], recursions "+sdata.recursionCount+", cur "+cur+", owner "+sdata.owner; + System.err.println(msg); + //Throwable tt = new Throwable(msg); + //tt.printStackTrace(); } if (sdata.owner == cur) { ++sdata.recursionCount; -- cgit v1.2.3