diff options
| author | 2019-04-01 17:11:04 -0700 | |
|---|---|---|
| committer | 2019-04-01 17:11:04 -0700 | |
| commit | e58f122e196f658e8fb34b575ef5a239100300b8 (patch) | |
| tree | e9aa84b568a972ba3f0050117f8f0fe42cfe24d3 | |
| parent | 6a9a4a375b37fbe45dfe8511bf2068e008938b6e (diff) | |
| parent | efeaad32256b562c10db11460264c603bda9198b (diff) | |
Merge "Pass debug.allocTracker.stackDepth to runtime if it exists" am: 72e80b5b1a
am: efeaad3225
Change-Id: I16ff57136a2f53e97b494c866ac3497e00996823
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 9bc719eae223..7cd1b087d9ca 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -5659,6 +5659,11 @@ public final class ActivityThread extends ClientTransactionHandler { private void handleBindApplication(AppBindData data) { // Register the UI Thread as a sensitive thread to the runtime. VMRuntime.registerSensitiveThread(); + // In the case the stack depth property exists, pass it down to the runtime. + String property = SystemProperties.get("debug.allocTracker.stackDepth"); + if (property.length() != 0) { + VMDebug.setAllocTrackerStackDepth(Integer.parseInt(property)); + } if (data.trackAllocation) { DdmVmInternal.enableRecentAllocations(true); } |