[Gc] Re[2]: [bdwgc] Exit abort hooks (#19)

Ivan Maidanski ivmai at mail.ru
Mon Jun 25 01:00:34 PDT 2012


Hi Hans,

I've already pushed own variant of such functionality into https://github.com/ivmai/bdwgc/tree/add-abort-exit-signals-setters
and consists of 2 commits:
- https://github.com/ivmai/bdwgc/commit/215d710e39b5f9df733525b97ff8c39cb659c7b0 (call GC_on_abort(NULL) on exit(1));
- https://github.com/ivmai/bdwgc/commit/d020903787f3aa4f949bd5c48083cfd71d36df6f (Add public GC_set/get_abort_func to replace default GC_on_abort)

Regards,
Ivan

Sun, 24 Jun 2012 11:39:38 -0700 от hboehm <reply+i-5234485-bbe9e6195098ceaaae4512f4686ec66ae9cebc67-460469 at reply.github.com>:
>  
> 
>   
>   
> Thanks!
> 
>  Could you also post this to the GC list? Ivan usually ends up pulling these. And having more people double-check the patches is always a good thing.
> 
>  Hans
> 
>  > -----Original Message-----
>  > From: jcbeaudoin [mailto:reply+i-5234485-
>  > e9b3942d4ae61a07a1792539fb1ede84ffa85559-1000362 at reply.github.com]
>  > Sent: Sunday, June 24, 2012 12:41 AM
>  > To: Boehm, Hans
>  > Subject: [bdwgc] Exit abort hooks (#19)
>  > 
>  > Here is the abort() and exit() callback hooks part.
>  > 
>  > You can merge this Pull Request by running:
>  > 
>  > git pull https://github.com/jcbeaudoin/bdwgc exit_abort_hooks
>  > 
>  > Or you can view, comment on it, or merge it online at:
>  > 
>  > https://github.com/ivmai/bdwgc/pull/19
>  > 
>  > -- Commit Summary --
>  > 
>  > * Added abort() and exit() callback hooks.
>  > * Fixed STATIC style for exit() and abort() callback hooks.
>  > * Added GC_CALLBACK to abort() and exit() callback hooks typedefs.
>  > * Segregated exit and abort hooks changes into their own branch
>  > * Added getters for exit and abort callback hooks.
>  > * Added documentation to abort and exit callback hook declarations.
>  > 
>  > -- File Changes --
>  > 
>  > M include/gc.h (23)
>  > M include/gc_config_macros.h (10)
>  > M include/private/gc_priv.h (3)
>  > M misc.c (70)
>  > M pthread_stop_world.c (9)
>  > 
>  > -- Patch Links --
>  > 
>  > https://github.com/ivmai/bdwgc/pull/19.patch
>  > https://github.com/ivmai/bdwgc/pull/19.diff
>  > 
>  > ---
>  > Reply to this email directly or view it on GitHub:
>  > https://github.com/ivmai/bdwgc/pull/19
> 
>  ---
>  Reply to this email directly or view it on GitHub:
> https://github.com/ivmai/bdwgc/pull/19#issuecomment-6535288
>     



More information about the Gc mailing list