summaryrefslogtreecommitdiffstats
path: root/runtime/runtime_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime_android.cc')
-rw-r--r--runtime/runtime_android.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/runtime_android.cc b/runtime/runtime_android.cc
index 33641edb50..33600ddba5 100644
--- a/runtime/runtime_android.cc
+++ b/runtime/runtime_android.cc
@@ -38,6 +38,7 @@ void HandleUnexpectedSignal(int signal_number, siginfo_t* info, void* raw_contex
_exit(1);
}
handling_unexpected_signal = true;
+ gAborting++; // set before taking any locks
MutexLock mu(Thread::Current(), *Locks::unexpected_signal_lock_);
Runtime* runtime = Runtime::Current();