summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-04-11 18:41:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-11 18:41:23 +0000
commit6d8479d535f99db1e957cbc1c3ac396cb26287ed (patch)
tree997bd0ed5e635ed4798d67b6d93a9f0a96d87ae4 /core
parentf5bcd8876e54aea8f228266ded5d9de8e6cad821 (diff)
parent88a996455b1f3906765cc177c461d38cc9bfda92 (diff)
downloadframeworks_base-6d8479d535f99db1e957cbc1c3ac396cb26287ed.zip
frameworks_base-6d8479d535f99db1e957cbc1c3ac396cb26287ed.tar.gz
frameworks_base-6d8479d535f99db1e957cbc1c3ac396cb26287ed.tar.bz2
am 88a99645: am 97953b30: am 4f4892d0: Merge "Workaround 64 bit devices that don\'t have zygotes yet."
* commit '88a996455b1f3906765cc177c461d38cc9bfda92': Workaround 64 bit devices that don't have zygotes yet.
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/Process.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java
index c947eda..995e396 100644
--- a/core/java/android/os/Process.java
+++ b/core/java/android/os/Process.java
@@ -372,7 +372,7 @@ public class Process {
for (int i = 0; i < tries; i++) {
if (i > 0) {
try {
- Log.i("Zygote", "Zygote not up yet, sleeping...");
+ Log.i(LOG_TAG, "Zygote not up yet, sleeping...");
Thread.sleep(ZYGOTE_RETRY_MILLIS);
} catch (InterruptedException ex) {
throw new ZygoteStartFailedEx(ex);
@@ -707,6 +707,16 @@ public class Process {
return primaryZygoteState;
}
+ // TODO: Get rid of this. This is a temporary workaround until all the
+ // compilation related pieces for the dual zygote stack are ready.
+ // b/3647418.
+ if (System.getenv("ANDROID_SOCKET_" + SECONDARY_ZYGOTE_SOCKET) == null) {
+ Log.e(LOG_TAG, "Forcing app to primary zygote, secondary unavailable (ABI= " + abi + ")");
+ // Should be :
+ // throw new ZygoteStartFailedEx("Unsupported zygote ABI: " + abi);
+ return primaryZygoteState;
+ }
+
// The primary zygote didn't match. Try the secondary.
if (secondaryZygoteState == null || secondaryZygoteState.isClosed()) {
secondaryZygoteState = ZygoteState.connect(SECONDARY_ZYGOTE_SOCKET,