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

Ensure handling_crash flag is atomic #1639

Merged
merged 1 commit into from
Mar 29, 2022
Merged

Conversation

kstenerud
Copy link
Contributor

Goal

The flag to mark that a native crash is being handled was not atomic, leaving room for a race condition should two threads trigger a native crash at the same time.

Design

Use atomics to ensure that no race condition is possible.

Testing

Reran all tests.

@kstenerud kstenerud requested a review from lemnik March 28, 2022 12:39
@kstenerud kstenerud force-pushed the PLAT-8095-atomic-handling-crash branch from 0b750ce to 4e7dd67 Compare March 28, 2022 14:27
@kstenerud kstenerud force-pushed the PLAT-8095-atomic-handling-crash branch from 4e7dd67 to 45e04f2 Compare March 29, 2022 07:41
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@kstenerud kstenerud merged commit 3bb8d79 into next Mar 29, 2022
@kstenerud kstenerud deleted the PLAT-8095-atomic-handling-crash branch March 29, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants