summaryrefslogtreecommitdiff
path: root/runtime/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/thread.cc')
-rw-r--r--runtime/thread.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc
index f33da18e5f..7ee0cd1d3f 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -3485,7 +3485,8 @@ bool Thread::IsAotCompiler() {
}
mirror::Object* Thread::GetPeerFromOtherThread() const {
- mirror::Object* peer = GetPeer();
+ DCHECK(tlsPtr_.jpeer == nullptr);
+ mirror::Object* peer = tlsPtr_.opeer;
if (kUseReadBarrier && Current()->GetIsGcMarking()) {
// We may call Thread::Dump() in the middle of the CC thread flip and this thread's stack
// may have not been flipped yet and peer may be a from-space (stale) ref. So explicitly