Merge "Merge "GC in heapDumpFinished to cleanup hprof fd" am: f126c41de7 am: 8e82bc9961 am: c3cc786404" into oc-dr1-dev-plus-aosp

This commit is contained in:
Android Build Merger (Role)
2017-07-18 23:50:41 +00:00
committed by Android (Google) Code Review

View File

@@ -23528,6 +23528,9 @@ public class ActivityManagerService extends IActivityManager.Stub
}
if (DEBUG_PSS) Slog.d(TAG_PSS, "Dump heap finished for " + path);
mHandler.sendEmptyMessage(POST_DUMP_HEAP_NOTIFICATION_MSG);
// Forced gc to clean up the remnant hprof fd.
Runtime.getRuntime().gc();
}
}