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

Small latch improvements #2867

Merged
merged 2 commits into from
Apr 13, 2023
Merged

Conversation

stevenengler
Copy link
Contributor

This changes the atomic from AtomicI32 to AtomicU32 since I realized that futex(2) in ubuntu 20.04 is out of date, and newer man pages show that its unsigned.

This also adds FUTEX_PRIVATE_FLAG which may improve performance (but I doubt it will in practice). This flag can be used since the latch will only ever be used in the same process.

@stevenengler stevenengler self-assigned this Apr 12, 2023
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Apr 12, 2023
@stevenengler stevenengler merged commit a436f3d into shadow:main Apr 13, 2023
22 checks passed
@stevenengler stevenengler deleted the latch-improvements branch April 13, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Main Composing the core Shadow executable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants