Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 154965 - Deadlock between Source and SourceCache
Deadlock between Source and SourceCache
Status: RESOLVED DUPLICATE of bug 154199
Product: editor
Classification: Unclassified
Component: Parsing & Indexing
All All
: P3 (vote)
: 6.x
Assigned To: issues@editor
Depends on:
  Show dependency treegraph
Reported: 2008-12-08 19:42 UTC by Jesse Glick
Modified: 2009-02-19 20:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-12-08 19:42:12 UTC
Simple lock ordering conflict, it looks like. 081208, while trying to open a Java source file.

Found one Java-level deadlock:
"Java Source Worker Thread":
  waiting to lock monitor 0x0a03b694 (object 0x691af298, a org.netbeans.modules.parsing.impl.SourceCache),
  which is held by "OpenIDE-request-processor-6"
  waiting to lock monitor 0x0a03b794 (object 0x6900f828, a org.netbeans.modules.parsing.api.Source),
  which is held by "Java Source Worker Thread"

Java stack information for the threads listed above:
"Java Source Worker Thread":
        at org.netbeans.modules.parsing.impl.SourceCache.getSnapshot(
        - waiting to lock <0x691af298> (a org.netbeans.modules.parsing.impl.SourceCache)
        at org.netbeans.modules.parsing.impl.TaskProcessor$
        - locked <0x6900f828> (a org.netbeans.modules.parsing.api.Source)
        - locked <0x6762cc40> (a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock)
        at java.util.concurrent.Executors$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
        at org.netbeans.modules.parsing.api.Source._getDocument(
        - waiting to lock <0x6900f828> (a org.netbeans.modules.parsing.api.Source)
        at org.netbeans.modules.parsing.api.Source.getDocument(
        at org.netbeans.modules.languages.ParserListenerFactoryImpl.create(
        at org.netbeans.modules.parsing.impl.SourceCache.createTasks(
        at org.netbeans.modules.parsing.impl.SourceCache.scheduleTasks(
        - locked <0x691af298> (a org.netbeans.modules.parsing.impl.SourceCache)
        at org.netbeans.modules.parsing.spi.Scheduler$
        at org.openide.util.RequestProcessor$
        at org.openide.util.RequestProcessor$
Comment 1 Jan Lahoda 2008-12-09 12:57:35 UTC

*** This issue has been marked as a duplicate of 154199 ***

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo