summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-08-23 23:42:26 +0400
committerIvan Maidanski <ivmai@mail.ru>2013-08-25 22:41:57 +0400
commit52ac0a40a028a0599079703ff1d42fa3b70913e1 (patch)
treeea9c70dca60d4eef3c90d56d598332ce00495199 /malloc.c
parente6923330aa5ec2a8afad9c0770b00bd08d48f8d7 (diff)
downloadbdwgc-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/malloc.c b/malloc.c
index ef269095..4983cdfe 100644
--- a/malloc.c
+++ b/malloc.c
@@ -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)
{