diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-08-23 22:51:07 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-08-25 22:41:51 +0400 |
commit | e6923330aa5ec2a8afad9c0770b00bd08d48f8d7 (patch) | |
tree | 23978bc3877a46e9eb3db62d3bee2fc0eda3b907 | |
parent | 2cd618803fb4ebb51bf5a9418acbc92dc667fd45 (diff) | |
download | bdwgc-e6923330aa5ec2a8afad9c0770b00bd08d48f8d7.tar.gz |
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.
-rw-r--r-- | malloc.c | 3 | ||||
-rw-r--r-- | mallocx.c | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -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) { @@ -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) { |