mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1c2671c8c9
Summary: Whenever we invoke a method, we convert JS arguments into JNI objects. These JNI objects are all local references that need to be manually destroyed after the method call happens. Therefore, I'm using `JniLocalScope` to automatically do this whenever the stack is cleared after the call to `JavaTurboModule::invokeJavaMethod`. This should hopefully get rid of the JNI table overflow we're seeing in T52817336. Reviewed By: mdvacca Differential Revision: D17244061 fbshipit-source-id: 92ca78cdb23ad8dfe2425db46e086c10c9662fe2