]> granicus.if.org Git - gc/commitdiff
Add comment on GC_init_finalized_malloc.
authorPetter Urkedal <paurkedal@gmail.com>
Thu, 29 Sep 2011 22:28:14 +0000 (00:28 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 30 Sep 2011 13:35:56 +0000 (17:35 +0400)
include/gc_disclaim.h

index 0437f7244c4f742cc4eeb39c3a0f999eb66f5b2d..269eeaa528b9a1e897a7c773050a28f617129095 100644 (file)
@@ -20,7 +20,9 @@
 /* This API is defined only if the library has been suitably compiled   */
 /* (i.e. with ENABLE_DISCLAIM defined).                                 */
 
-/* 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 a thread-safe function.                 */
 GC_API void GC_CALL GC_init_finalized_malloc(void);
 
 /* Type of a disclaim call-back, always stored along with closure data  */