git: kernel - Uninline crit_exit()

看板DFBSD_commit作者時間15年前 (2010/08/29 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
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
文章代碼(AID): #1CUWps_l (DFBSD_commit)
文章代碼(AID): #1CUWps_l (DFBSD_commit)