diff options
author | Ben Cheng <bccheng@android.com> | 2010-02-08 16:03:42 -0800 |
---|---|---|
committer | Ben Cheng <bccheng@android.com> | 2010-02-10 11:39:17 -0800 |
commit | f399e2dbfe2814c57c2b27384c6968128da6b08b (patch) | |
tree | 027739e013ba32bd2bdd756d1a16cc992c2cc4f1 /dalvik | |
parent | 5ce5d3f3eb12c17d99c28db6aa7f621deaeaf428 (diff) | |
download | libcore-f399e2dbfe2814c57c2b27384c6968128da6b08b.zip libcore-f399e2dbfe2814c57c2b27384c6968128da6b08b.tar.gz libcore-f399e2dbfe2814c57c2b27384c6968128da6b08b.tar.bz2 |
Support per-application switch to execute the VM in safe mode.
This is the implementation on the VM side to consume the android:safeMode=true
attribute and force the application to run in interpreter-only mode (the
current safe mode).
Bug: 2267583
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/Zygote.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dalvik/src/main/java/dalvik/system/Zygote.java b/dalvik/src/main/java/dalvik/system/Zygote.java index 13e7561..4f83d28 100644 --- a/dalvik/src/main/java/dalvik/system/Zygote.java +++ b/dalvik/src/main/java/dalvik/system/Zygote.java @@ -35,6 +35,8 @@ public class Zygote { public static final int DEBUG_ENABLE_CHECKJNI = 1 << 1; /** enable Java programming language "assert" statements */ public static final int DEBUG_ENABLE_ASSERT = 1 << 2; + /** disable the JIT compiler */ + public static final int DEBUG_ENABLE_SAFEMODE = 1 << 3; private Zygote() {} @@ -117,4 +119,3 @@ public class Zygote { return forkAndSpecialize(uid, gid, gids, debugFlags, rlimits); } } - |