OSDN Git Service

am efe01cc6: am 3976a569: Merge "Replace --include-cfi with --generate-debug-info."
authorDavid Srbecky <dsrbecky@google.com>
Thu, 28 May 2015 20:16:45 +0000 (20:16 +0000)
committerAndroid Git Automerger <android-git-automerger@android.com>
Thu, 28 May 2015 20:16:45 +0000 (20:16 +0000)
* commit 'efe01cc62ee49f57c34726ec9c13ddaa9c1b1d8b':
  Replace --include-cfi with --generate-debug-info.

1  2 
core/java/android/os/Process.java
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteConnection.java
core/jni/AndroidRuntime.cpp
services/core/java/com/android/server/am/ActivityManagerService.java

Simple merge
@@@ -40,13 -40,18 +40,13 @@@ public final class Zygote 
      public static final int DEBUG_ENABLE_JNI_LOGGING = 1 << 4;
      /** enable the JIT compiler */
      public static final int DEBUG_ENABLE_JIT         = 1 << 5;
-     /** Force generation of CFI code */
-     public static final int DEBUG_GENERATE_CFI       = 1 << 6;
+     /** Force generation of native debugging information. */
+     public static final int DEBUG_GENERATE_DEBUG_INFO = 1 << 6;
  
 -
      /** No external storage should be mounted. */
      public static final int MOUNT_EXTERNAL_NONE = 0;
 -    /** Single-user external storage should be mounted. */
 -    public static final int MOUNT_EXTERNAL_SINGLEUSER = 1;
 -    /** Multi-user external storage should be mounted. */
 -    public static final int MOUNT_EXTERNAL_MULTIUSER = 2;
 -    /** All multi-user external storage should be mounted. */
 -    public static final int MOUNT_EXTERNAL_MULTIUSER_ALL = 3;
 +    /** Default user-specific external storage should be mounted. */
 +    public static final int MOUNT_EXTERNAL_DEFAULT = 1;
  
      private static final ZygoteHooks VM_HOOKS = new ZygoteHooks();
  
@@@ -871,21 -873,17 +871,21 @@@ int AndroidRuntime::startVm(JavaVM** pJ
      snprintf(cpuAbiListBuf, sizeof(cpuAbiListBuf), "--cpu-abilist=%s", propBuf);
      addOption(cpuAbiListBuf);
  
 +    // Dalvik-cache pruning counter.
 +    parseRuntimeOption("dalvik.vm.zygote.max-boot-retry", cachePruneBuf,
 +                       "-Xzygote-max-boot-retry=");
 +
      /*
-      * When running with debug.gencfi, add --include-cfi to the compiler options so that the boot
-      * image, if it is compiled on device, will include CFI info, as well as other compilations
-      * started by the runtime.
+      * When running with debug.generate-debug-info, add --generate-debug-info to
+      * the compiler options so that the boot image, if it is compiled on device,
+      * will include native debugging information.
       */
-     property_get("debug.gencfi", propBuf, "");
+     property_get("debug.generate-debug-info", propBuf, "");
      if (strcmp(propBuf, "true") == 0) {
          addOption("-Xcompiler-option");
-         addOption("--include-cfi");
+         addOption("--generate-debug-info");
          addOption("-Ximage-compiler-option");
-         addOption("--include-cfi");
+         addOption("--generate-debug-info");
      }
  
      initArgs.version = JNI_VERSION_1_4;