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 68710 - Starvation while waiting for LoaderPoolNode to refresh
Summary: Starvation while waiting for LoaderPoolNode to refresh
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks: 68366
  Show dependency tree
 
Reported: 2005-11-15 09:42 UTC by Jaroslav Tulach
Modified: 2008-12-23 00:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (8.13 KB, text/plain)
2005-11-15 09:43 UTC, Jaroslav Tulach
Details
Proposed diff to RP and LoaderPoolNode (7.37 KB, patch)
2005-11-15 09:47 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-11-15 09:42:32 UTC
Test and possibly other code waiting for changes LoaderPoolNode to be finished 
can get into a starvation while waiting on the refresh task which has not yet 
been started.
Comment 1 Jaroslav Tulach 2005-11-15 09:43:25 UTC
Created attachment 26954 [details]
thread dump
Comment 2 Jaroslav Tulach 2005-11-15 09:44:49 UTC
This could be workarounded in core, but the semantics of the fix would be 
complex and fragile. So the best way seems to be to fix this with a simple api 
change in RequestProcessor. 
Comment 3 Jaroslav Tulach 2005-11-15 09:47:15 UTC
Created attachment 26955 [details]
Proposed diff to RP and LoaderPoolNode
Comment 4 Jaroslav Tulach 2005-11-21 05:43:07 UTC
I'll integrate by tomorrow. 
Comment 5 Jaroslav Tulach 2005-11-21 07:39:33 UTC
Checking in openide/util/apichanges.xml; 
/cvs/openide/util/apichanges.xml,v  <--  apichanges.xml 
new revision: 1.11; previous revision: 1.10 
done 
Checking in openide/util/manifest.mf; 
/cvs/openide/util/manifest.mf,v  <--  manifest.mf 
new revision: 1.9; previous revision: 1.8 
done 
Checking in openide/util/src/org/openide/util/RequestProcessor.java; 
/cvs/openide/util/src/org/openide/util/RequestProcessor.java,v  <--  
RequestProcessor.java 
new revision: 1.8; previous revision: 1.7 
done 
Checking in 
openide/util/test/unit/src/org/openide/util/RequestProcessorTest.java; 
/cvs/openide/util/test/unit/src/org/openide/util/RequestProcessorTest.java,v  
<--  RequestProcessorTest.java 
new revision: 1.12; previous revision: 1.11 
done 
Checking in core/src/org/netbeans/core/LoaderPoolNode.java; 
/cvs/core/src/org/netbeans/core/LoaderPoolNode.java,v  <--  
LoaderPoolNode.java 
new revision: 1.83; previous revision: 1.82 
 
Comment 6 Jaromir Uhrik 2006-01-16 15:45:01 UTC
Marking this issue as VERIFIED since the issue reporter == issue owner.