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
Summary:
Pull Request resolved: #5996
When workspace sharing is enabled, if we call `destroy()` from multiple threads it is possible that we enter in `xnn_delete_runtime` from multiple threads. It is not safe to do so, and can cause double free. This serializes the destroy calls for the singleton backend object if/when called multiple times.
Not locking in the failure case because we may not have a real memory to free i.e. empty workspace?
Reviewed By: digantdesai
Differential Revision: D63917052
fbshipit-source-id: 61e6b1c54f887a54501a4fd3433f8470e74dbca3
0 commit comments