libc - nmalloc clean part 2
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Nov 2019 06:22:30 +0000 (22:22 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Nov 2019 17:03:36 +0000 (09:03 -0800)
commit369c9b6ca801f3b4ba739e0527a5de34bb51e9d8
treed2078d11b6702d3222a4cf59341c5e01144e7492
parent8b07b5e82a38bb7f04797b88aca14d3ccb08532c
libc - nmalloc clean part 2

* Clean up a lot of unused #define's and other constants.

* Increase the maximum capacity of a magazine to roughly
  512 (M_MAX_ROUNDS).  Continue to use a fixed structure.

* Set the magazine capacity dynamically based on the allocation
  size.  Magazines for smaller allocations have larger capacities.
  This should improve performance for tiny allocations.
lib/libc/stdlib/nmalloc.c