mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3513
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1532
Author: @nekomario28
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix-1488-atomic-wait-guard📝 Commits (1)
b63a331prefill: guard C++20 atomic::wait/notify_all behind __cpp_lib_atomic_wait (#1488)📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
src/prefill/prefill.cpp(+6 -0)📄 Description
Summary
Stager(from #1057) waits onstd::atomic<int>::wait/notify_all— a C++20 library feature libstdc++ only ships from GCC 11. GCC 10 passesCMAKE_CXX_STANDARD 20yet fails at the three call sites insrc/prefill/prefill.cpp, so Ubuntu 20.04 (focal, GCC 10 is the newest packaged compiler) and Debian 11 cannot build 0.1.40.2+.__cpp_lib_atomic_wait: toolchains without it take the pre-#1057 yield spin, and thenotify_all()calls are skipped on that path — they only wake threads blocked inwait(), which cannot exist there.Fixes #1488 (implements the reporter's suggested option 2; no minimum-version bump needed since the spin fallback restores the old behavior).
Test plan
g++ -std=c++20 -fsyntax-onlyonprefill.cppvia the HIP compat include path (wait path): clean#undef __cpp_lib_atomic_waitinjected after the includes (fallback path): cleanstrata_prefill🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.