]> granicus.if.org Git - gc/commit
2009-09-10 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Thu, 10 Sep 2009 19:57:00 +0000 (19:57 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:46 +0000 (21:06 +0400)
commitf69ca1a96be89fa7e35ba7f8e958dc6a58a6a893
treee909ec37d6f35d01ddb0a27fb6c0df6bd2dfe795
parentf9aaf5b9e7ac5563c638efdb79b3c550ffd711cf
2009-09-10  Ivan Maidanski <ivmai@mail.ru>
(diff117)

* dbg_mlc.c (OFN_UNSET): New macro (to detect
GC_register_finalizer() failures).
* dbg_mlc.c (store_old): Add a check for register_finalizer()
failure caused by an out-of-memory event (leave *ofn and *ocd
unmodified in that case).
* dbg_mlc.c (GC_debug_register_finalizer,
GC_debug_register_finalizer_no_order,
GC_debug_register_finalizer_unreachable,
GC_debug_register_finalizer_ignore_self): Initialize my_old_fn
to OFN_UNSET; clear *ocd and *ofn for non-heap objects (the same
as in GC_register_finalizer_inner()).
ChangeLog
dbg_mlc.c