]> granicus.if.org Git - gc/commit
GC_malloc_[atomic_]uncollectable generalization
authorIvan Maidanski <ivmai@mail.ru>
Fri, 15 Jan 2016 09:48:06 +0000 (12:48 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 15 Jan 2016 09:48:06 +0000 (12:48 +0300)
commit283e7fded73a8428f94fa0e0baa24e5ed2a1f78b
tree0b21acceb21996b1c552fa15adc6f95aa5581a9c
parentbe76fecc24a410f26ac33fb363cfb90a1ace6fca
GC_malloc_[atomic_]uncollectable generalization

* include/gc_mark.h (GC_generic_malloc_uncollectable): New public
function declaration.
* malloc.c (GC_generic_malloc_uncollectable): New function
(imlementation mostly copied from GC_malloc_uncollectable).
* malloc.c (GC_malloc_uncollectable, GC_malloc_atomic_uncollectable,
calloc): Use GC_malloc_atomic_uncollectable.
* mallocx.c (GC_generic_or_special_malloc): Likewise.
* mallocx.c (GC_malloc_atomic_uncollectable): Move to malloc.c.
include/gc_mark.h
malloc.c
mallocx.c