DragonFly commits List (threaded) for 2010-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Uninline crit_exit()
commit 9cf43f91337703a66f91000adb6e4ad0d9141dd2
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Sun Aug 29 00:10:25 2010 -0700
kernel - Uninline crit_exit()
* Have crit_exit() call an actual procedure instead of inlining it.
This doesn't seem to effect performance any and it reduces the
size of the kernel noticeably.
Modern cpus heavily optimize call/return paths these days and there
might even be advantages to the smaller code and branch-cache footprint.
The conditionals inside crit_exit() are nearly perfectly predicted
now that there is no differentiation between the N->(N-1) and 1->0 case.
Summary of changes:
sys/kern/lwkt_thread.c | 18 ++++++++++++++++++
sys/sys/thread.h | 1 +
2 files changed, 19 insertions(+), 0 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9cf43f91337703a66f91000adb6e4ad0d9141dd2
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]