summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-03-16 09:41:11 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-16 13:22:13 +0300
commit5871f287efc913063e9c42aef5962bebdc3f4692 (patch)
tree958106cfd10bc06fea9b3457573ab195b44b24e1 /include
parenta58cb15d9ce31637f7ea76b726f02921ec03e0f8 (diff)
downloadbdwgc-5871f287efc913063e9c42aef5962bebdc3f4692.tar.gz
Define GC_print_stats as GC_INNER
(refactoring) * extra/MacOS.c [USE_TEMPORARY_MEMORY && !SHARED_LIBRARY_BUILD] (GC_MacFreeTemporaryMemory): Do not use GC_print_stats (assume it is always zero). * include/private/gc_priv.h [!NO_CLOCK || !SMALL_CONFIG] (GC_print_stats): Declared as GC_EXTERN; refine comment. * misc.c [!NO_CLOCK || !SMALL_CONFIG] (GC_print_stats): Define as GC_INNER. * tests/gctest.c [!GC_PRINT_VERBOSE_STATS && !GCTEST_PRINT_VERBOSE] (GC_print_stats): Update comment.
Diffstat (limited to 'include')
-rw-r--r--include/private/gc_priv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index 62fd71a8..ab61a614 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -2458,9 +2458,9 @@ GC_EXTERN void (*GC_print_heap_obj)(ptr_t p);
#define VERBOSE 2
#if !defined(NO_CLOCK) || !defined(SMALL_CONFIG)
- /* GC_print_stats should be visible to extra/MacOS.c. */
- extern int GC_print_stats; /* Nonzero generates basic GC log. */
- /* VERBOSE generates add'l messages. */
+ GC_EXTERN int GC_print_stats;
+ /* Value 1 generates basic GC log; */
+ /* VERBOSE generates additional messages. */
#else /* SMALL_CONFIG */
# define GC_print_stats 0
/* Will this remove the message character strings from the executable? */