diff options
author | Hugo Benichi <hugobenichi@google.com> | 2017-05-31 15:31:59 +0900 |
---|---|---|
committer | Hugo Benichi <hugobenichi@google.com> | 2017-05-31 15:35:54 +0900 |
commit | 22143956cfc6d9f59b0aac0e7007a3088200addd (patch) | |
tree | 6cce8885d87b0d3e7b6d75fc977f755fdbd955a5 /libs/hwui/ProgramCache.cpp | |
parent | 76efbb30f52ea183a42835926776ca8dfb288174 (diff) |
Fix race condition in NsdManagerTest
NsdManagerTest relies on the lastMessage variable to assert the
connection of a client to the service. The asserts in test are done on a
different thread, although the variable was not qualified volatile,
which creates the chance to read a stale value. This patch fixes this
race by marking the variable volatile.
Bug: 32561414
Bug: 62044295
Test: NsdManagerTest works
Change-Id: I0bc2cd8059c6ff8b78a2dda0ba8d6bc7e13ef951
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions