summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/NativeBridge3LoadLibraryExt_test.cpp
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-06-01 09:26:55 +0100
committer Vladimir Marko <vmarko@google.com> 2021-06-01 12:50:50 +0000
commit1d326f94a3fdd6292ccdf0022cedfb2a2b8acfee (patch)
tree17fde709095f46eff040585e694b621676e5d0c0 /libnativebridge/tests/NativeBridge3LoadLibraryExt_test.cpp
parent654f01cd509ca11eae22177d4e764f1241fb3a53 (diff)
Avoid race on Thread::tlsPtr_::top_handle_scope.
Require mutator lock for that field and update tests to hold the mutator lock when needed. This prevents GC thread that executes a thread roots flip on behalf of suspended threads from racing against construction or destruction of handle scopes by those threads and possibly seeing invalid values. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 189439174 Change-Id: I268a0ef6e5aa838347956febca0d3b6e02fe3ae5
Diffstat (limited to 'libnativebridge/tests/NativeBridge3LoadLibraryExt_test.cpp')
0 files changed, 0 insertions, 0 deletions