OSDN Git Service

* Add support for uClinux's broken munmap, contingent on
authorMiles Bader <miles@lsi.nec.co.jp>
Wed, 9 Oct 2002 10:27:56 +0000 (10:27 -0000)
committerMiles Bader <miles@lsi.nec.co.jp>
Wed, 9 Oct 2002 10:27:56 +0000 (10:27 -0000)
commit306eedf9ae04d3bde9be48bda0d387432d530a73
tree087b8fcb7a4c9a6522cb131ed4dd4dcd13be6180
parent79a790a53f60ff71cf5b77d7afe4ff3d7731edde
* Add support for uClinux's broken munmap, contingent on
  __UCLIBC_UCLINUX_BROKEN_MUNMAP__ (which is currently not defined anywhere).
  This makes other cases a tiny bit less efficient too.
* Move the malloc lock into the heap structure (locking is still done
  at the malloc level though, not by the heap functions).
* Initialize the malloc heap to contain a tiny initial static free-area so
  that programs that only do a very little allocation won't ever call mmap.
libc/stdlib/malloc/free.c
libc/stdlib/malloc/heap.h
libc/stdlib/malloc/malloc.c
libc/stdlib/malloc/malloc.h