Extra align in malloc_mgt_init?

Matthew Dillon dillon at backplane.com
Mon May 17 14:40:47 PDT 2021

Hmm.  You might be right.  It should work without that first alignment
operation because the (size) is already aligned.  But for safety's sake I
would probably want to change the if() into a while() to allow count to be
adjusted twice if necessary, just to be sure.  The init function is not in
a critical path.  I'll test it out a bit and commit with a credit to you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20210517/751a2136/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmalloc.diff
Type: text/x-patch
Size: 1693 bytes
Desc: not available
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20210517/751a2136/attachment-0003.bin>

More information about the Kernel mailing list