This is the mail archive of the java-prs@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]

[Bug libgcj/16662] IllegalMonitorStateException in EventQueue.getNextEvent(): possible hash synchronization bug?


------- Additional Comments From Hans dot Boehm at hp dot com  2004-08-10 00:44 -------
One other small piece of data:

In the failing runs I've seen, only a single heavy lock (for the user lock 
which eventually causes the problem) is allocated at the beginning of the run.  
Thus the chain of heavy locks is indeed completely static, as should be 
expected.

I'm attempting to reproduce the failure with some circular buffer logging code, 
but even without that, it currently takes me hours to reproduce the problem.

Based on further inspection, there does seem to be another problem with 
Object.wait() only notifying a single thread if it inflates the lock.  It 
should notify all waiters.  But that seems to be an extremely unlikely 
scenario, and should only result in performance or possibly deadlock issues, 
and only if there are more than two threads involved.  I will include it in the 
patch I'm accumulating.

Hans

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16662


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