]> granicus.if.org Git - gc/commitdiff
Adjust GC_debug_malloc/realloc_replacement macro to match the API function
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Aug 2013 18:51:07 +0000 (22:51 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 25 Aug 2013 18:41:51 +0000 (22:41 +0400)
* 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.

malloc.c
mallocx.c

index c1e2ed2cf8bad470273a520a7b158fc1781a7b50..ef2690955b199084fb662e88e75189e3083135fe 100644 (file)
--- a/malloc.c
+++ b/malloc.c
@@ -355,9 +355,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)
 {
index d3fbed271f59fb68d844ff7150d9c51253de9008..1b4e09b8a6bc33e9049667a3fa2b51d115bd108c 100644 (file)
--- 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)
   {