You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[reporter="klynch", created="Thu, 12 Aug 2010 08:28:24 +0200", resolved="Thu, 12 Aug 2010 14:14:37 +0200"]
The @ontimer annotation creates a non-daemon Timer object that continues to run even after the traced application exits. When experimenting with the provided ThreadCounter btrace script, the Timer thread continues to run. When the @ontimer annotation is commented out, the traced application halts.
[reporter="klynch", created="Thu, 12 Aug 2010 08:28:24 +0200", resolved="Thu, 12 Aug 2010 14:14:37 +0200"]
The @ontimer annotation creates a non-daemon Timer object that continues to run even after the traced application exits. When experimenting with the provided ThreadCounter btrace script, the Timer thread continues to run. When the @ontimer annotation is commented out, the traced application halts.
{{java -javaagent:$
{BTRACE_HOME}
/build/btrace-agent.jar=stdout=true,noServer=true,script=ThreadCounter.class ThreadTest}}
By configuring the Timer object to use daemon threads, the traced application correctly exits.
The text was updated successfully, but these errors were encountered: