Skip to content
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

Fixed mistake in code-generated reaction preamble #2105

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

erlingrj
Copy link
Collaborator

This is a race condition that I tried addressing in #2082 but I didn't do it properly. This PR finally makes the critical section include all accesses to the state shared between the reaction body and the async context scheduling a physical action.

Some token-moving from trigger struct to
action struct was outside a critical section.
@erlingrj erlingrj requested review from edwardalee and lhstrh and removed request for edwardalee November 15, 2023 15:05
Copy link
Collaborator

@edwardalee edwardalee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@erlingrj erlingrj added this pull request to the merge queue Nov 16, 2023
Merged via the queue into master with commit c19e257 Nov 16, 2023
41 checks passed
@erlingrj erlingrj deleted the reaction-preamble-race branch November 16, 2023 20:54
@lhstrh lhstrh added the bugfix label Jan 23, 2024
@lhstrh lhstrh changed the title Fix mistake in code-generated reaction preamble. Fixed mistake in code-generated reaction preamble Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants