summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-08-23 22:51:07 +0400
committerIvan Maidanski <ivmai@mail.ru>2013-08-25 22:41:51 +0400
commite6923330aa5ec2a8afad9c0770b00bd08d48f8d7 (patch)
tree23978bc3877a46e9eb3db62d3bee2fc0eda3b907 /malloc.c
parent2cd618803fb4ebb51bf5a9418acbc92dc667fd45 (diff)
downloadbdwgc-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/malloc.c b/malloc.c
index c1e2ed2c..ef269095 100644
--- 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)
{