diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-05-12 10:47:11 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-05-12 13:41:43 -0700 |
commit | a395c0a492079d86b312c9edc796d63001576954 (patch) | |
tree | 5172c3a64e30577561db38ff3de883a4e639dfbb /runtime/native | |
parent | 3d8ac11e412aeb186e2e14270d09585bc34e229e (diff) | |
download | art-a395c0a492079d86b312c9edc796d63001576954.zip art-a395c0a492079d86b312c9edc796d63001576954.tar.gz art-a395c0a492079d86b312c9edc796d63001576954.tar.bz2 |
Hold heap bitmap lock in Heap::GetObjectsAllocated
Fixes a race condition where add and remove space could cause a crash
when we iterated over the spaces.
TODO: Add a spaces lock or something to guard against this.
Bug: 21031927
Change-Id: I7f0d558316f8e9d9f22ffd182e8666355bf50d47
Diffstat (limited to 'runtime/native')
-rw-r--r-- | runtime/native/java_lang_Thread.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/native/java_lang_Thread.cc b/runtime/native/java_lang_Thread.cc index be7022e..6569d83 100644 --- a/runtime/native/java_lang_Thread.cc +++ b/runtime/native/java_lang_Thread.cc @@ -84,6 +84,7 @@ static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean ha case kWaitingInMainDebuggerLoop: return kJavaWaiting; case kWaitingForDebuggerSuspension: return kJavaWaiting; case kWaitingForDeoptimization: return kJavaWaiting; + case kWaitingForGetObjectsAllocated: return kJavaWaiting; case kWaitingForJniOnLoad: return kJavaWaiting; case kWaitingForSignalCatcherOutput: return kJavaWaiting; case kWaitingInMainSignalCatcherLoop: return kJavaWaiting; |