public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/2] Optimize struct pthread size
Date: Tue, 26 Apr 2022 15:07:03 -0300	[thread overview]
Message-ID: <20220426180705.1274657-1-adhemerval.zanella@linaro.org> (raw)

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

-- 
2.34.1


             reply	other threads:[~2022-04-26 18:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26 18:07 Adhemerval Zanella [this message]
2022-04-26 18:07 ` [PATCH 1/2] nptl: Remove unused members from struct pthread Adhemerval Zanella
2022-06-28 17:26   ` Arjun Shankar
2022-04-26 18:07 ` [PATCH 2/2] Refactor internal-signals.h Adhemerval Zanella
2022-06-28 17:16   ` Arjun Shankar
2022-06-29 19:32     ` Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220426180705.1274657-1-adhemerval.zanella@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).