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.
When the OnePassCompileWorker or SuperOnePassCompileWorker is cancelled the running SourcePrefetcher goes out of permits which causes deadlock. "org.netbeans.modules.java.source.indexing.SourcePrefetcher" daemon prio=1 tid=7f9b81667000 nid=0x11c7bc000 waiting on condition [11c7bb000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <7c0325f68> (a java.util.concurrent.Semaphore$NonfairSync) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156) at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:969) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1281) at java.util.concurrent.Semaphore.acquire(Semaphore.java:441) at org.netbeans.modules.java.source.indexing.SourcePrefetcher$ConcurrentIterator$1.call(SourcePrefetcher.java:201) at org.netbeans.modules.java.source.indexing.SourcePrefetcher$ConcurrentIterator$1.call(SourcePrefetcher.java:192) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
P1 due to the importance of the class. The probability of the deadlock is now much higher due to much fine grained cancelling in NB 7.3.
Fixed jet-main afb310aa1a04
Integrated into 'main-golden', will be available in build *201211100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/afb310aa1a04 User: Tomas Zezula <tzezula@netbeans.org> Log: #221757:SourcePrefetcher deadlocks when it's cancelled