Samuel Thibault, le sam. 08 mai 2021 21:54:34 +0200, a ecrit:
> 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.
And also drop THREAD_GSCOPE_GLOBAL, it's not useful any more.
Samuel