Loading
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