Replace locking JNI array methods
Certain JNI methods utilize (PrimitiveCritical) a lock on the gc and other JVM resources to avoid copying array sections. In AudioEffect, all the arrays we wish to read are small, and not worth this cost. Additionally, holding this lock while going into blocking calls can lead to runtime issues. Test: atest AudioEffectTest Bug: 231038541 Change-Id: I80a88f503c2efcd9778998e3f8bc78fd512ad5fc
Loading
Please register or sign in to comment