git: kernel - Reduce BSS size (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Apr 22 22:14:02 PDT 2016


commit df0cd41ca2b32c997e05f2ce18551386dda44055
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Apr 22 22:08:43 2016 -0700

    kernel - Reduce BSS size (2)
    
    * Fix a bunch of other places in the kernel where large BSS arrays are
      declared.  Reduces the kernel image by another ~2MB or so on top of
      the ~6MB saved in the last commit.
    
    * Primarily these are places where a 'struct thread' is being embedded
      in a structure which is being declared [MAXCPU].  With MAXCPU at 256
      the result is pretty bloated.  Changing the embedded thread to a
      thread pointer removes most of the bloat.

Summary of changes:
 sys/kern/kern_intr.c    | 10 +++++-----
 sys/kern/kern_timeout.c | 14 +++++++-------
 sys/kern/usched_bsd4.c  | 22 +++++++++++-----------
 sys/kern/usched_dfly.c  | 14 +++++++-------
 sys/kern/usched_dummy.c |  8 ++++----
 sys/net/if.c            | 14 +++++++-------
 sys/net/netisr.c        | 12 ++++++------
 sys/net/netisr2.h       |  4 ++--
 8 files changed, 49 insertions(+), 49 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list