* misc.c (GC_get_heap_usage_safe): Do not define if
GC_GET_HEAP_USAGE_NOT_NEEDED (for smaller code size if requested).
return (size_t)(GC_bytes_allocd + GC_bytes_allocd_before_gc);
}
+#ifndef GC_GET_HEAP_USAGE_NOT_NEEDED
+
/* Return the heap usage information. This is a thread-safe (atomic) */
/* alternative for the five above getters. NULL pointer is allowed for */
/* any argument. Returned (filled in) values are of word type. */
UNLOCK();
}
+#endif /* !GC_GET_HEAP_USAGE_NOT_NEEDED */
+
#if defined(GC_DARWIN_THREADS) || defined(GC_OPENBSD_THREADS) \
|| defined(GC_WIN32_THREADS) || (defined(NACL) && defined(THREADS))
/* GC does not use signals to suspend and restart threads. */