git: kernel - Optimize kmalloc() + bzero()

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 25 09:29:18 PDT 2018


commit c8320d0887c83afcbb5d4f01f198182d397fe728
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Sep 24 08:52:07 2018 -0700

    kernel - Optimize kmalloc() + bzero()
    
    * Optimize the common case where kmalloc is called with constant
      flags of M_ZERO|M_WAITOK (and not M_NULLOK), and size, and
      issue the bzero() independently.  This allows the bzero() to
      be optimized.
    
    Suggested-by: mjg

Summary of changes:
 sys/kern/kern_slaballoc.c |  3 +++
 sys/sys/malloc.h          | 55 ++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 55 insertions(+), 3 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list