]> sourceware.org Git - glibc.git/commit
nptl: Change type of __default_pthread_attr
authorFlorian Weimer <fweimer@redhat.com>
Mon, 18 May 2020 16:25:18 +0000 (18:25 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 2 Jun 2020 08:32:37 +0000 (10:32 +0200)
commitc2322a561f74b8fa41b9d9c6b8eb57e28de46f3e
tree85673d97ee3c4a1d79d67e3e267a12c63cf7946f
parent86ed0774cf0de1d281ca3c773758c9fe6f2784b4
nptl: Change type of __default_pthread_attr

union pthread_attr_transparent has always the correct size, even if
pthread_attr_t has padding that is not present in struct pthread_attr.

This should not result in an observable behavioral change.  The
existing code appears to have been correct, but it was brittle because
it was not clear which functions were allowed to write to an entire
pthread_attr_t argument (e.g., by copying it).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
nptl/allocatestack.c
nptl/nptl-init.c
nptl/pthreadP.h
nptl/pthread_attr_getstacksize.c
nptl/pthread_create.c
nptl/pthread_getattr_default_np.c
nptl/pthread_setattr_default_np.c
nptl/vars.c
This page took 0.038811 seconds and 5 git commands to generate.