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>
Tue, 16 Feb 2010 22:58:55 +0000 (14:58 -0800)
commitf30acbb249b137b049500f136d2bb273c0b6221a
tree8c1b9ecffa710b2838671f379edd2e09772d223e
parentc0717b96b685b5061ce8627300d867c4057af878
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