summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSudheer Shanka <sudheersai@google.com>2020-06-16 13:07:42 -0700
committerSudheer Shanka <sudheersai@google.com>2020-06-16 13:07:42 -0700
commitc60814348645c367fecd82d9036dd6e4f52013e2 (patch)
treed3b466b6a2620eeff5e5c436156da25899b78172 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent38da493ae4d0d02fba3e5a474776a29cf2afd82b (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