[Bug libstdc++/120527] Native platform wait on darwin
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 21 14:42:23 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:4e2d1a1c3619df3a04df834d599173a4b463d72b
commit r16-8781-g4e2d1a1c3619df3a04df834d599173a4b463d72b
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Nov 25 14:29:50 2025 +0000
libstdc++: Use 32-bit platform wait type for OpenBSD and DragonFly
[PR120527]
This defines __platform_wait_t as unsigned int for OpenBSD and
DragonFly. This means that std::semaphore will use unsigned int by
default, and so will benefit from more efficient wait/notify ops if we
start to use the OpenBSD futex(2) syscall or the DragonFly umtx(2)
syscalls. We don't currently use them, but if we start to in future, it
would be an ABI break to change __platform_wait_t later.
libstdc++-v3/ChangeLog:
PR libstdc++/120527
* include/bits/atomic_wait.h [__OpenBSD__ || __DragonFly]: Use
unsigned int for __platform_wait_t.
Reviewed-by: Tomasz KamiÅski <tkaminsk@redhat.com>
More information about the Gcc-bugs
mailing list