commit | 80ceebddbb4583ab30207f14757ab08f1d29f265 | [log] [tgz] |
---|---|---|
author | Ajay Panicker <apanicke@google.com> | Tue Jun 05 13:02:44 2018 -0700 |
committer | Ajay Panicker <apanicke@google.com> | Wed Jun 06 11:53:12 2018 -0700 |
tree | 4dc1d44591c21b8da9c8cc425fbf158f44a89f36 | |
parent | e1aa31860e1dfbedff375560e6d979497aef750f [diff] |
Delete JNI Object references created from arrays JNI Objects are deleted automatically when the native function returns, but for large arrays this can not be enough and lead to running out of resources before the native function returns. Prevent this by deleting the references as they are created and finished being used. Bug: 80527811 Test: Try sending a Now Playing List with a large number of items Change-Id: I34ac44cdafca5b3edade8992a856f2f2fc14f23d