Skip to content

Synchronize native Fantom stub queue - #59015

Closed
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D124675719
Closed

Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D124675719

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
Fantom’s native StubQueue can be written by multiple threads while it is being drained, but its queue access was unsynchronized. Protect queue storage with a mutex while keeping callback invocation and destruction outside the lock, so callbacks can reenter the queue.

This is a tester-only change. The single-consumer and queue-lifetime requirements are unchanged; startup readiness and shared runtime teardown are out of scope.

Changelog:
[Internal] - Synchronize native Fantom stub queue access

Differential Revision: D124675719

Summary:
Fantom’s native `StubQueue` can be written by multiple threads while it is being drained, but its queue access was unsynchronized. Protect queue storage with a mutex while keeping callback invocation and destruction outside the lock, so callbacks can reenter the queue.

This is a tester-only change. The single-consumer and queue-lifetime requirements are unchanged; startup readiness and shared runtime teardown are out of scope.

Changelog:
[Internal] - Synchronize native Fantom stub queue access

Differential Revision: D124675719
@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 Oct 12, 2026
@meta-codesync

meta-codesync Bot commented Oct 12, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in 8bbd422 Oct 12, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 12, 2026
@meta-codesync

meta-codesync Bot commented Oct 12, 2026

Copy link
Copy Markdown

This pull request has been merged in 8bbd422.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant