diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-22 00:09:14 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-22 00:19:43 +0300 |
commit | 06019fb90df660a8a10d2eade85b6bd69c82cfcc (patch) | |
tree | de846fd18b22625c997e140237ed056e7813b27f /reclaim.c | |
parent | 1ae6762a1afd1a51189ce0159d5d23af59919c96 (diff) | |
download | bdwgc-06019fb90df660a8a10d2eade85b6bd69c82cfcc.tar.gz |
New macro to suppress printing of leaked objects
The macro (SKIP_LEAKED_OBJECTS_PRINTING) might be useful for running
GC general tests in the find-leak mode.
* reclaim.c (GC_print_all_errors): Do not call GC_print_heap_obj
if SKIP_LEAKED_OBJECTS_PRINTING is defined.
Diffstat (limited to 'reclaim.c')
-rw-r--r-- | reclaim.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -103,7 +103,9 @@ GC_INNER void GC_print_all_errors(void) } for (i = 0; i < n_leaked; i++) { ptr_t p = leaked[i]; - GC_print_heap_obj(p); +# ifndef SKIP_LEAKED_OBJECTS_PRINTING + GC_print_heap_obj(p); +# endif GC_free(p); } |