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:
Tom Tromey
1999-08-18 19:51:23 +00:00
committed by Tom Tromey
parent b30f05db01
commit 5a0eb8326f
3 changed files with 8 additions and 3 deletions
+1 -3
View File
@@ -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);
+2
View File
@@ -250,6 +250,8 @@ java::lang::Thread::finish_ (void)
_Jv_MutexUnlock (&t->interrupt_mutex);
}
group->remove (this);
_Jv_MonitorExit (this);
}