This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha


------- Additional Comments From graydon at redhat dot com  2004-09-02 07:42 -------
thread #5 is in a condition-wait triggered by its attempt to acquire a mutex 
recursively. afaik recursive mutexes are supposed to work in java, but perhaps 
there is something funny about the way they work on alpha. the thread clearly 
already acquired the mutex (in validateTree(), one of its earlier frames) so 
afaik it should not be *waiting* to re-acquire the mutex. it should just be 
acquiring it.

of course, I really don't know how any of this is implemented. maybe a quick and 
ignorable wait is always part of that call path. it just jumped out at me as 
something which might be wrong. does anyone know much about alpha pthreads?

(I'm also somewhat surprised that thread 4, not thread 5, is handling the AWT 
event queue, when thread 5 is actually mucking with the AWT graph in a GTK 
callback. I would have thought that the thread doing layout is the same one 
waiting on the AWT queue, but I don't know the structure of threads in AWT very 
well outside of swing)

-- 


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


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