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 148992

Summary: EQ hung while opening *.java from NBM project
Product: apisupport Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: PERFORMANCE, THREAD
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description Jesse Glick 2008-10-02 18:03:07 UTC
081001. After starting NB, I used File > Open to open a unit test from an NBM project. The IDE hung while a module scan
completed.

Looking at the thread dump, "Java Node Badge Processor" is blocked waiting for the CP of the project, calculation of
which can require a universe scan. That in itself should not be a big problem because the badge is calculated
asynchronously. The problem is that EQ is waiting for the document to be loaded in "Document Processing", which needs to
know javac.source. This should be a quick evaluator call - isModuleListDependentValue would be false - but Evaluator
nonetheless blocks calling delegatingEvaluator(false).

Probably delegatingEvaluator(false) should be changed to return delegate immediately without waiting for the monitor in
case !reset, which would allow document loading to proceed unhindered while expensive calculations wait.
Comment 1 Jesse Glick 2008-10-02 18:06:33 UTC
Created attachment 71063 [details]
Thread dump
Comment 2 Jesse Glick 2010-03-11 12:41:02 UTC

*** This bug has been marked as a duplicate of bug 173109 ***