diff options
author | 2023-01-12 16:17:47 +0900 | |
---|---|---|
committer | 2023-01-13 20:08:11 +0000 | |
commit | 788d46a488364c37d38a96d7f2661d8e37561ea6 (patch) | |
tree | 1946c13d9383780506388fea4182b8222bdaabb2 /runtime/quick_exception_handler.cc | |
parent | 58c2dd31e51691a9a6569b75548a6794cc7e8727 (diff) |
Fix thread-safety-analysis warning on Clang r484197
art/runtime/mirror/dex_cache.h:177:36: error: calling function 'ObjPtr<art::mirror::MethodType, void>' requires holding mutex 'mutator_lock_' [-Werror,-Wthread-safety-analysis]
SetPair(index, DexCachePair<T>(value, index));
^
art/runtime/mirror/dex_cache.h:488:3: note: in instantiation of member function 'art::mirror::DexCachePairArray<art::mirror::MethodType, 1024>::Set' requested here
DEFINE_DUAL_CACHE(resolved_method_types_,
^
art/runtime/mirror/dex_cache.h:456:18: note: expanded from macro 'DEFINE_DUAL_CACHE'
pairs->Set(index, resolved); \
^
This is due to improved Thread safety analysis in Clang:
https://github.com/llvm/llvm-project/commit/54bfd04846156dbd5e0a6b88f539c3d4569a455f
Test: build
Bug: 265153643
Change-Id: I50b34c5f0c43fcf7f909d145f86c46862966b46d
Diffstat (limited to 'runtime/quick_exception_handler.cc')
0 files changed, 0 insertions, 0 deletions