Merge "Close heap dump ParcelFileDescriptor." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
48f0527199
@@ -1170,6 +1170,8 @@ public final class ActivityThread extends ClientTransactionHandler {
|
||||
} catch (IOException e) {
|
||||
Slog.e(TAG, "Failed to duplicate heap dump file descriptor", e);
|
||||
return;
|
||||
} finally {
|
||||
IoUtils.closeQuietly(fd);
|
||||
}
|
||||
dhd.finishCallback = finishCallback;
|
||||
sendMessage(H.DUMP_HEAP, dhd, 0, 0, true /*async*/);
|
||||
|
||||
Reference in New Issue
Block a user