Merge "Merge "Revert "Revert "Make AndroidRuntime only start the debugger for zygote forked apps.""" am: 3b50dc3d34 am: 98568f57ad" into oc-mr1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
e8626dee42
@@ -761,18 +761,17 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote)
|
||||
|
||||
/*
|
||||
* Enable debugging only for apps forked from zygote.
|
||||
* Set suspend=y to pause during VM init and use android ADB transport.
|
||||
*/
|
||||
if (zygote) {
|
||||
// Set the JDWP provider and required arguments. By default let the runtime choose how JDWP is
|
||||
// implemented. When this is not set the runtime defaults to not allowing JDWP.
|
||||
addOption("-XjdwpOptions:suspend=n,server=y");
|
||||
parseRuntimeOption("dalvik.vm.jdwp-provider",
|
||||
jdwpProviderBuf,
|
||||
"-XjdwpProvider:",
|
||||
"default");
|
||||
}
|
||||
|
||||
// Set the JDWP provider. By default let the runtime choose.
|
||||
parseRuntimeOption("dalvik.vm.jdwp-provider",
|
||||
jdwpProviderBuf,
|
||||
"-XjdwpProvider:",
|
||||
"default");
|
||||
|
||||
parseRuntimeOption("dalvik.vm.lockprof.threshold",
|
||||
lockProfThresholdBuf,
|
||||
"-Xlockprofthreshold:");
|
||||
|
||||
Reference in New Issue
Block a user