-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid global_ref to javaPart in TurboModuleManager #43613
Conversation
This pull request was exported from Phabricator. Differential Revision: D55241235 |
This pull request was exported from Phabricator. Differential Revision: D55241235 |
Summary: Pull Request resolved: facebook#43613 Storing a global_ref to `jThis` in a JNI hybrid object leads to a reference cycle which cannot be cleaned up by Java GC. The Java object will keep the C++ object alive and vice versa. We can replace the reference in this class by using the this pointer passed in when `installJSIBindings` is invoked. Changelog: [Internal] Differential Revision: D55241235
84d0c2e
to
826d2c6
Compare
This pull request was exported from Phabricator. Differential Revision: D55241235 |
Summary: Pull Request resolved: facebook#43613 Storing a global_ref to `jThis` in a JNI hybrid object leads to a reference cycle which cannot be cleaned up by Java GC. The Java object will keep the C++ object alive and vice versa. We can replace the reference in this class by using the this pointer passed in when `installJSIBindings` is invoked. Changelog: [Internal] Differential Revision: D55241235
826d2c6
to
b6b7204
Compare
Summary: Pull Request resolved: facebook#43613 Storing a global_ref to `jThis` in a JNI hybrid object leads to a reference cycle which cannot be cleaned up by Java GC. The Java object will keep the C++ object alive and vice versa. We can replace the reference in this class by using the this pointer passed in when `installJSIBindings` is invoked. Changelog: [Internal] Differential Revision: D55241235
This pull request was exported from Phabricator. Differential Revision: D55241235 |
b6b7204
to
3d4ed66
Compare
Differential Revision: D55240490
Differential Revision: D55241234
Differential Revision: D55241232
Differential Revision: D55241233
Summary: Pull Request resolved: facebook#43613 Storing a global_ref to `jThis` in a JNI hybrid object leads to a reference cycle which cannot be cleaned up by Java GC. The Java object will keep the C++ object alive and vice versa. We can replace the reference in this class by using the this pointer passed in when `installJSIBindings` is invoked. Changelog: [Internal] Differential Revision: D55241235
3d4ed66
to
24c94b5
Compare
This pull request was exported from Phabricator. Differential Revision: D55241235 |
This pull request has been merged in 12d22e5. |
Summary:
Storing a global_ref to
jThis
in a JNI hybrid object leads to a reference cycle which cannot be cleaned up by Java GC. The Java object will keep the C++ object alive and vice versa.We can replace the reference in this class by using the this pointer passed in when
installJSIBindings
is invoked.Changelog: [Internal]
Differential Revision: D55241235