diff options
Diffstat (limited to 'runtime/runtime.h')
| -rw-r--r-- | runtime/runtime.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 0ccc7b79bf..3c057f3c41 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -634,6 +634,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_; } @@ -691,6 +698,7 @@ class Runtime { double GetHashTableMaxLoadFactor() const; bool IsSafeMode() const { + CHECK(!is_zygote_); return safe_mode_; } |