git: nmalloc - Improve incremental reallocs()

Matthew Dillon dillon at
Thu Jul 23 14:50:08 PDT 2015

commit 97f56c04a1883982f4dbdc041369fd047c3d4d66
Author: Matthew Dillon <dillon at>
Date:   Thu Jul 23 14:22:32 2015 -0700

    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

Summary of changes:
 lib/libc/stdlib/nmalloc.c | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list