This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [GCJ] Performance of GUI applications on embedded systems
- From: Christian Thalinger <twisti at complang dot tuwien dot ac dot at>
- To: Andrew Haley <aph at redhat dot com>
- Cc: ffileppo <ffileppo at libero dot it>, classpath <classpath at gnu dot org>, java <java at gcc dot gnu dot org>
- Date: Thu, 06 Nov 2008 18:01:22 +0100
- Subject: Re: [GCJ] Performance of GUI applications on embedded systems
- References: <K9WZ9Y$0DBCD008EE6ABA1BF31318A9F51108EC@libero.it> <49131DE6.60207@redhat.com>
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