summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-10-19 22:28:38 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-10-19 22:28:38 +0000
commit5ef8128014b1796ae56dba3031f64ce6bfef4496 (patch)
treeea1f3804f9b8f117e861c8d856cf83add69c9a09
parentad0fbe9ac34ece07e587db4c138f2ae0fbfdefbe (diff)
parentdbe54913870fff81cae0796c0f7b66cf298b6d1f (diff)
Merge "ART: Only check non-deoptable classes in slow-debug"
-rw-r--r--runtime/native/dalvik_system_ZygoteHooks.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_ZygoteHooks.cc b/runtime/native/dalvik_system_ZygoteHooks.cc
index e40a071223..af78372982 100644
--- a/runtime/native/dalvik_system_ZygoteHooks.cc
+++ b/runtime/native/dalvik_system_ZygoteHooks.cc
@@ -22,6 +22,7 @@
#include "arch/instruction_set.h"
#include "art_method-inl.h"
+#include "base/logging.h"
#include "debugger.h"
#include "java_vm_ext.h"
#include "jit/jit.h"
@@ -49,7 +50,8 @@ namespace art {
// Set to true to always determine the non-debuggable classes even if we would not allow a debugger
// to actually attach.
-static constexpr bool kAlwaysCollectNonDebuggableClasses = kIsDebugBuild;
+static bool kAlwaysCollectNonDebuggableClasses =
+ RegisterRuntimeDebugFlag(&kAlwaysCollectNonDebuggableClasses);
using android::base::StringPrintf;