]> git.ipfire.org Git - thirdparty/glibc.git/commit
Linux: Explicitly disable cancellation checking in the dynamic loader
authorFlorian Weimer <fweimer@redhat.com>
Mon, 10 May 2021 08:31:41 +0000 (10:31 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 10 May 2021 08:31:41 +0000 (10:31 +0200)
commit1c75f89613a0b2428c21c19598559a2d64221cde
tree55eb68a014e7e9a4bde5f9e095f03fa4bbb019a6
parent321789f61aa93c14390535aa3cf01846633cd022
Linux: Explicitly disable cancellation checking in the dynamic loader

Historically, SINGLE_THREAD_P is defined to 1 in the dynamic loader.
This has the side effect of disabling cancellation points.  In order
to enable future use of SINGLE_THREAD_P for single-thread
optimizations in the dynamic loader (which becomes important once
more code is moved from libpthread), introduce a new
NO_SYSCALL_CANCEL_CHECKING macro which is always 1 for IS_IN (rtld),
indepdently of the actual SINGLE_THREAD_P value.

Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysdep.h