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

Kernel: Use SeqCst for ARE_CPU_LOCALS_INIT #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roblabla
Copy link
Member

Relaxed is 100% broken in SMP context here.

@roblabla
Copy link
Member Author

From @Orycterope on discord

Since we set the atomic to true before we start the other cores, shouldn't Relaxed work?

I'm not 100% sure. I feel like it should work in practice, but I'm very unclear on whether this is considered legal or not.

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