[0/2] Optimize struct pthread size
Message ID | 20220426180705.1274657-1-adhemerval.zanella@linaro.org |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 07A4B385840C for <patchwork@sourceware.org>; Tue, 26 Apr 2022 18:07:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07A4B385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1650996452; bh=10vBQ82TWVK0rUknsLyeHql9pGnRctmGi2EIx0T4rDw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=dot9/42fuiOPImGT9uUkxvhLNFpu5BpWe6mlRtweL0wRyukLOT5N9qpaVjfRD5ffz Heuw0oJEh1RgbT6CLVKs9fwgbJPfT/FTNtdhFRdYN1CAK5ILl9IER08lk8/bW45goX PdlHauefI/NTLh6S9zJ8v+M7WpVSqNdf3eafyhQk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by sourceware.org (Postfix) with ESMTPS id C92083858C53 for <libc-alpha@sourceware.org>; Tue, 26 Apr 2022 18:07:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C92083858C53 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-e656032735so18957016fac.0 for <libc-alpha@sourceware.org>; Tue, 26 Apr 2022 11:07:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=10vBQ82TWVK0rUknsLyeHql9pGnRctmGi2EIx0T4rDw=; b=kAv/0nkg+xTTIf9NiGVed2z+8jSOCqJVpi0YR7uHKGVT486b0M5sxdkL5tN/e0d2MQ zEOgxmtWufARLQr0JECCEAWZloW0Yr7xz6Qf3MHJWKnxbgIF0+DeA/6TpASh98YZeJz2 qc4ge5FSBvvrpj4+xu0/sVyc0ZgEfGfbynb9R2qWn5ZYH2jcViq0YYijYXH3g3ga3zqx g2SClwDsCDVMQydliUg6eq17eb46iH3V+5r9UsP9ll4olrpTh/6fdtLxi0NKhQ6HpnYZ ylo1rYgylLDZ7GAnufgPNArnAWu8unzzc/2r6iJwhUeSdsckOeJFEYC8CLzYipYH8HE4 M53A== X-Gm-Message-State: AOAM5305SfFlpQN5PPfOMNRJwP5+rdtB1Enpnr9bJzc5LUCm0TD8dvwE EIpesMkKZLpionYSyh5pQreKpTNqkK/HNA== X-Google-Smtp-Source: ABdhPJxMyp0ywxNEUvj7IKfAhp3UX0uIRa3aEbs2764azyDymM9GW6wrML3MsxEJMXH6EsxEqWephQ== X-Received: by 2002:a05:6870:580e:b0:e2:7e06:e785 with SMTP id r14-20020a056870580e00b000e27e06e785mr10333137oap.38.1650996429519; Tue, 26 Apr 2022 11:07:09 -0700 (PDT) Received: from birita.. ([2804:431:c7ca:4214:745b:d03c:b667:123b]) by smtp.gmail.com with ESMTPSA id s4-20020a056871050400b000e686d1389esm1045478oal.56.2022.04.26.11.07.08 for <libc-alpha@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 11:07:09 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 0/2] Optimize struct pthread size Date: Tue, 26 Apr 2022 15:07:03 -0300 Message-Id: <20220426180705.1274657-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Adhemerval Zanella <adhemerval.zanella@linaro.org> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
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