diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-10-20 15:57:00 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-10-20 15:57:00 +0000 |
commit | 8094989ba2229aeb562284ac96034252ad0c90c8 (patch) | |
tree | 80683494a60436459243ed8fa593f73e5e61182b /src/gmalloc.c | |
parent | 877935b1f574db32339050788147d677fc3cce27 (diff) | |
download | emacs-8094989ba2229aeb562284ac96034252ad0c90c8.tar.gz |
(_malloc_internal) [GC_MALLOC_CHECK]: Use
_malloc_internal instead of malloc.
(_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
of free.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r-- | src/gmalloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c index e05b758b766..2ce168c71c8 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -678,7 +678,11 @@ _malloc_internal (size) { /* No free fragments of the desired size, so get a new block and break it into fragments, returning the first. */ +#ifdef GC_MALLOC_CHECK + result = _malloc_internal (BLOCKSIZE); +#else result = malloc (BLOCKSIZE); +#endif if (result == NULL) return NULL; @@ -1092,7 +1096,11 @@ _free_internal (ptr) _chunks_free -= BLOCKSIZE >> type; _bytes_free -= BLOCKSIZE; +#ifdef GC_MALLOC_CHECK + _free_internal (ADDRESS (block)); +#else free (ADDRESS (block)); +#endif } else if (_heapinfo[block].busy.info.frag.nfree != 0) { |