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.

Bug 186427 - waitIOLoad while holding NamingFactory locks
Summary: waitIOLoad while holding NamingFactory locks
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 10:12 UTC by Alexandr Scherbatiy
Modified: 2010-05-25 07:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread Dump (27.39 KB, text/plain)
2010-05-20 10:13 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-05-20 10:12:55 UTC
NB 6.9 RC1 netbeans-6.9rc1-201005191833-windows.exe 

  Product Version         = NetBeans IDE Dev (Build 201005191833) (#79fe8b3b0b9d)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


I created a Java project, run it and run it the second time.
The IDE hanged. See the attached thread dump.
Comment 1 Alexandr Scherbatiy 2010-05-20 10:13:32 UTC
Created attachment 99241 [details]
Thread Dump
Comment 2 Adam Sotona 2010-05-20 11:25:19 UTC
I don't see any deadlock, just "Refresh-After-WindowActivated" is waiting for some IO and blocking the rest.
Reassigning to MasterFS
Comment 3 Jaroslav Tulach 2010-05-24 11:54:47 UTC
- locked <0x2ad91fc8> (a java.lang.Class for org.netbeans.modules.masterfs.filebasedfs.naming.NamingFactory)
- locked <0x12a826b0> (a java.util.Collections$SynchronizedMap)
Comment 4 Jaroslav Tulach 2010-05-24 14:41:32 UTC
changeset:   6c2c60fac860
parent:      4e52836d327b
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Mon May 24 16:37:01 2010 +0200
summary:     #186427: Don't wait for I/O when synchronized on NamingFactory


Fixed. Tomáši, can you please review the change for possible regressions? Tondo, can you (if Tomáš founds the change OK), put it into release69 clone?
Comment 5 Tomas Zezula 2010-05-24 14:54:07 UTC
The patch seems good to me.
Thanks Jardo
Comment 6 Antonin Nebuzelsky 2010-05-24 15:09:45 UTC
Marian, do you want to have this fix in RC1 today, or wait for tomorrow so that it can be tested well enough internally before it appears in RC2?
Comment 7 Antonin Nebuzelsky 2010-05-24 18:54:45 UTC
The fix is reviewed and is a simple change. Let's have the fix in RC1 rather than later, even without QA confirmation.

Backported to release69 to have the fix in tonight's RC1 build.
Comment 8 Quality Engineering 2010-05-25 07:31:44 UTC
Integrated into 'main-golden', will be available in build *201005250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6c2c60fac860
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #186427: Don't wait for I/O when synchronized on NamingFactory