[GCJ] Performance of GUI applications on embedded systems

Christian Thalinger twisti@complang.tuwien.ac.at
Thu Nov 6 17:02:00 GMT 2008


On Thu, 2008年11月06日 at 16:40 +0000, Andrew Haley wrote:
> What do you expect? You're setting up a Timer with a delay of
> 0 milliseconds between events, and it's running continuously.

That may be because of this (taken from GNU Classpath's
vm/reference/java/lang/VMThread.java):
 // Note: JDK treats a zero length sleep is like Thread.yield(),
 // without checking the interrupted status of the thread.
 // It's unclear if this is a bug in the implementation or the spec.
 // See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6213203
GCJ does this:
if (millis == 0 && nanos == 0)
 ++nanos;
and sleeps. Maybe...
- Christian


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /