nmalloc - Improve incremental reallocs()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Jul 2015 21:22:32 +0000 (14:22 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Jul 2015 21:50:05 +0000 (14:50 -0700)
commit97f56c04a1883982f4dbdc041369fd047c3d4d66
treee25cc3e5b573ef1c47ed8be6974b34dcfbdc87ec
parentffc9e7bb8949cc1e6d46076de8fbe45a68fab72f
nmalloc - Improve incremental reallocs()

* Fix realloc() issue that caused unnecessary unmap/remap operations
  due to the page coloring optimization.

* In addition, scale large reallocations by allowing more wiggle room
  as the allocation becomes larger so overhead isn't quite as geometrically
  bad for programs which do incremental realloc()s to huge sizes.

Initial-patch-by: vadaszi Bug #2832
lib/libc/stdlib/nmalloc.c