Geir Magnusson Jr. wrote: > Just curious - is it harmful to call VMThreadManager.stop() if the > thread isn't alive?
Currently, calling VMThreadManager.stop() will do no harm, (it just sets a callback in a thread block) as DRLVM's hythr.dll allocates native thread block when Thread object is created, and never actually frees thread block. Instead, the thread block might be reused later after Thread object became unreachable. If memory management of thread block ever becomes explicit (i.e. allocate thread block on Thread.start() and release it just before thread terminates), then doing anything with thread block without making sure that the thread is still alive may cause crashes.
