From c5daf7d8dcd2f0e1c33320fba916444701e068cc Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 15 Oct 2002 02:16:58 +0000 Subject: Use __heap_[un]lock instead of __malloc_[un]lock. --- libc/stdlib/malloc/realloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libc/stdlib/malloc') diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c index e4c8ad710..32cfacd54 100644 --- a/libc/stdlib/malloc/realloc.c +++ b/libc/stdlib/malloc/realloc.c @@ -51,9 +51,9 @@ realloc (void *mem, size_t new_size) { size_t extra = new_size - size; - __malloc_lock (); + __heap_lock (heap); extra = __heap_alloc_at (&__malloc_heap, base_mem + size, extra); - __malloc_unlock (); + __heap_unlock (heap); if (extra) /* Record the changed size. */ @@ -74,9 +74,9 @@ realloc (void *mem, size_t new_size) else if (new_size + MALLOC_REALLOC_MIN_FREE_SIZE <= size) /* Shrink the block. */ { - __malloc_lock (); + __heap_lock (heap); __heap_free (&__malloc_heap, base_mem + new_size, size - new_size); - __malloc_unlock (); + __heap_unlock (heap); MALLOC_SET_SIZE (base_mem, new_size); } -- cgit v1.2.3