aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nptl/bits/thread-shared-types.h
diff options
context:
space:
mode:
authorMalte Skarupke <malteskarupke@fastmail.fm>2024-12-04 07:56:38 -0500
committerCarlos O'Donell <carlos@redhat.com>2025-01-17 14:56:58 -0500
commitc36fc50781995e6758cae2b6927839d0157f213c (patch)
tree6bc93c0e5115581d79791ebc81ec44ba3f3e2ac8 /sysdeps/nptl/bits/thread-shared-types.h
parent4f7b051f8ee3feff1b53b27a906f245afaa9cee1 (diff)
downloadglibc-c36fc50781995e6758cae2b6927839d0157f213c.tar.xz
glibc-c36fc50781995e6758cae2b6927839d0157f213c.zip
nptl: Remove g_refs from condition variables
This variable used to be needed to wait in group switching until all sleepers have confirmed that they have woken. This is no longer needed. Nothing waits on this variable so there is no need to track how many threads are currently asleep in each group. Signed-off-by: Malte Skarupke <malteskarupke@fastmail.fm> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/nptl/bits/thread-shared-types.h')
-rw-r--r--sysdeps/nptl/bits/thread-shared-types.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/nptl/bits/thread-shared-types.h b/sysdeps/nptl/bits/thread-shared-types.h
index 13a08a8095..7c24c0a6be 100644
--- a/sysdeps/nptl/bits/thread-shared-types.h
+++ b/sysdeps/nptl/bits/thread-shared-types.h
@@ -95,8 +95,7 @@ struct __pthread_cond_s
{
__atomic_wide_counter __wseq;
__atomic_wide_counter __g1_start;
- unsigned int __g_refs[2] __LOCK_ALIGNMENT;
- unsigned int __g_size[2];
+ unsigned int __g_size[2] __LOCK_ALIGNMENT;
unsigned int __g1_orig_size;
unsigned int __wrefs;
unsigned int __g_signals[2];