OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af6dad6
)
Add a missing SHARED_LOCKS_REQUIRED(mutator_lock_).
author
Stephen Hines
<srhines@google.com>
Wed, 26 Nov 2014 09:24:13 +0000
(
01:24
-0800)
committer
Stephen Hines
<srhines@google.com>
Wed, 26 Nov 2014 09:24:13 +0000
(
01:24
-0800)
This was caught by Clang 3.6 using -Wthread-safety-analysis.
Change-Id: If2f25331f111ba6c67570e5aece1fba38f714d05
runtime/jni_internal.cc
patch
|
blob
|
history
diff --git
a/runtime/jni_internal.cc
b/runtime/jni_internal.cc
index
1dcfcab
..
4797e69
100644
(file)
--- a/
runtime/jni_internal.cc
+++ b/
runtime/jni_internal.cc
@@
-566,7
+566,8
@@
class JNI {
return soa.AddLocalReference<jobject>(decoded_obj);
}
- static void DeleteLocalRef(JNIEnv* env, jobject obj) {
+ static void DeleteLocalRef(JNIEnv* env, jobject obj)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
if (obj == nullptr) {
return;
}