diff options
Diffstat (limited to 'runtime/runtime.h')
| -rw-r--r-- | runtime/runtime.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index be5b3c119c..ad4d3bb0d7 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -650,6 +650,13 @@ class Runtime { void DeoptimizeBootImage(); bool IsNativeDebuggable() const { + CHECK(!is_zygote_ || IsAotCompiler()); + return is_native_debuggable_; + } + + // Note: prefer not to use this method, but the checked version above. The separation exists + // as the runtime state may change for a zygote child. + bool IsNativeDebuggableZygoteOK() const { return is_native_debuggable_; } @@ -706,6 +713,11 @@ class Runtime { double GetHashTableMinLoadFactor() const; double GetHashTableMaxLoadFactor() const; + bool IsSafeMode() const { + CHECK(!is_zygote_); + return safe_mode_; + } + void SetSafeMode(bool mode) { safe_mode_ = mode; } |