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: | AWT blocked for minutes after startup | ||
---|---|---|---|
Product: | editor | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Settings | Assignee: | Vitezslav Stejskal <vstejskal> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | issues |
Priority: | P2 | Keywords: | PERFORMANCE, THREAD |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 142767 | ||
Bug Blocks: | |||
Attachments: | full thread dump |
Description
Jaroslav Tulach
2008-09-04 10:52:26 UTC
Created attachment 69036 [details]
full thread dump
Vito, please take a look at it. Thanks. It's still the same story, which I'm pretty sure Jarda already knows. In short: pre-project formatting settings -> need ProjectManager.mutex() -> when opening projects somebody else holds the mutex -> we can't open a document, render it or do pretty much anything else and end up blocking AWT. The real question is 'do we need to writeLock the mutex'? Maybe not, see issue #142767. Is anybody bold enough to make the change suggested in #142767. I guess not, so it's probably gonna have to be me. (puke) With #142767 fixed I also changed CodeStylePreferences to use readAccess, which should improve the situation. http://hg.netbeans.org/main/rev/917a3b0e6eb2 Integrated into 'main-golden', will be available in build *200809051401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/917a3b0e6eb2 User: Vita Stejskal <vstejskal@netbeans.org> Log: #146155: AuxiliaryConfigBasedPreferences.node now uses readAccess (see #142767) and we can now use readAccess too |