]> granicus.if.org Git - gc/commit
Fix SIGSEGV in GC_is_marked when gc_cleanup is used in leak-finding mode
authorIvan Maidanski <ivmai@mail.ru>
Fri, 14 Jul 2017 08:11:13 +0000 (11:11 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 14 Jul 2017 08:11:13 +0000 (11:11 +0300)
commitbd4b25168705ed6c6a10fd418fcc4424b6f90dc8
tree3bfa6e360404d133ea452a16dd436a65da29ee0a
parenta9f5b195fa71371d61b840edf4a7e73cf9575333
Fix SIGSEGV in GC_is_marked when gc_cleanup is used in leak-finding mode

Issue #162 (bdwgc).

Now finalizers and disappearing links registration is a no-op in case
of the leak-finding mode.

*  finalize.c (GC_register_disappearing_link_inner): Do nothing (return
GC_UNIMPLEMENTED) if GC_find_leak.
* finalize.c (GC_register_finalizer_inner): Do nothing if GC_find_leak.
* include/gc.h (GC_find_leak): More verbose comment.
* include/gc.h (GC_debug_register_finalizer,
GC_general_register_disappearing_link): Document the case of
GC_find_leak.
finalize.c
include/gc.h