]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Consolidate register-atfork
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 18 Jan 2021 18:10:02 +0000 (15:10 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 12 Mar 2021 13:19:22 +0000 (10:19 -0300)
commit2b47727c68b6329cf8890e56fc9dbaa4e7300961
treea6068c64f81fa0221cddd7f96d4a2ed3fbf816a9
parentcdba937662b16fc3685a8115f21e73f21330a44c
posix: Consolidate register-atfork

Both htl and nptl uses a different data structure to implement atfork
handlers.  The nptl one was refactored by 27761a1042d to use a dynarray
which simplifies the code.

This patch moves the nptl one to be the generic implementation and
replace Hurd linked one.  Different than previous NPTL, Hurd also uses
a global lock, so performance should be similar.

Checked on x86_64-linux-gnu, i686-linux-gnu, and with a build for
i686-gnu.
htl/Makefile
htl/register-atfork.c [deleted file]
include/register-atfork.h [moved from sysdeps/htl/fork.h with 54% similarity]
nptl/Makefile
posix/Makefile
posix/register-atfork.c [moved from nptl/register-atfork.c with 97% similarity]
sysdeps/generic/fork.h
sysdeps/htl/pt-atfork.c
sysdeps/mach/hurd/fork.c
sysdeps/nptl/fork.h