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
[Win32] Thread-safe modification of Edge instances
The WebView environment used for Edge manages a list of all currently
used Edge instances inside an application. This data structure is
modified at different places, which may be executed by different
threads, such introducing a risk of race conditions on the
unsynchronized data structure. In addition, when disposing a Display
(such as at application shutdown), Edge instances are disposed in an
according dispose listener. This can cause
ConcurrentModificationExceptions as the listener iterates through the
list of Edge instances and calls their disposal, which in turn removes
the Edge instance from that list.
This change makes the data structure thread-safe and copy-on-write to
avoid that ConcurrentModificationException occur when iterating over it
while removing elements from it.
0 commit comments