diff options
author | Sudheer Shanka <sudheersai@google.com> | 2020-06-16 13:07:42 -0700 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2020-06-16 13:07:42 -0700 |
commit | c60814348645c367fecd82d9036dd6e4f52013e2 (patch) | |
tree | d3b466b6a2620eeff5e5c436156da25899b78172 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 38da493ae4d0d02fba3e5a474776a29cf2afd82b (diff) |
Maintain the fuse buffer pool keyed by inode instead of threadId.
In order to save memory, FuseAppLoop maintains a buffer pool to use
when dispatching the read/write requests. Currently, it uses
the threadId of the ProxyFileDescriptorCallback as the key for this
buffer pool and this can result in an issue when a caller creates
multiple ProxyFileDescriptors with ProxyFileDescriptorCallbacks
running on the same thread. When this happens, it is possible that
a buffer is reused before a read/write request which was using it
earlier has been handled and would result in data from read/write
requests on different fds getting mixed up.
Bug: 158568683
Test: atest --test-mapping apex/blobstore
Change-Id: Iaffd54f4430ecb3778f01c80f5a1684ac448f8dc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions