diff options
author | 2016-04-11 08:42:26 -0700 | |
---|---|---|
committer | 2016-04-12 13:42:43 -0700 | |
commit | 415d8070e37c20dfb7e6dc37e74fdb5fffc2022e (patch) | |
tree | 0d113b28219feacfc5c5af88b1f2123b2d3531a9 /runtime/runtime.cc | |
parent | 8ace610a222892f7b700e4f95e50fa6315ab85c0 (diff) |
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
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |