mbox

[0/2] Optimize struct pthread size

Message ID 20220426180705.1274657-1-adhemerval.zanella@linaro.org
Headers

Message

Adhemerval Zanella April 26, 2022, 6:07 p.m. UTC
  It removes unused fields and use an internal sigset_t definition,
freeing about 132 bytes (124 on mips) from struct pthread.

Adhemerval Zanella (2):
  nptl: Remove unused members from struct pthread
  Refactor internal-signals.h

 nptl/descr.h                                  |  10 +-
 nptl/pthread_attr_setsigmask.c                |   2 +-
 nptl/pthread_create.c                         |  16 +--
 nptl/pthread_kill.c                           |  10 +-
 nptl/pthread_sigmask.c                        |   2 +-
 rt/tst-timer-sigmask.c                        |   2 +-
 signal/sigaction.c                            |   2 +-
 signal/sigaddset.c                            |   2 +-
 signal/sigdelset.c                            |   2 +-
 signal/sigfillset.c                           |   2 +-
 stdlib/abort.c                                |  10 +-
 sysdeps/generic/internal-signals.h            |  31 +-----
 sysdeps/posix/signal.c                        |   2 +-
 sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c |   2 +-
 sysdeps/unix/sysv/linux/internal-signals.h    |  53 +++++----
 sysdeps/unix/sysv/linux/internal-sigset.h     | 105 ++++++++++++++++++
 sysdeps/unix/sysv/linux/spawni.c              |  14 ++-
 sysdeps/unix/sysv/linux/timer_routines.c      |   2 +-
 18 files changed, 178 insertions(+), 91 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/internal-sigset.h