mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: The fix entails making `AllocationTestModule.valid` an Objective-C atomic property and funneling access to the ivar via the synthesized property getter and setter. While the data race was present in test code, it would make it more difficult to spot more severe data races with the TSan. Also, getting rid of a data race is always good. ## Changelog: [iOS][Fixed] - Data race related to access of `AllocationTestModule.valid` Pull Request resolved: https://github.com/facebook/react-native/pull/45191 Test Plan: `RCTAllocationTests` will test the implementation of `AllocationTestModule`. Reviewed By: christophpurrer Differential Revision: D59155083 Pulled By: javache fbshipit-source-id: e3217cffd0801377a25f04bf8ed0b4e2d1d88498