Merge "GC in heapDumpFinished to cleanup hprof fd"

am: f126c41de7

Change-Id: I7025d5810dccb6b2637249063f08c80b1ab7e8d0
This commit is contained in:
Billy Lam
2017-07-18 23:30:46 +00:00
committed by android-build-merger

View File

@@ -23464,6 +23464,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();
}
}