Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2006 00:28:09 +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.c
Message-ID:  <200603240028.k2O0S90S023707@repoman.freebsd.org>

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

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
  Log:
  Add USE_BRK-specific code in malloc_init_hard() to allow the first
  internally used chunk to start at the beginning of the heap, rather
  than at a chunk-aligned address.  This reduces mapped memory somewhat
  for 32-bit architectures.
  
  Add the arena_run_link_t type and use it wherever a run object is only
  used as a ring 'header'.  This saves approximately 40 kB of memory per
  arena.
  
  Remove an obsolete (no longer used) code path from base_alloc(), which
  supported the internal allocation of objects larger than the chunk
  size.
  
  Enhance chunk_dealloc() to cache chunk addresses for all deallocated
  chunks.  This has no impact for most programs, but has the potential
  to reduce VM map fragmentation for programs that use huge
  allocations.
  
  Revision  Changes    Path
  1.115     +110 -65   src/lib/libc/stdlib/malloc.c



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