summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2021-02-03 09:45:08 -0800
committerRyan Mitchell <rtmitchell@google.com>2021-02-10 18:58:23 +0000
commit1d46f4f2dd549bb8711ed12d3c638a9fbef5a18f (patch)
tree9acb8feaa32af4e04bb1208c13c18956367eb2e5 /rs/java/android/renderscript/Program.java
parent1c319ea03fe7c1ec5f64ec057bc51be2a6f6e9dc (diff)
Cast ApkAssets to uintptr_t before jlong
Ever since 1e2456730d433551161f04b07e8b9524dd5b556a was submitted, we have been getting reports of leaking of fds owned by ApkAssets. The code that invokes the finalizer in NativeAllocationRegistry uses the following code to cast the jlong free function to the pointer of the native free function: void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); In ApkAssets, we should be doing the reverse of these casts to give NativeAllocationRegistry a pointer to a free function that will be interpreted correctly. Bug: 178571382 Test: manual Change-Id: I6cd3f5cc9fd3693a1288e0309e9e49b08c0d5316
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions