This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 44842

Summary: Threading problems with find usages
Product: editor Reporter: _ rkubacki <rkubacki>
Component: RefactoringAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: PERFORMANCE, THREAD
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ rkubacki 2004-06-14 17:37:11 UTC
build from Jun 11, Linux, JDK1.5.0b55

Due to problems with thread semantic the progres
indication in find usages dialog can be broken at
any time and the whole AWT event processing can be
blocked. It means no UI updates/repainting. This
is because there can be arbitrary request for MDR
operation called with the AWT thread that will
wait for
org.netbeans.modules.javacore.ExclusiveMutex.enter

For an example see attached thread dump where Jave
editor updates global activated nodes during
computation of usages. As this update goes to the
MDR everything is blocked.
Comment 1 Martin Matula 2004-06-16 00:42:03 UTC
The issue with nodes was fixed. The general issue of blocking AWT
should be fixed by moving the code that accesses the MDR from the AWT
thread. Please file particular cases where it is broken as separate
issues.
Comment 2 Jiri Prox 2005-07-19 13:06:24 UTC
Radime, can you verify this issue, please? Thanks.
Comment 3 _ rkubacki 2005-07-20 13:30:09 UTC
I agree with Martin that we can close this now