commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug #2685] Should Thread.stop() call ThreadGroup.removeThread().?


From: nobody
Subject: [Bug #2685] Should Thread.stop() call ThreadGroup.removeThread().?
Date: Fri, 28 Feb 2003 17:08:18 -0500

=================== BUG #2685: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2685&group_id=85

Submitted by: archie172               Project: classpath                    
Submitted on: 
Severity:  5 - Major                  Resolution:  None                     
Assigned to:  None                    Status:  Open                         
Platform Version:  None               

Summary:  Should Thread.stop() call ThreadGroup.removeThread().?

Original Submission:  Near the end of Thread.stop(), it calls:

  group.removeThread(this);

Since the VM is going to do this anyway when the
thread exits, this seems at best redundant.

Moreover, in the pathological case where the thread
actually catches ThreadDeath and then keeps doing
stuff, this is not just redundant but also wrong,
because the thread hasn't died yet, but it won't be
in its ThreadGroup anymore.

So this line should be removed.





No Followups Have Been Posted


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2685&group_id=85




reply via email to

[Prev in Thread] Current Thread [Next in Thread]