summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/thread.cc2
-rw-r--r--runtime/thread_list.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc
index 4c17362bba..ee1dc15413 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -2708,7 +2708,7 @@ Thread::~Thread() {
SetCachedThreadName(nullptr); // Deallocate name.
delete tlsPtr_.deps_or_stack_trace_sample.stack_trace_sample;
- CHECK_EQ(tlsPtr_.method_trace_buffer, nullptr) << Trace::GetDebugInformation();
+ CHECK_EQ(tlsPtr_.method_trace_buffer, nullptr);
Runtime::Current()->GetHeap()->AssertThreadLocalBuffersAreRevoked(this);
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc
index d5e201352e..87e7a6fefe 100644
--- a/runtime/thread_list.cc
+++ b/runtime/thread_list.cc
@@ -1503,6 +1503,7 @@ void ThreadList::Unregister(Thread* self, bool should_run_callbacks) {
if (UNLIKELY(self->GetMethodTraceBuffer() != nullptr)) {
Trace::ReleaseThreadBuffer(self);
}
+ CHECK_EQ(self->GetMethodTraceBuffer(), nullptr) << Trace::GetDebugInformation();
delete self;
// Release the thread ID after the thread is finished and deleted to avoid cases where we can