summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-02-15 22:34:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-02-15 22:34:02 +0000
commit19c43a01a7b4c126c77928e886b51106ab7abd1b (patch)
treeb2a1e92e02de9d688c4facad49bc2b25b82614f8
parent1639387a8ec07265ba04b852f2016013a8bff603 (diff)
parent5ac203445f01e3f06d3ae8946541f2f306291c85 (diff)
Merge "Stop passing in statsFile fds as they will be leaked when returned to the caller." into rvc-qpr-dev
-rw-r--r--services/core/java/com/android/server/stats/pull/StatsPullAtomService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java b/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java
index eb6b734807b0..486de39deeb8 100644
--- a/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java
+++ b/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java
@@ -2610,7 +2610,6 @@ public class StatsPullAtomService extends SystemService {
try {
// force procstats to flush & combine old files into one store
long lastHighWaterMark = readProcStatsHighWaterMark(section);
- List<ParcelFileDescriptor> statsFiles = new ArrayList<>();
ProtoOutputStream[] protoStreams = new ProtoOutputStream[MAX_PROCSTATS_SHARDS];
for (int i = 0; i < protoStreams.length; i++) {
@@ -2620,7 +2619,7 @@ public class StatsPullAtomService extends SystemService {
ProcessStats procStats = new ProcessStats(false);
// Force processStatsService to aggregate all in-storage and in-memory data.
long highWaterMark = processStatsService.getCommittedStatsMerged(
- lastHighWaterMark, section, true, statsFiles, procStats);
+ lastHighWaterMark, section, true, null, procStats);
procStats.dumpAggregatedProtoForStatsd(protoStreams, MAX_PROCSTATS_RAW_SHARD_SIZE);
for (int i = 0; i < protoStreams.length; i++) {