Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 165515 - Deadlock on TaskProcessor.InternalLock between TaskProcessor.CurrentRequestReference & SourceCache
Deadlock on TaskProcessor.InternalLock between TaskProcessor.CurrentRequestRe...
Status: RESOLVED DUPLICATE of bug 165262
Product: editor
Classification: Unclassified
Component: Parsing & Indexing
All All
: P3 (vote)
: 6.x
Assigned To: Jan Jancura
Depends on:
  Show dependency treegraph
Reported: 2009-05-19 16:20 UTC by Jesse Glick
Modified: 2009-05-20 12:23 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 2009-05-19 16:20:54 UTC
090518, just switched editor tabs (I think). Looks like a pretty standard case of inconsistent lock ordering.

Found one Java-level deadlock:
  waiting to lock monitor 0x09d82fbc (object 0x6aa38b88, a java.lang.Object),
  which is held by "Parsing & Indexing Loop (090518)"
"Parsing & Indexing Loop (090518)":
  waiting to lock monitor 0x09e0614c (object 0x6aa3b878, a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock),
  which is held by "OpenIDE-request-processor-8"

Java stack information for the threads listed above:
	at org.netbeans.modules.parsing.impl.TaskProcessor$CurrentRequestReference.cancelCompleted(
	- waiting to lock <0x6aa38b88> (a java.lang.Object)
	at org.netbeans.modules.parsing.impl.TaskProcessor.handleAddRequests(
	at org.netbeans.modules.parsing.impl.TaskProcessor.addPhaseCompletionTasks(
	at org.netbeans.modules.parsing.impl.TaskProcessor.updatePhaseCompletionTask(
	- locked <0x6aa3b878> (a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock)
	at org.netbeans.modules.parsing.impl.SourceCache.scheduleTasks(
	at org.netbeans.modules.parsing.spi.Scheduler$
	at org.openide.util.RequestProcessor$
	at org.openide.util.RequestProcessor$
"Parsing & Indexing Loop (090518)":
	at org.netbeans.modules.parsing.impl.SourceCache.getSnapshot(
	- waiting to lock <0x6aa3b878> (a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CurrentRequestReference.setCurrentTask(
	- locked <0x6aa38b88> (a java.lang.Object)
	at org.netbeans.modules.parsing.impl.TaskProcessor$
	at java.util.concurrent.Executors$
	at java.util.concurrent.FutureTask$Sync.innerRun(
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

Found 1 deadlock.
Comment 1 Vitezslav Stejskal 2009-05-20 12:23:48 UTC
This is already fixed, please try newer build. Thanks

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

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