Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eecf228d authored by Mathieu Chartier's avatar Mathieu Chartier Committed by android-build-merger
Browse files

Merge "Pass debug.allocTracker.stackDepth to runtime if it exists" am: 72e80b5b am: efeaad32

am: e58f122e

Change-Id: I40fc2836471279635acc26c06aa4a18a183947f9
parents 17ae950c e58f122e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5885,6 +5885,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);
        }