Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 09:00:28 +0000 (UTC)
From:      Jason Evans <jasone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdlib malloc.3 malloc.c
Message-ID:  <200603170900.k2H90Siw059900@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jasone      2006-03-17 09:00:28 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.3 malloc.c 
  Log:
  Modify allocation policy, in order to avoid excessive fragmentation for
  allocation patterns that involve a relatively even mixture of many
  different size classes.
  
  Reduce the chunk size from 16 MB to 2 MB.  Since chunks are now carved up
  using an address-ordered first best fit policy, VM map fragmentation is
  much less likely, which makes smaller chunks not as much of a risk.  This
  reduces the virtual memory size of most applications.
  
  Remove redzones, since program buffer overruns are no longer as likely to
  corrupt malloc data structures.
  
  Remove the C MALLOC_OPTIONS flag, and add H and S.
  
  Revision  Changes      Path
  1.67      +52 -50      src/lib/libc/stdlib/malloc.3
  1.112     +1064 -2499  src/lib/libc/stdlib/malloc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603170900.k2H90Siw059900>