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 /malloc.c | |
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.
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 3 |
1 files changed, 1 insertions, 2 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) { |