Thread.stop()

Jason Baker kaffe@rufus.w3.org
22 May 2000 12:46:22 -0600


Mo DeJong <mdejong@cygnus.com> writes:

> I was under the impression that methods like Thread.stop() were
> removed from the JDK or replaced with no-ops. I seem to remember
> that they were never implemented in Netscape's JVM. The whole
> concept of stoping a thread seems like a bad idea, a thread
> should expire due to natural causes.
> 
> Here are some notes about it from the Sun developer site.
> http://developer.java.sun.com/developer/bugParade/bugs/4187649.html
> http://developer.java.sun.com/developer/bugParade/bugs/4248898.html

Thread.stop is dangerous, but without a process model there is really
no alternative.  I'm using it to halt infinite loops, which is why I
need the stack trace.

Both Godmar and Pat use Thread.stop to implement safe termination, so
given that it is part of Kaffe, what should the call do?

Jason