diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-08-23 23:42:26 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-08-25 22:41:57 +0400 |
commit | 52ac0a40a028a0599079703ff1d42fa3b70913e1 (patch) | |
tree | ea9c70dca60d4eef3c90d56d598332ce00495199 /malloc.c | |
parent | e6923330aa5ec2a8afad9c0770b00bd08d48f8d7 (diff) | |
download | bdwgc-52ac0a40a028a0599079703ff1d42fa3b70913e1.tar.gz |
Replace GC_DBG_RA with GC_DBG_EXTRAS macro
* dbg_mlc.c (GC_debug_malloc_replacement,
GC_debug_realloc_replacement): Use GC_DBG_EXTRAS (instead of
"GC_DBG_RA NULL, 0").
* malloc.c (GC_debug_malloc_replacement): Likewise.
* mallocx.c (GC_debug_realloc_replacement): Likewise.
* include/private/gc_priv.h (GC_DBG_EXTRAS): New macro (similar to
GC_EXTRAS but pass NULL/0 instead of __FILE__and __LINE__);
pass "unknown" instead of NULL unless GC_ADD_CALLER.
* include/private/gc_priv.h (GC_DBG_RA): Remove.
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -355,8 +355,7 @@ 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 NULL, 0) +# define GC_debug_malloc_replacement(lb) GC_debug_malloc(lb, GC_DBG_EXTRAS) void * malloc(size_t lb) { |