OSDN Git Service

Detect system-wide safe mode and configure the VM accordingly.
authorBen Cheng <bccheng@android.com>
Mon, 15 Feb 2010 00:17:36 +0000 (16:17 -0800)
committerBen Cheng <bccheng@android.com>
Wed, 17 Feb 2010 20:20:50 +0000 (12:20 -0800)
commitc5285b33048808a725498556f3f5a366588f4b80
tree746c847ffe0d4f5750170da5781ad6eb01e0391e
parent668628abe05cb30f86bd02c824f7219a7e20b82c
Detect system-wide safe mode and configure the VM accordingly.

Use pthread_cond_wait instead of timed wait for the system_server process to
wait on the go-ahead JIT signal. If the phone is booted under system-wide safe
mode, such signal will never come so all VM instances (including the system
server) will run in the interpreter-only mode.

Bug: 2267590
libcore/dalvik/src/main/java/dalvik/system/VMRuntime.java
libcore/dalvik/src/main/java/dalvik/system/Zygote.java
vm/Globals.h
vm/compiler/Compiler.c
vm/native/dalvik_system_VMRuntime.c