summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMadiyar Aitbayev <madiyar@google.com>2018-03-19 16:51:48 +0000
committerMadiyar Aitbayev <madiyar@google.com>2018-03-20 16:19:32 +0000
commitb436ce9cea86f8e4c0e2ad034ce9f4ef46d31cf8 (patch)
treee4b82f57e99d8ab975fd07236724fb27b451efbf /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2543fbd8a2a42bbf48d329c63d5d936ba17a0486 (diff)
Close file descriptors of ProfilerInfo
When using "am start --start-profiler" command, am doesn't close instances of related ParcelFileDescriptor of the profiler file path, but relies on garbage collection, so at the system level the file kept open for longer than it is needed. In a result, some processes that monitors the file close event using unix inotify_add_watch method would wait 20~30 Seconds. This change closes file descriptors after passing it to ActivityThread process, which is similar to what "am profile start" does. Bug: b/73891014 Test: tested manually by flashing into Pixel XL device. Merged-In: I5b63b96335fdaf86f0cd0caec2c53c32c0e41d72 Change-Id: I5b63b96335fdaf86f0cd0caec2c53c32c0e41d72
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions