You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, accessing and mutating a block graph from multiple threads is likely to cause a ConcurrentModificationException or just give inconsistent data. The SimpleBlockGraph, SimpleBlockGraphController, and UnloadingRegionBasedStorage all expect to be used from a single thread only.
Potential Fix
It would likely not be too hard to add in some synchronization primitives, to allow for efficient use from multiple threads. This may be something like a RWLock for each internal collection.
The text was updated successfully, but these errors were encountered:
The Issue
Currently, accessing and mutating a block graph from multiple threads is likely to cause a
ConcurrentModificationException
or just give inconsistent data. TheSimpleBlockGraph
,SimpleBlockGraphController
, andUnloadingRegionBasedStorage
all expect to be used from a single thread only.Potential Fix
It would likely not be too hard to add in some synchronization primitives, to allow for efficient use from multiple threads. This may be something like a
RWLock
for each internal collection.The text was updated successfully, but these errors were encountered: