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.
While profiling issue #47910, I found that 1.12% of CPU (acc. to OptIt) was spent in MasterFileObject.getParent (forming most of the time used by FileOwnerQuery), most of that in finishCriticalSection. Uses Object.notifyAll() and ThreadLocal; not exactly a lightweight way to protect access, especially since this is a trivial r/o operation that could probably be a simple field retrieval!
You are probably right. I also don't see any reason for synchronization in method getParent. If there any was then I can't remember anymore. /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterFileObject.java new revision: 1.32; previous revision: 1.31
closed