commit | cdb6b2b84617b89d8234c9946e8bb53a86070126 | [log] [tgz] |
---|---|---|
author | shafik <shafik@google.com> | Mon Sep 30 12:49:26 2019 +0100 |
committer | shafik <shafik@google.com> | Fri Oct 11 11:03:07 2019 +0100 |
tree | d5866117c935c615fd2cb7b5eb0c676fec8e56d2 | |
parent | c9ae859b8d38660435dd649772be8e35fff48d44 [diff] |
Delegate all JNI calls to a single thread Previously, JNI calls were performed on any thread that requires them. This required all of those threads to be attached to the JVM before the JNI call and then detached from it after it's done. To improve performance, this CL delegates all JNI calls to a specialised JNI threads. Switch to using ScopedLongArrayRO in getRedactionRangesInternal. Test: manual Bug: 140726584 Bug: 142314536 Change-Id: I64e40eb694d8291eda6b1e8b0035b72e79d737e7