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

fix(threadpool regression): deadlock on Windows on fibonacci #509

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jan 7, 2025

While fixing #502, PR #503 introduced a regression on x86 Windows, a waiter could deadlock when trying to sleep until task completion.

The fix is ensuring a full compiler and cache/memory barrier. Tested on MacOS ARM as well to ensure #502 stays fixed.

It's unsure why the issue appears only on Windows and not on Linux and it might be due to Windows Futex wait signaling.

@mratsim mratsim merged commit ea20f62 into master Jan 7, 2025
12 checks passed
@mratsim mratsim deleted the threadpool-windows branch January 7, 2025 10:45
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.

1 participant