git-reply_bogus
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 21 Feb 2022 08:47:11 +0000 (08:47 +0000)
committerAurelien Jarno <aurel32@debian.org>
Mon, 21 Feb 2022 08:47:11 +0000 (08:47 +0000)
commita0cf52f39b0142f98d8f999a818748473734180d
tree5e5ac8e6f9047d90b0a86c3cbf6c55a488bd9e63
parent9803bf28cf0e55897799dd912e4d092316f55c37
git-reply_bogus

commited for 2.35

commit 8c86ba446367fd676457e51eb44d7af2e5d9a392
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Jan 22 00:12:05 2022 +0000

    htl: Fix cleaning the reply port

    If any RPC fails, the reply port will already be deallocated.
    __pthread_thread_terminate thus has to defer taking its name until the very last
    __thread_terminate_release which doesn't reply a message.  But then we
    have to read from the pthread structure.

    This introduces __pthread_dealloc_finish() which does the recording of
    the thread termination, so the slot can be reused really only just before
    the __thread_terminate_release call. Only the real thread can set it, so
    let's decouple this from the pthread_state by just removing the
    PTHREAD_TERMINATED state and add a terminated field.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-reply_bogus.diff
htl/pt-alloc.c
htl/pt-create.c
htl/pt-dealloc.c
htl/pt-detach.c
htl/pt-internal.h
htl/pt-join.c
sysdeps/mach/htl/pt-thread-terminate.c