bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glibc THREAD_GSCOPE and excessive gsync_wake ()


From: Samuel Thibault
Subject: Re: glibc THREAD_GSCOPE and excessive gsync_wake ()
Date: Sat, 8 May 2021 21:54:34 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Don't bother looking at the existing implementation, its roots dates
before we really had gsync working.

Sergey Bugaev, le sam. 08 mai 2021 22:35:23 +0300, a ecrit:
> +  do \
> +    { \
> +      int count; \
> +      count = atomic_exchange_and_add_rel (&GL(dl_thread_gscope_count), -1); 
> \

While at it, rather try to reproduce the other archs' behavior: use
gscope_flag from the tcb, and switch THREAD_GSCOPE_IN_TCB to 1. That
will make the implementation much simpler and scalable.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]