Skip to content

Noop: ReactInstance: Add todo above getRuntimeScheduler()#43952

Closed
RSNara wants to merge 1 commit intofacebook:mainfrom
RSNara:export-D55547899
Closed

Noop: ReactInstance: Add todo above getRuntimeScheduler()#43952
RSNara wants to merge 1 commit intofacebook:mainfrom
RSNara:export-D55547899

Conversation

@RSNara
Copy link
Copy Markdown
Contributor

@RSNara RSNara commented Apr 7, 2024

Summary:
getRuntimeScheduler() allows things to schedule work on the js thread by bypassing main bundle buffering.

This is unsafe: almost everything should be using the buffered runtime executor, unless it sets up bindings used in the main bundle.

I filed a task for the investigation to see if there's any problems. And added it to the code in this diff.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D55547899

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Apr 7, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Apr 7, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,217,868 -9
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,594,634 +3
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: f77d028
Branch: main

@RSNara RSNara force-pushed the export-D55547899 branch from b8b0621 to 44cfe77 Compare April 7, 2024 19:03
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@RSNara RSNara force-pushed the export-D55547899 branch from 44cfe77 to 480eb6e Compare April 7, 2024 19:19
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@RSNara RSNara force-pushed the export-D55547899 branch from 480eb6e to d645156 Compare April 7, 2024 19:39
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@RSNara RSNara force-pushed the export-D55547899 branch from d645156 to f784148 Compare April 7, 2024 19:56
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@RSNara RSNara force-pushed the export-D55547899 branch from f196275 to cfdd77f Compare April 8, 2024 01:14
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@RSNara RSNara force-pushed the export-D55547899 branch from cfdd77f to 7e1c435 Compare April 8, 2024 17:55
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@RSNara RSNara force-pushed the export-D55547899 branch from 7e1c435 to b946b4f Compare April 8, 2024 18:02
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Summary:
getRuntimeScheduler() allows things to schedule work on the js thread by bypassing main bundle buffering.

This is unsafe: almost everything should be using the buffered runtime executor, unless it sets up bindings used in the main bundle.

I filed a task for the investigation to see if there's any problems. And added it to the code in this diff.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D55547899
@RSNara RSNara force-pushed the export-D55547899 branch from b946b4f to 55ef537 Compare April 8, 2024 19:20
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

RSNara added a commit to RSNara/react-native that referenced this pull request Apr 8, 2024
…acebook#43952)

Summary:

getRuntimeScheduler() allows things to schedule work on the js thread by bypassing main bundle buffering.

This is unsafe: almost everything should be using the buffered runtime executor, unless it sets up bindings used in the main bundle.

I filed a task for the investigation to see if there's any problems. And added it to the code in this diff.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D55547899
RSNara added a commit to RSNara/react-native that referenced this pull request Apr 8, 2024
…acebook#43952)

Summary:

getRuntimeScheduler() allows things to schedule work on the js thread by bypassing main bundle buffering.

This is unsafe: almost everything should be using the buffered runtime executor, unless it sets up bindings used in the main bundle.

I filed a task for the investigation to see if there's any problems. And added it to the code in this diff.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D55547899
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 9, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 9ad7138.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2024

This pull request was successfully merged by @RSNara in 9ad7138.

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