commit | df3449d84e37989f93ecc383d2b6f1995e53afb4 | [log] [tgz] |
---|---|---|
author | Max Dashouk <mdashouk@google.com> | Mon Oct 18 12:38:57 2021 -0700 |
committer | Max Dashouk <mdashouk@google.com> | Tue Oct 19 12:05:51 2021 -0700 |
tree | 86307c7a4d4a649c5f4678a966572c2ac9085732 | |
parent | 8f47a0b2f993a145a2175ba051f12636005beb7d [diff] |
Proactively delete local JNI references after their referees are no longer needed. Failing to do so will eventually lead to running out of slots that track all local references during native call. Bug: 203214262 Test: atest ScriptExecutorUnitTest:ScriptExecutorTest Test: atest ScriptExecutorUnitTest:JniUtilsTest Change-Id: I55aa3d25d816de4732488112754da3b9882b5386
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.