From: Ivan Maidanski Date: Fri, 23 Aug 2013 18:51:07 +0000 (+0400) Subject: Adjust GC_debug_malloc/realloc_replacement macro to match the API function X-Git-Tag: gc7_2d-freebsd~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f8e14313b673ef797ec2c5300cde66d7dcce173;p=gc Adjust GC_debug_malloc/realloc_replacement macro to match the API function * malloc.c (GC_debug_malloc_replacement): Pass NULL (instead of "unknown") to "s" argument of GC_debug_malloc to match that replacement definition in dbg_mlc.c. * mallocx.c (GC_debug_realloc_replacement): Likewise. --- diff --git a/malloc.c b/malloc.c index a6b7284f..b62193a9 100644 --- a/malloc.c +++ b/malloc.c @@ -329,9 +329,8 @@ GC_API void * GC_CALL GC_malloc_uncollectable(size_t lb) /* malloc replacements. Otherwise we end up saving a */ /* meaningless return address in the object. It also speeds things up, */ /* but it is admittedly quite ugly. */ - # define GC_debug_malloc_replacement(lb) \ - GC_debug_malloc(lb, GC_DBG_RA "unknown", 0) + GC_debug_malloc(lb, GC_DBG_RA NULL, 0) void * malloc(size_t lb) { diff --git a/mallocx.c b/mallocx.c index e4902a75..ee99d0fd 100644 --- a/mallocx.c +++ b/mallocx.c @@ -153,9 +153,8 @@ GC_API void * GC_CALL GC_realloc(void * p, size_t lb) # ifdef REDIRECT_REALLOC /* As with malloc, avoid two levels of extra calls here. */ - # define GC_debug_realloc_replacement(p, lb) \ - GC_debug_realloc(p, lb, GC_DBG_RA "unknown", 0) + GC_debug_realloc(p, lb, GC_DBG_RA NULL, 0) void * realloc(void * p, size_t lb) {