htl: Fix conditions for thread list variables
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 22 Nov 2025 10:55:40 +0000 (11:55 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 22 Nov 2025 20:55:02 +0000 (21:55 +0100)
_dl_stack_used/user/etc. vs _dl_pthread_num_threads etc. is really an
nptl vs htl question rather than pthread being in libc.

elf/dl-support.c
sysdeps/generic/ldsodefs.h

index bbef3ab6b6462caab38d592e6f2e55fe105840d3..f5b7550bf5e7db3a22133ab07724e82e21b87488 100644 (file)
@@ -169,14 +169,15 @@ fpu_control_t _dl_fpu_control = _FPU_DEFAULT;
 /* Required flags used for stack allocation.  */
 int _dl_stack_prot_flags = DEFAULT_STACK_PROT_PERMS;
 
-#if PTHREAD_IN_LIBC
+#if !defined (__PTHREAD_HTL)
 list_t _dl_stack_used;
 list_t _dl_stack_user;
 list_t _dl_stack_cache;
 size_t _dl_stack_cache_actsize;
 uintptr_t _dl_in_flight_stack;
 int _dl_stack_cache_lock;
-#else
+#endif
+#if !PTHREAD_IN_LIBC
 void (*_dl_init_static_tls) (struct link_map *) = &_dl_nothread_init_static_tls;
 #endif
 struct dl_scope_free_list *_dl_scope_free_list;
index cb318ade7b6e2b5633fa4f7fdc1e59dd5d6a5a04..8c3541602f51f5ec0b5cbc481d246919b743ea24 100644 (file)
@@ -451,7 +451,7 @@ struct rtld_global
     size_t count;
     void *list[50];
   } *_dl_scope_free_list;
-#if PTHREAD_IN_LIBC
+#if !defined __PTHREAD_HTL
   /* List of active thread stacks, with memory managed by glibc.  */
   EXTERN list_t _dl_stack_used;
 
This page took 0.110954 seconds and 5 git commands to generate.