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
fix potential race in PackageCollections.refreshCollections (#3233)
motivation: CI crashes in PackageCollectsTest::testBrokenRefresh suggest a race condition in the code
changes:
* change ThreadSafeArrayStore::apend to return the current count in a thread safe manner
* update the callsite to use the count returned from append instead of after the append -- which could be racy
rdar://73884751
0 commit comments