OSDN Git Service

Redo the locking, so that it may actually work. Now locking is done at
authorMiles Bader <miles@lsi.nec.co.jp>
Thu, 25 Jul 2002 01:58:57 +0000 (01:58 -0000)
committerMiles Bader <miles@lsi.nec.co.jp>
Thu, 25 Jul 2002 01:58:57 +0000 (01:58 -0000)
commit056f9d98941eb98e453bf4fa308f28b892525baf
tree9adaefa6923b1949e06c4a81cf889976a7e8bb18
parent255cd531d67d4c5d110409e2a24e2aa5a6249a7a
Redo the locking, so that it may actually work.  Now locking is done at
the malloc/free level, not within the heap abstraction, and there's a
separate lock to control sbrk access.

Also, get rid of the separate `unmap_free_area' function in free.c, and
just put the code in the `free' function directly, which saves a bunch
of space (even compared to using an inline function) for some reason.
libc/stdlib/malloc/free.c
libc/stdlib/malloc/heap.h
libc/stdlib/malloc/heap_alloc.c
libc/stdlib/malloc/heap_alloc_at.c
libc/stdlib/malloc/heap_free.c
libc/stdlib/malloc/malloc.c
libc/stdlib/malloc/malloc.h
libc/stdlib/malloc/realloc.c