git: kernel - Reduce size of struct spinlock

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jan 8 14:08:15 PST 2017


commit a3946564b990b2bc6b8c0644221107ab313412be
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Jan 8 10:13:25 2017 -0800

    kernel - Reduce size of struct spinlock
    
    * Reduce the size of struct spinlock from 16 to 8 bytes.  The description
      field was not being used (we use __func__ instead).  This reduces
      structural bloat for a number of important structures, in particular
      reducing sizeof(struct vm_page) from 136 to 128 bytes.

Summary of changes:
 sys/sys/spinlock.h  | 15 +++++++--------
 sys/sys/spinlock2.h |  4 +++-
 2 files changed, 10 insertions(+), 9 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list