static Map _registerThread_threads; static Thread _registerThread(Thread t) { if (_registerThread_threads == null) _registerThread_threads = newWeakHashMap(); _registerThread_threads.put(t, true); ret t; } static void _registerThread() { _registerThread(Thread.currentThread()); }