Re: [Sablevm-developer] sablevm hang
Brought to you by:
egagnon
From: Chris P. <chr...@ma...> - 2004-06-18 21:07:52
|
Sorry for all the emails on this, but this just occurred to me: re-reading http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/AWTThreadIssues.html it seems like it's not a SableVM but a Classpath AWT problem, in that Classpath AWT does not terminate its helper threads, whereas it should (if it were to support 1.4, that is). If you look, there are three conditions to be satisfied: 1) There are no displayable AWT or Swing components. 2) There are no native events in the native event queue. 3) There are no AWT events in java EventQueues. I think the fix is for java.awt.EventDispatchThread.run() to test all three conditions and terminate itself if all true. Cheers, Chris |