From 415d8070e37c20dfb7e6dc37e74fdb5fffc2022e Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 11 Apr 2016 08:42:26 -0700 Subject: ART: Flag to fail thread creation Add a flag to mark when the zygote is not allowed to create threads. Bug: 27248115 Bug: 28149511 Change-Id: I1dc3620d9e7d0054c672b993d89459fc4b353dfc --- runtime/runtime.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime/runtime.cc') diff --git a/runtime/runtime.cc b/runtime/runtime.cc index d3454e891f..0a65b6b1ff 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -204,6 +204,7 @@ Runtime::Runtime() implicit_so_checks_(false), implicit_suspend_checks_(false), no_sig_chain_(false), + force_native_bridge_(false), is_native_bridge_loaded_(false), is_native_debuggable_(false), zygote_max_failed_boots_(0), @@ -211,9 +212,11 @@ Runtime::Runtime() oat_file_manager_(nullptr), is_low_memory_mode_(false), safe_mode_(false), + dump_native_stack_on_sig_quit_(true), pruned_dalvik_cache_(false), // Initially assume we perceive jank in case the process state is never updated. - process_state_(kProcessStateJankPerceptible) { + process_state_(kProcessStateJankPerceptible), + zygote_no_threads_(false) { CheckAsmSupportOffsetsAndSizes(); std::fill(callee_save_methods_, callee_save_methods_ + arraysize(callee_save_methods_), 0u); interpreter::CheckInterpreterAsmConstants(); -- cgit v1.2.3-59-g8ed1b