Landing: 409e74cc30b0
Project / Subsystem
gcc / libstdc++
Date
2026-09-16
Author
Jonathan Wakely
Commit
409e74cc30b03afda59fc0d5711be71cd2e1bb59
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 409e74cc30b03afda59fc0d5711be71cd2e1bb59
- source_type
- github
- headline
- Make libstdc++ test semaphore work with POSIX semaphores.
- tldr
- libstdc++ test semaphore now uses POSIX semaphores as a fallback for SysV.
- author
- Jonathan Wakely
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • concurrency
- • posix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-16T00:00:00.000Z
This commit enhances the libstdc++ test suite’s semaphore implementation to support POSIX semaphores when System V semaphores are unavailable. It uses mmap for shared memory and handles systems lacking MAP_ANONYMOUS. The change ensures tests fail loudly if neither semaphore type is available and fixes a resource leak in the existing SysV semaphore code. The semaphore class is also refactored into separate header and source files.