Fix EventBase destruction race in FiberManagerMap
Summary: Previously we could be reading from thread-local FiberManagerMap while it was modified. This is now fixed by keeping a per-thread list of EventBases which need to be removed from local maps. On the fast-path no action is taken, since list will be empty. This is second try, since D2853921 got reverted. The new implementation is simpler and does not rely on AtomicLinkedList. Reviewed By: yfeldblum Differential Revision: D2908018 fb-gh-sync-id: 4d7aed974c19761f7e2732ddbf8694af57c69bd6 shipit-source-id: 4d7aed974c19761f7e2732ddbf8694af57c69bd6
Showing
Please register or sign in to comment