summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMadiyar Aitbayev <madiyar@google.com>2018-03-03 18:48:58 +0000
committerMadiyar Aitbayev <madiyar@google.com>2018-03-16 10:56:13 +0000
commit55bf6dfa25275db4e8f0ca61e1e0d69b58a64833 (patch)
treef57410d18dc5f5fa0b90d673638a0e1987e0c5c3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentec243338ea4c53bd24aaece7382ede4a8c85faeb (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 (cherry picked from commit b101e4b052330b04de62753dc49e2f233e109117)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions