git: nmalloc - Optimize initialization function out of hot path

Samuel Greear sjg at crater.dragonflybsd.org
Thu Dec 9 22:18:05 PST 2010


commit 754d5cacba4a180be19acfa0482f1b6c48831277
Author: Samuel J. Greear <sjg at thesjg.com>
Date:   Sat Nov 27 10:12:06 2010 +0000

    nmalloc - Optimize initialization function out of hot path
    
    * Add a __constructor macro to cdefs.h
    
    * Turn malloc_init into a gcc constructor
    
    * Modify ifconfig to use the cdefs macro instead of its own

Summary of changes:
 lib/libc/stdlib/nmalloc.c   |    5 +----
 sbin/ifconfig/af_atalk.c    |    2 +-
 sbin/ifconfig/af_inet.c     |    2 +-
 sbin/ifconfig/af_inet6.c    |    2 +-
 sbin/ifconfig/af_ipx.c      |    2 +-
 sbin/ifconfig/af_link.c     |    2 +-
 sbin/ifconfig/ifbridge.c    |    2 +-
 sbin/ifconfig/ifcarp.c      |    2 +-
 sbin/ifconfig/ifclone.c     |    2 +-
 sbin/ifconfig/ifconfig.c    |    3 ++-
 sbin/ifconfig/ifconfig.h    |    2 --
 sbin/ifconfig/ifieee80211.c |    2 +-
 sbin/ifconfig/ifmedia.c     |    2 +-
 sbin/ifconfig/ifvlan.c      |    2 +-
 sys/sys/cdefs.h             |   10 ++++++++++
 15 files changed, 24 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/754d5cacba4a180be19acfa0482f1b6c48831277


-- 
DragonFly BSD source repository





More information about the Commits mailing list