ThreadGroup.java: Fixed now-erroneous comment.
* java/lang/ThreadGroup.java: Fixed now-erroneous comment. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove. From-SVN: r28753
This commit is contained in:
parent
b30f05db01
commit
5a0eb8326f
3 changed files with 8 additions and 3 deletions
|
@ -80,9 +80,7 @@ public class ThreadGroup
|
|||
}
|
||||
|
||||
// This is called by the Thread code to remove a Thread from our
|
||||
// internal list. FIXME: currently, it isn't called at all. There
|
||||
// doesn't appear to be any way to remove a Thread from a
|
||||
// ThreadGroup (except the unimplemented destroy method).
|
||||
// internal list.
|
||||
final void remove (Thread t)
|
||||
{
|
||||
threads.removeElement(t);
|
||||
|
|
|
@ -250,6 +250,8 @@ java::lang::Thread::finish_ (void)
|
|||
_Jv_MutexUnlock (&t->interrupt_mutex);
|
||||
}
|
||||
|
||||
group->remove (this);
|
||||
|
||||
_Jv_MonitorExit (this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue