diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-11-13 22:58:37 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-11-14 11:36:36 +0300 |
commit | 1e4e2cc93b5bead46518ce8028535492da662690 (patch) | |
tree | 614f3bc84cfe206b6ffa265b0403742bc9c7bb97 /malloc.c | |
parent | 04fd7b5309596423e4342502d3123028d836d551 (diff) | |
download | bdwgc-1e4e2cc93b5bead46518ce8028535492da662690.tar.gz |
Remove GENERAL_MALLOC internal macro
(code refactoring)
* alloc.c: Update comment (about GC_allocobj usage).
* include/private/gc_priv.h (GENERAL_MALLOC): Remove.
* include/private/gc_priv.h (GENERAL_MALLOC_IOP): Move to typd_mlc.c.
* malloc.c (GC_malloc_kind_global): Expand GENERAL_MALLOC macro; copy
the comment from gc_priv.h.
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -325,7 +325,10 @@ GC_API GC_ATTR_MALLOC void * GC_CALL GC_malloc_kind_global(size_t lb, int k) } UNLOCK(); } - return GENERAL_MALLOC(lb, k); + + /* We make the GC_clear_stack() call a tail one, hoping to get more */ + /* of the stack. */ + return GC_clear_stack(GC_generic_malloc(lb, k)); } #if defined(THREADS) && !defined(THREAD_LOCAL_ALLOC) |