summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2019-04-12 16:59:00 -0700
committer Hans Boehm <hboehm@google.com> 2019-04-12 16:59:00 -0700
commita997b239db8c2fbfd609a40857e7d75ef1e604bd (patch)
tree5ca1c5a4b7f74ecd3f0ffdd0685c03c46f8e6e30 /opengl/libagl/array.cpp
parent6fea53e6e40aed4ab65b8360c584e0c17ed32f65 (diff)
Make concurrently accessed globals atomic
Eliminate data races on gHaveTLS, gShutdown, and gDisableBackgroundScheduling by declaring them as atomic. Use explicit load() and store() operations to access them. Note that gHaveTLS requires memory ordering guarantees, and thus, even with a cooperative compiler, the old code would never have been compiled to correct ARM object code. Document a couple of weirdnesses remaining in the code. Bug: 36697681 Test: Boot AOSP, TreeHugger Change-Id: If44a10e31c1e091f06179154e07ced3da0a37b68
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions