epoll_pwait broken?

Davin McCall davmac@davmac.org
Wed Jan 24 02:40:00 GMT 2007


Ugh, I'm a little braindead today. Ok, you might be able to optimize the constant load in that you can keep the same constant value on the stack for successive calls. However, in most cases, you have still turned a single "load constant into register" operation (on the glibc side) into "push constant onto stack" (on the user side) together with "load register from the stack" (on the glibc side, in epoll_pwait).

Davin


On Tue, 23 Jan 2007 15:52:17 -0500
"Carlos O'Donell" <carlos@systemhalted.org> wrote:

> 
> Pros:
> - User doesn't have to type "sizeof (sigset_t)"
> 
> Cons:
> - More code in glibc.
> - Compiler can't optimize constant load for multiple epoll_pwait calls.
> - Kernel and userspace interfaces look different in the documentation.
> 
> Cheers,
> Carlos.



More information about the Libc-alpha mailing list