Fix data race with synthetic delay initialization
The synthetic delay macro initializes a local atomic variable to point to a delay implementation class. Because initializing the class involves writing data to memory which is subsequently deferences through the atomic pointer, we need to use memory barries when updating the pointer to make sure the data behind it is committed. Thanks to Alexander Potapenko for spotting this. Review URL: https://codereview.chromium.org/392933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284203 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment