Address comments for aog/934603
Test: TH
Change-Id: I6b54cfbaa49d320c3c9e97ebaeeb97e285f9bf43
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc
index f07dca1..ed6b2c9 100644
--- a/runtime/thread_list.cc
+++ b/runtime/thread_list.cc
@@ -203,6 +203,8 @@
public:
DumpCheckpoint(std::ostream* os, bool dump_native_stack)
: os_(os),
+ // Avoid verifying count in case a thread doesn't end up passing through the barrier.
+ // This avoids a SIGABRT that would otherwise happen in the destructor.
barrier_(0, /*verify_count_on_shutdown=*/false),
backtrace_map_(dump_native_stack ? BacktraceMap::Create(getpid()) : nullptr),
dump_native_stack_(dump_native_stack) {