mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-25 04:40:19 +02:00
Remove GUILE_DEBUG_MALLOC configuration
* configure.ac: Remove --enable-debug-malloc. * doc/ref/api-memory.texi (Memory Blocks): Remove malloc-stats mention. * libguile/debug-malloc.c: * libguile/debug-malloc.h: Remove. * libguile/Makefile.am (EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): (modinclude_HEADERS): Remove debug-malloc mentions. * libguile/gc-malloc.c (scm_gc_register_collectable_memory): (scm_calloc): * libguile/init.c (scm_i_init_guile): Remove debug-malloc things.
This commit is contained in:
parent
f3649d7d1b
commit
a13c30eeba
8 changed files with 1 additions and 332 deletions
|
@ -141,22 +141,12 @@ void
|
|||
scm_gc_register_collectable_memory (void *mem, size_t size, const char *what)
|
||||
{
|
||||
scm_gc_register_allocation (size);
|
||||
|
||||
#ifdef GUILE_DEBUG_MALLOC
|
||||
if (mem)
|
||||
scm_malloc_register (mem, what);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
scm_gc_unregister_collectable_memory (void *mem, size_t size, const char *what)
|
||||
{
|
||||
/* Nothing to do. */
|
||||
#ifdef GUILE_DEBUG_MALLOC
|
||||
if (mem)
|
||||
scm_malloc_unregister (mem);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Allocate SIZE bytes of memory whose contents should not be scanned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue