On Wed, 2008-09-10 at 16:12 +0400, Oleg Nesterov wrote:
I saw it. I dunno, I'm more of the "belt-and-suspenders" mindset. I'll
add a comment, thought, that this is probably a "can't happen" but we
check it anyway.
Hmm. It just seems to me that making it inline enables the optimizer to
do smarter things with the flow of control. The routine isn't all that
long, disassembling the posix_cpu_timers_exit_group() routine gives a
good view of it and it appears to be around 120 bytes. Certainly less
than 200 bytes (all of posix_cpu_timers_exit_group() is only 201 bytes).
That doesn't seem like a cache buster but I defer to those who are more
familiar with this stuff.
You're welcome. I actually like the new method of keeping track of this
stuff; it seems cleaner and certainly removes the requirement of walking
the thread group to add it up. Should help some microbenchmarks, at
least. :-)
--
Frank Mayhar <fmayhar@google.com>
Google, Inc.
--