https://bz.apache.org/bugzilla/show_bug.cgi?id=59797
--- Comment #7 from Christopher Schultz <ch...@christopherschultz.net> --- (In reply to Konstantin Kolinko from comment #6) > ERR_remove_thread_state() can be called with an explicit thread id. If we > know ids for threads that completed execution (and are gc'ed) we can perform > cleanup for them from a different thread. > > I think that monitoring of completed (gc'ed) threads can be performed with a > WeakReference and a ReferenceQueue that is processed by a background thread. If this is indeed possible and not fragile, it should be done this way: tricking each thread into calling the cleanup() method will either be badly-performing, error-prone, or both. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org