Skip to content

Migrate BlobModule to TurboModuleWithJSIBindings for safe JSI access#56272

Open
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D98712509
Open

Migrate BlobModule to TurboModuleWithJSIBindings for safe JSI access#56272
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D98712509

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Mar 30, 2026

Summary: BlobCollector::nativeInstall received a raw jlong pointer to jsi::Runtime from Java and cast it directly, with no thread safety. Migrated BlobModule to implement TurboModuleWithJSIBindings, which provides a safe getBindingsInstaller() callback guaranteed to run on the JS thread during module initialization. Removed the unsafe raw pointer path.

Differential Revision: D98712509

Summary: BlobCollector::nativeInstall received a raw jlong pointer to jsi::Runtime from Java and cast it directly, with no thread safety. Migrated BlobModule to implement TurboModuleWithJSIBindings, which provides a safe getBindingsInstaller() callback guaranteed to run on the JS thread during module initialization. Removed the unsafe raw pointer path.

Differential Revision: D98712509
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 30, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 30, 2026

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D98712509.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant