OSDN Git Service

GC in heapDumpFinished to cleanup hprof fd
authorBilly Lam <shiufai@google.com>
Tue, 18 Jul 2017 19:01:44 +0000 (12:01 -0700)
committerBilly Lam <shiufai@google.com>
Tue, 18 Jul 2017 20:37:57 +0000 (13:37 -0700)
commit5603b71328cbcd9ab244404be6f8eda94eb9adcd
tree4b5f384b1e1efd4c7fed82a762dd0a675a425f82
parenta1d67fb38ec02150d674bc3b8d8354b53417552b
GC in heapDumpFinished to cleanup hprof fd

Previously the fd associated with the dump file was
not closed until the next GC. While this did not
affect AMS, external systems relying on monitoring
the close event on the file could not accurately
know when a dump operation was finished.

Bug: 62907010
Test: Manually flashed and tested

Change-Id: I0f6988099f479468f674eb7483f1f14529852270
services/core/java/com/android/server/am/ActivityManagerService.java