]> granicus.if.org Git - gc/commit
Call GC_on_abort (with NULL argument) on exit(1)
authorIvan Maidanski <ivmai@mail.ru>
Sun, 24 Jun 2012 08:49:10 +0000 (12:49 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 24 Jun 2012 08:50:10 +0000 (12:50 +0400)
commit215d710e39b5f9df733525b97ff8c39cb659c7b0
tree495fd018debc683d75d5ef04ae0e489aba806df6
parenteaa9d53954cf9bbcdb73bb175d0f60ee592d2025
Call GC_on_abort (with NULL argument) on exit(1)

* include/private/gc_priv.h (EXIT): Call GC_on_abort(NULL) before
exit(1) (unless PCR) enabling the collector to enter a tight loop
(for debugging purpose) on abnormal EXIT if "GC_LOOP_ON_ABORT"
environment variable is set.
* misc.c (GC_on_abort): Allow "msg" argument to be NULL (skip
printing the message in such a case); update comment.
include/private/gc_priv.h
misc.c