Skip to content

native modules: Guard against concurrent resolve/reject calls#53151

Closed
RSNara wants to merge 1 commit into
facebook:mainfrom
RSNara:export-D79824319
Closed

native modules: Guard against concurrent resolve/reject calls#53151
RSNara wants to merge 1 commit into
facebook:mainfrom
RSNara:export-D79824319

Conversation

@RSNara
Copy link
Copy Markdown
Contributor

@RSNara RSNara commented Aug 7, 2025

Summary:
If the native module calls the resolve/reject, resolve/resolve, reject/resolve, reject/reject concurrently, the turbomodule infra could run into a null pointer exception. This diff mitigates that problem.

Changelog: [iOS][Fixed] - Fix concurrent calls into resolve/reject inside native modules

Differential Revision: D79824319

@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 Aug 7, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79824319

…ok#53151)

Summary:

If the native module calls the resolve/reject, resolve/resolve, reject/resolve, reject/reject concurrently, the turbomodule infra could run into a null pointer exception. This diff mitigates that problem.

Changelog: [iOS][Fixed] - Fix concurrent calls into resolve/reject inside native modules

Differential Revision: D79824319
@RSNara RSNara force-pushed the export-D79824319 branch from 5367c4d to b0422c7 Compare August 7, 2025 22:00
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79824319

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 9, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in dc87995.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @RSNara in dc87995

When will my fix make it into a release? | How to file a pick request?

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 Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants