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 37040 - Possible deadlock in nodes.
Summary: Possible deadlock in nodes.
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2003-11-05 09:01 UTC by Petr Nejedly
Modified: 2008-12-22 17:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2003-11-05 09:01:41 UTC
updateChildren impl in FilterNode can still
potentially cause deadlock, if the children type
of the original Node is changed and then isLeaf is
called on the FilterNode, it calls setChildren and
tries to upgrade the Mutex from readAccess to
writeAccess, which is deadlock prone.
I've simulated it in the
FilterNodeTest.testIsLeafCanUpdateWhenAnotherThreadHoldsALock
Uncomment the test and try it.
Comment 1 Jaroslav Tulach 2003-11-05 12:21:24 UTC
Checking in src/org/openide/nodes/FilterNode.java;
/cvs/openide/src/org/openide/nodes/FilterNode.java,v  <--  FilterNode.java
new revision: 1.86; previous revision: 1.85
done
Processing log script arguments...
More commits to come...
Checking in test/unit/src/org/openide/nodes/FilterNodeTest.java;
/cvs/openide/test/unit/src/org/openide/nodes/FilterNodeTest.java,v 
<--  FilterNodeTest.java
new revision: 1.12; previous revision: 1.11
Comment 2 Petr Nejedly 2003-11-06 12:16:35 UTC
seems OK