This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GCJ] Performance of GUI applications on embedded systems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]