]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Try to free the GCS of makecontext
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 17 Jul 2023 15:54:15 +0000 (16:54 +0100)
committerYury Khrustalev <yury.khrustalev@arm.com>
Thu, 10 Oct 2024 12:40:35 +0000 (13:40 +0100)
commitd2768c779c087e6fe3e0f265e35b10407a47c297
treec51bbe05bc146dfa5de098311e5a7f72ca635e41
parent491de01415ff69bec912577d36ce1eab82d3514f
aarch64: Try to free the GCS of makecontext

Free GCS after a makecontext start func returns and at thread exit, so
assume makecontext cannot outlive the thread where it was created.

This is an attempt to bound the lifetime of the GCS allocated for
makecontext, but it is still possible to have significant GCS leaks,
new GCS aware APIs could solve that, but that would not allow using
GCS with existing code transparently.
include/set-freeres.h
malloc/thread-freeres.c
sysdeps/unix/sysv/linux/aarch64/makecontext.c
sysdeps/unix/sysv/linux/aarch64/setcontext.S
sysdeps/unix/sysv/linux/aarch64/sysdep.h