From d25220ba253a95d90852eb42576f21cd7796b743 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 29 Nov 2018 12:04:07 +0300 Subject: [PATCH] Refine HIDE_POINTER documentation for the case of the leak-finding mode * include/gc.h (GC_HIDE_POINTER, GC_REVEAL_POINTER): Refine comment (warn about usage in the leak-finding mode). --- include/gc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/gc.h b/include/gc.h index 753b5c9a..83b5b2e8 100644 --- a/include/gc.h +++ b/include/gc.h @@ -1373,6 +1373,7 @@ GC_API void GC_CALL GC_abort_on_oom(void); /* that finalization code will arrange for hidden pointers to */ /* disappear. Otherwise objects can be accessed after they */ /* have been collected. */ +/* Should not be used in the leak-finding mode. */ /* Note that putting pointers in atomic objects or in */ /* non-pointer slots of "typed" objects is equivalent to */ /* disguising them in this way, and may have other advantages. */ -- 2.50.1