[Top][All Lists]

[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: Tue, 29 Jul 2003 07:40:32 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

=================== BUG #2685: LATEST MODIFICATIONS ==================

Changes by: Brian Jones <address@hidden>
Date: Tue 07/29/2003 at 07:40 (US/Eastern)

            What     | Removed                   | Added
          Resolution | None                      | Fixed
              Status | Open                      | Closed

------------------ Additional Follow-up Comments ----------------------------
Removed the offending call and have added a Mauve test case.

=================== BUG #2685: FULL BUG SNAPSHOT ===================

Submitted by: archie172               Project: classpath                    
Submitted on: Fri 02/28/2003 at 17:08
Severity:  5 - Major                  Resolution:  Fixed                    
Assigned to:  cbj                     Status:  Closed                       
Platform Version:  None               

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

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


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.

Follow-up Comments

Date: Tue 07/29/2003 at 07:40       By: cbj
Removed the offending call and have added a Mauve test case.

Date: Sun 07/27/2003 at 00:05       By: cbj
I have included a potential Mauve test, but I'm having trouble getting the JDK 
to prove to me the test is correct.  ThreadDeath is never seen in the instance 
of the 'stop' thread.

Date: Tue 03/25/2003 at 14:02       By: davidholmes
No it most definitely should not call removeThread.

Thye action of stop is quite simply to throw an asynchronous exception in the 
thread. That exception is processed as normal and if not caught then the normal 
uncaught exception mechanics will perform a normal thread termination. Until 
that time the thread is very much alive and is quite free to catch and ignore 
the stop() request.

CC list is empty

File Attachments

Date: Sun 07/27/2003 at 00:05  Name:  Size: 1KB   By: cbj is a mauve test for this functionality that does not work yet;bug_id=2685&amp;bug_file_id=557

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

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