[PATCH 0/1] htl: move pthread_spin_*

gfleury gfleury@disroot.org
Wed Nov 19 08:45:14 GMT 2025


Hello,

Carefully review this patch.

- Add __pthread_spin_* symbols to GLIBC_2.2.6 as suggested by make check elf/check-abi-libc. This mirrors their existing export in sysdeps/htl/Versions libc GLIBC_2.2 i guess.
- In sysdeps/mach/htl/pt-spin.c, use lock-intern.h instead of machine-lock.h to eliminate an extra PLT reference to __spin_lock_solid.
- Move sysdeps/i386/pthread_spin_trylock.S to sysdeps/i386/nptl/ to explicitly mark it as an NPTL-specific implementation.

gfleury (1):
  htl: move _pthread_spin_lock,
    pthread_spin_{destroy,lock,init,trylock,unlock) into libc.

 htl/Makefile                                  |  7 ++--
 htl/Versions                                  | 18 +++++---
 htl/pt-spin-inlines.c                         | 41 ++++++++++++++++---
 sysdeps/htl/pthreadP.h                        | 11 +++++
 sysdeps/i386/i686/pthread_spin_trylock.S      |  2 +-
 .../i386/{ => nptl}/pthread_spin_trylock.S    |  0
 sysdeps/mach/htl/pt-spin.c                    | 15 ++++---
 sysdeps/mach/hurd/i386/libc.abilist           | 17 ++++++++
 sysdeps/mach/hurd/i386/libpthread.abilist     | 11 -----
 sysdeps/mach/hurd/x86_64/libc.abilist         | 17 ++++++++
 sysdeps/mach/hurd/x86_64/libpthread.abilist   | 11 -----
 sysdeps/mach/x86/machine-lock.h               |  1 +
 12 files changed, 106 insertions(+), 45 deletions(-)
 rename sysdeps/i386/{ => nptl}/pthread_spin_trylock.S (100%)

-- 
2.52.0



More information about the Libc-alpha mailing list