diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2017-02-10 10:59:22 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2017-02-14 15:42:29 +0000 |
commit | ffc8cad04135192a8d10e7f38bd97c48101294a8 (patch) | |
tree | fb90432ea5e6d218891c0b3fcccc0fa77d202f7d /runtime/native/dalvik_system_VMStack.cc | |
parent | 4e4b62e21672dbacf5d5abb688a126aabad29269 (diff) |
Add a DCHECK in thread::GetPeer.
Motivated by https://android-review.googlesource.com/#/c/333205/.
Test: test-art-host run-jdwp-test.sh
Change-Id: I173c060324aa0dc39144db55e3a97e672c012ba8
Diffstat (limited to 'runtime/native/dalvik_system_VMStack.cc')
-rw-r--r-- | runtime/native/dalvik_system_VMStack.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_VMStack.cc b/runtime/native/dalvik_system_VMStack.cc index 268d71ac65..be6f7f2204 100644 --- a/runtime/native/dalvik_system_VMStack.cc +++ b/runtime/native/dalvik_system_VMStack.cc @@ -41,7 +41,7 @@ static jobject GetThreadStack(const ScopedFastNativeObjectAccess& soa, jobject p Thread* heap_task_thread = Runtime::Current()->GetHeap()->GetTaskProcessor()->GetRunningThread(); // heap_task_thread could be null if the daemons aren't yet started. - if (heap_task_thread != nullptr && decoded_peer == heap_task_thread->GetPeer()) { + if (heap_task_thread != nullptr && decoded_peer == heap_task_thread->GetPeerFromOtherThread()) { return nullptr; } // Suspend thread to build stack trace. |