git: kernel - Deoptimize refcount case

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 10 10:06:35 PST 2011


commit d69db72b1a7495da31f52b159e817afb043017a0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Nov 10 10:02:30 2011 -0800

    kernel - Deoptimize refcount case
    
    * Make sure the compiler does not optimize the loading of *countp as the
      value can change out from under us.  It's volatile anyway but don't take
      any chances.

Summary of changes:
 sys/kern/kern_refcount.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d69db72b1a7495da31f52b159e817afb043017a0


-- 
DragonFly BSD source repository





More information about the Commits mailing list