kernel - Optimize kmalloc() + bzero()
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 24 Sep 2018 15:52:07 +0000 (08:52 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 25 Sep 2018 16:29:09 +0000 (09:29 -0700)
commitc8320d0887c83afcbb5d4f01f198182d397fe728
tree7522b9f39b42cd02fda853f6a3a31eb07a70c01f
parent7367f28070a36cc8bd2731d3f7fce7067fe3e7d5
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
sys/kern/kern_slaballoc.c
sys/sys/malloc.h