From: Petter Urkedal Date: Thu, 29 Sep 2011 22:28:14 +0000 (+0200) Subject: Add comment on GC_init_finalized_malloc. X-Git-Tag: gc7_3alpha2~320^2^2~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c313023db0d7c81310e47383116f48e6d16d2c8;p=gc Add comment on GC_init_finalized_malloc. --- diff --git a/include/gc_disclaim.h b/include/gc_disclaim.h index f09bc9d6..44b29d49 100644 --- a/include/gc_disclaim.h +++ b/include/gc_disclaim.h @@ -48,8 +48,9 @@ struct GC_finalizer_closure { GC_API void *GC_CALL GC_finalized_malloc(size_t /*size*/, struct GC_finalizer_closure * /*fc*/); -/* Prepare the object kind used for GC_finalized_malloc. */ +/* Prepare the object kind used by GC_finalized_malloc. Call it from */ +/* your initialization code or, at least, at some point before using */ +/* finalized allocation. It is idempotent and thread-safe. */ GC_API void GC_CALL GC_init_finalized_malloc(void); - // FIXME: replace init with enable? #endif