diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-12-10 20:14:43 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-12-10 20:14:43 +0400 |
commit | ded8801538e0dfa1f2f3fd2bfbb7edc3afa7681d (patch) | |
tree | 1b91221cf4362ebe9e07c0ae39a16a8246d5546d /thread_local_alloc.c | |
parent | a88f5da5bf2e3a76859438477a152daed3e2dedc (diff) | |
download | bdwgc-ded8801538e0dfa1f2f3fd2bfbb7edc3afa7681d.tar.gz |
Prepend '#' symbol to GC number in logged messages
* alloc.c (GC_maybe_gc, GC_stopped_mark): Put '#' sign in printed
messages preceding GC_gc_no value (to identify it as a collection
number).
* include/private/gc_pmark.h (PUSH_CONTENTS_HDR): Likewise.
* malloc.c (GC_free): Likewise.
* mark.c (GC_mark_from): Likewise.
* thread_local_alloc.c (GC_malloc): Likewise.
Diffstat (limited to 'thread_local_alloc.c')
-rw-r--r-- | thread_local_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_local_alloc.c b/thread_local_alloc.c index e4fdc854..a35b0c3f 100644 --- a/thread_local_alloc.c +++ b/thread_local_alloc.c @@ -175,7 +175,7 @@ GC_API void * GC_CALL GC_malloc(size_t bytes) GC_FAST_MALLOC_GRANS(result, granules, tiny_fl, DIRECT_GRANULES, NORMAL, GC_core_malloc(bytes), obj_link(result)=0); # ifdef LOG_ALLOCS - GC_log_printf("GC_malloc(%lu) = %p, GC: %lu\n", + GC_log_printf("GC_malloc(%lu) returned %p, recent GC #%lu\n", (unsigned long)bytes, result, (unsigned long)GC_gc_no); # endif return result; |