glibc/sysdeps/mach/hurd/x86_64
Sergey Bugaev cd019ddd89 hurd: Don't leak __hurd_reply_port0
Previously, once we set up TLS, we would implicitly switch from using
__hurd_reply_port0 to reply_port inside the TCB, leaving the former
unused. But we never deallocated it, so it got leaked.

Instead, migrate the port into the new TCB's reply_port slot. This
avoids both the port leak and an extra syscall to create a new reply
port for the TCB.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230319151017.531737-28-bugaevc@gmail.com>
2023-04-11 00:24:40 +02:00
..
bits hurd: Add sys/ucontext.h and sigcontext.h for x86_64 2023-04-10 20:11:43 +02:00
htl htl: Implement thread_set_pcsptp for x86_64 2023-04-03 01:18:27 +02:00
dl-tls-initialized.c hurd: Only check for TLS initialization inside rtld or in static builds 2023-04-10 23:33:30 +02:00
Implies
intr-msg.h hurd: Implement x86_64/intr-msg.h 2023-04-10 20:39:28 +02:00
longjmp-ts.c hurd: Implement _hurd_longjmp_thread_state for x86_64 2023-04-03 01:23:30 +02:00
static-start.S hurd, htl: Add some x86_64-specific code 2023-02-12 16:35:03 +01:00
tls.h hurd: Don't leak __hurd_reply_port0 2023-04-11 00:24:40 +02:00
tlsdesc.sym hurd, htl: Add some x86_64-specific code 2023-02-12 16:35:03 +01:00
ucontext_i.sym hurd: Add sys/ucontext.h and sigcontext.h for x86_64 2023-04-10 20:11:43 +02:00
vm_param.h hurd: Add vm_param.h for x86_64 2023-04-03 01:24:13 +02:00