From: Ivan Maidanski Date: Thu, 1 Mar 2018 19:47:22 +0000 (+0300) Subject: Fix missing GC_generic_malloc_words_small implementation in new_gc_alloc.h X-Git-Tag: v8.0.0~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=832d5bcb5a2461bf9ab0309bf75f90dfdc2f6cd6;p=gc Fix missing GC_generic_malloc_words_small implementation in new_gc_alloc.h * include/new_gc_alloc.h (GC_generic_malloc_words_small): Replace prototype with a macro (that uses GC_generic_malloc); remove FIXME item. --- diff --git a/include/new_gc_alloc.h b/include/new_gc_alloc.h index cd7ee5d5..39dadfc6 100644 --- a/include/new_gc_alloc.h +++ b/include/new_gc_alloc.h @@ -84,11 +84,11 @@ extern "C" { GC_API void GC_CALL GC_incr_bytes_allocd(size_t bytes); GC_API void GC_CALL GC_incr_bytes_freed(size_t bytes); - - GC_API char * GC_CALL GC_generic_malloc_words_small(size_t word, int kind); - /* FIXME: Doesn't exist anymore. */ } +#define GC_generic_malloc_words_small(lw, k) \ + GC_generic_malloc((lw) * sizeof(GC_word), k) + // Object kinds; must match PTRFREE, NORMAL, UNCOLLECTABLE, and // AUNCOLLECTABLE in gc_priv.h.