Login  Register

Re: Disable debug logging

Posted by spectual on Oct 10, 2010; 5:20pm
URL: https://forum.jogamp.org/Disable-debug-logging-tp1672600p1675711.html

Hi Michael

I've might previously have misinterpreted the profiler, because it not quite the spot I thought.

The allocations seems to come from com.jogamp.nativewindow.impl.RecursiveToolkitLock line 112 (at least in my version).

The line is:

lockedStack = new Exception("Previously locked by "+owner+", lock: "+this);

So actually it is the Exception class which is making StringBuffer allocations, however that line is executed for each frame, which profiler also confirms since a lot of Exception objects is allocated too.