]> 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>
Tue, 8 Aug 2017 07:45:16 +0000 (10:45 +0300)
commitb1905d60fbaaec15215c81610356ade4d18ba376
tree27ac007baa896ab3d58ceb8b5d31eff77838ca37
parentc18ff9a94eecdab467bf08b2934a51fa353ca1d0
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