051207, Mustang. Random deadlock after closing Navigator window and returning to
Created attachment 27634 [details]
Created attachment 27635 [details]
Some exceptions in log a few seconds before
Exceptions look to be caused by experimental javausagesnavigator module, but
deadlock looks to be a logic problem in ExclusiveMutex - a bunch of threads are
trying to enter it but no thread appears to be actually in it, so it's not clear
what it's waiting for.
Deadlock seems to be in mdr.
- waiting to lock <0x835fd1e8> (a org.netbeans.mdr.NBMDRepositoryImpl$FacilityCache)
Element creation is done outside the transaction. That is invalid IMO. As the
code in javausagesnavigator does not run in MDR transaction, this problem
occured. (Otherwise, in explicit transaction, it should not occur.) Reassigning
back to java/javacore, where create* methods in proxy classes (MethodClassImpl,
JavaClassImpl, FieldClassImpl, EnumConstantImpl and other ones should be checked
they run under the correct lock.)
Deadlock fixed in trunk.
Checking in UsageFinder.java;
new revision: 1.30; previous revision: 1.29
Reorganization of java component