Index: threading.py =================================================================== --- threading.py (revision 6348) +++ threading.py (working copy) @@ -213,7 +213,6 @@ # relies on the fact that this is a CHM _threads = weakref.WeakValueDictionary() -_active = _threads _jthread_to_pythread = Collections.synchronizedMap(WeakHashMap()) class Thread(JavaThread): @@ -294,6 +293,7 @@ pass def __delete(self): + del _threads[self._thread.getId()] pass