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.
Summary: | 34s in WatchPanel setupContext | ||
---|---|---|---|
Product: | debugger | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | mslama |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=159254 | ||
Issue Type: | DEFECT | Exception Reporter: | 159254 |
Attachments: | nps snapshot |
Description
Jaroslav Tulach
2009-09-29 19:44:50 UTC
Created attachment 88546 [details]
nps snapshot
The problem is that SourceLevelQueryImpl.getSourceLevel took 32 seconds in thread "openide.text document processing". It was blocked by the computation of apisupport in thread "Java Node Badge processor" which was most probably triggered by the Hg refresh. Assigning to apisupport to evaluate. Problem is that debugger calls openDocument in AWT thread. It should be done from another thread as this call is blocking and can take long time. This is problem of the caller to openDocument. That call just cannot be absolutely fast, so it shall not be called from AWT. Assigning to WatchPanel.setupContext(). Fixed in changeset: 147629:8dde4fa8546a http://hg.netbeans.org/main/rev/8dde4fa8546a That might help. Thanks. FYI: this fix has caused regression issue #173914. Integrated into 'main-golden', will be available in build *200910091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/8dde4fa8546a User: mentlicher@netbeans.org Log: #173312 - Use RequestProcessor instead of Swing's Timer. |