summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMadiyar Aitbayev <madiyar@google.com>2018-03-03 18:48:58 +0000
committerMadiyar Aitbayev <madiyar@google.com>2018-03-15 12:36:24 +0000
commitb101e4b052330b04de62753dc49e2f233e109117 (patch)
tree2238f8303e6c66bae97423f05e936ccc053fec2d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent808d8a016386d7152717b2a510081aa5d51189ec (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. Change-Id: I5b63b96335fdaf86f0cd0caec2c53c32c0e41d72
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions