]> granicus.if.org Git - gc/commit
Split GC_abort with GC_on_abort and abort() invoked from ABORT
authorIvan Maidanski <ivmai@mail.ru>
Mon, 23 Jan 2012 16:08:30 +0000 (20:08 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 23 Jan 2012 16:08:30 +0000 (20:08 +0400)
commitaef9081b60bcfc2580b09ea4b9f57e34b34e5339
treea81b86d90253e5724a58caf83282731aebdb5d35
parent53a93bcbd2c14292107ee2afbb25303e5a8a8fde
Split GC_abort with GC_on_abort and abort() invoked from ABORT
(to let ABORT inherit 'noreturn' attribute of abort)

* misc.c (GC_abort): Replace with GC_on_abort (return from GC_on_abort
instead of abort); update the comment.
* include/private/gc_priv.h (GC_abort): Likewise.
* include/private/gc_priv.h (GC_on_abort): Define as empty macro in
case of SMALL_CONFIG.
* include/private/gc_priv.h (ABORT): Always call GC_on_abort (unless
PCR) and abort (or _exit, or ExitProcess or DebugBreak, depending on
the target).
include/private/gc_priv.h
misc.c