This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/25016] Integer overflow in _Jv_CondWait
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2005 11:48:05 -0000
- Subject: [Bug libgcj/25016] Integer overflow in _Jv_CondWait
- References: <bug-25016-511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from aph at gcc dot gnu dot org 2005-11-24 11:48 -------
Consider this program:
public class TimedWait
{
public static void main (String[] argv)
throws InterruptedException
{
Object o = new Object();
synchronized (o)
{
o.wait(Long.MAX_VALUE);
}
}
}
It's obvious that we never expect this program to terminate, because
the delay is some 292 million years. However, try this on gcj and it
returns immediately -- because _Jv_CondWait is broken.
--
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-11-24 11:48:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25016