]> granicus.if.org Git - gc/commitdiff
Refine GC_INIT documentation about its multiple invocation
authorIvan Maidanski <ivmai@mail.ru>
Sun, 24 Mar 2019 08:30:40 +0000 (11:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Mar 2019 18:34:35 +0000 (21:34 +0300)
* include/gc.h (GC_INIT): Add comment about GC_INIT() multiple calls.

include/gc.h

index b622d2fc73bf7ba745f0d726c6fa3996368f0e2e..9c133678509b1520b04b465b282c07c7b35e7ddd 100644 (file)
@@ -2002,7 +2002,7 @@ GC_API int GC_CALL GC_get_force_unmap_on_gcollect(void);
 
 /* Portable clients should call this at the program start-up.  More     */
 /* over, some platforms require this call to be done strictly from the  */
-/* primordial thread.                                                   */
+/* primordial thread.  Multiple invocations are harmless.               */
 #define GC_INIT() { GC_INIT_CONF_DONT_EXPAND; /* pre-init */ \
                     GC_INIT_CONF_FORCE_UNMAP_ON_GCOLLECT; \
                     GC_INIT_CONF_MAX_RETRIES; \