public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "Hans dot Boehm at hp dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/16662] IllegalMonitorStateException in EventQueue.getNextEvent(): possible hash synchronization bug? Date: Sat, 07 Aug 2004 00:43:00 -0000 [thread overview] Message-ID: <20040807004351.941.qmail@sourceware.org> (raw) In-Reply-To: <20040721214713.16662.mckinlay@redhat.com> ------- Additional Comments From Hans dot Boehm at hp dot com 2004-08-07 00:43 ------- I can also reproduce the problem on a dual PII/266 machine, though it seems to often take a while. I have no real answer, but here are some more observations, mostly as notes to myself: 1) The failure occurs in the popping thread, i.e. the thread that executes Object.wait(). 2) When the lock is first printed, the lightweight lock appears to be held by the pushing (notifying) thread, partially confirming prior suspicion that wait () somehow confuses the state of the lock, allowing two threads to simultaneously acquire it. (Presumably if this were reproducible without wait () we would have seen it much earlier.) 3) When the lock is first printed, the lightweight lock appears held by the other thread, but the flag indicating that there are also heavyweight locks hashing to the same location is set. It seems likely that the heavyweight lock for this location is allocated and held. 4) When the lock is printed a second time, the lightweight lock has consistently been released. The heavyweight lock appears to still be held twice. (HEAVY bit set, heavy_count = 2, and no other objects have locks on this hash chain, there can't be any waiters, which would be included in the count.) 5) Changing the locking code such that maybe_remove_all_heavy() is never executed affects nothing. (It shouldn't, since the lock chain should never grow in this example. But this eliminates that code from suspicion.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16662
next prev parent reply other threads:[~2004-08-07 0:43 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-21 21:47 [Bug libgcj/16662] New: " mckinlay at redhat dot com 2004-07-26 18:57 ` [Bug libgcj/16662] " mckinlay at redhat dot com 2004-08-05 0:56 ` Hans dot Boehm at hp dot com 2004-08-07 0:43 ` Hans dot Boehm at hp dot com [this message] 2004-08-10 0:44 ` Hans dot Boehm at hp dot com 2004-08-10 18:02 ` mckinlay at redhat dot com 2004-08-10 18:30 ` Hans dot Boehm at hp dot com 2004-08-12 17:56 ` cvs-commit at gcc dot gnu dot org 2004-08-12 18:38 ` pinskia at gcc dot gnu dot org 2004-09-07 21:15 ` cvs-commit at gcc dot gnu dot org 2004-10-06 22:47 ` cvs-commit at gcc dot gnu dot org 2004-12-01 0:32 ` cvs-commit at gcc dot gnu dot org [not found] <bug-16662-6651@http.gcc.gnu.org/bugzilla/> 2007-05-15 9:46 ` rob1weld at aol dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040807004351.941.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).