This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/21524] Cancelling a TimerTask puts Timer binary heap in inconsistent state
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2006 20:09:35 -0000
- Subject: [Bug libgcj/21524] Cancelling a TimerTask puts Timer binary heap in inconsistent state
- References: <bug-21524-10617@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from tromey at gcc dot gnu dot org 2006-06-21 20:09 -------
I looked at this a little today.
The code does look wrong, but I couldn't write a simple test case
to make it fail. Do you have one?
One problem I see is that serve() uses the task's 'scheduled' field
without checking to see if it is == -1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21524