Priority
Show-stopper
Type
Bug 
State
Fixed 
Assignee
Dmitry Shaporenkov 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
244
Fixed in build
254
  • Submitted by   Dmitry Shaporenkov
    3 years ago (06 Aug 2006 17:37)
  • Updated by Dmitry Shaporenkov
    2 years ago (06 Aug 2007 10:14)
  • Jira: RSRP-25380
    (history, comments)

RSRP-25380

Race condition in ChangeManagerImpl

0
There is a rarely occurring race condition - if an event is being dispatched in the main thread, providers and dependency registration is delayed, and upon completion of change, all delayed registration actions are executed. Because of lack of synchronization, it may happen that order of registration actions inside one thread of execution is broken and the dependency gets registered at a moment when one of the participating providers (normally a document) has not been registered yet.

See e.g. http://www.intellij.net/tracker/resharper/viewSCR?publicId=25251

How to fix: even if there no change currently being dispatched, always execute all pending actions before registering provider / dependency.

Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments