Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0d68bc11 authored by Atneya Nair's avatar Atneya Nair
Browse files

Replace locking JNI array methods

GetPrimitiveArrayCritical takes a global lock within the runtime to
avoid a copy. This restricts what type of calls can be made in the
critical section.

Since we utilize array read methods primarily for extremely small
sized arrays (usually one element), the copy is cheap.

Test: Compiles
Bug: 231038541
Change-Id: I5bc53d8ca46677fefb3b52b0cd54d90776edcf83
parent 1a70b927
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment