This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] pthread_once: Use unified variant instead of custom x86_64/i386


> +static int
> +__attribute__((noinline))

Space before paren.

> +__pthread_once_slow (pthread_once_t *once_control, void (*init_routine) (void))

This needs a comment explaining why it's separate.  I would have expected
the compiler to generate essentially the same code for the early bailout
case marked with __glibc_likely.

> +  atomic_read_barrier();
[...]
> +    return __pthread_once_slow(once_control, init_routine);

Space before paren.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]