2009-09-25 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Sat, 26 Sep 2009 00:06:51 +0000 (00:06 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:48 +0000 (21:06 +0400)
commit39cc5f4743cdf84f473507d8cb9ada62e69c81fb
treeb5f5b888258f81dc3b5f309f66f731474c234b7d
parent183c30bb035c5ef2662ffa1da3557d26390c8cdf
2009-09-25  Hans Boehm <Hans.Boehm@hp.com>

* include/private/gcconfig.h (CANCEL_SAFE, IF_CANCEL): new macros.
* include/private/gc_priv.h (DISABLE_CANCEL, RESTORE_CANCEL,
ASSERT_CANCEL_DISABLED): New macros.
* alloc.c (GC_maybe_gc): Assert cancellation disabled.
(GC_collect_a_little_inner,GC_try_to_collect, GC_collect_or_expand):
Disable cancellation.
(GC_add_to_our_memory): Check for overflow.
* misc.c (GC_cancel_disable_count): declare.
(GC_init, GC_write): Disable cancellation.
(GC_init): Remove redundant GC_is_initialized test.
* os_dep.c (GC_repeat_read): Assert cancellation disabled.
(GC_get_stack_base): Disable cancellation.
* pthread_stop_world.c (GC_suspend_handler_inner): Disable
cancellation.
* pthread_support.c (GC_mark_thread): Permanently disable
cancellation.
(GC_wait_for_gc_completion, GC_wait_builder, GC_wait_marker):
Assert cancellation disabled.
(fork handling): Disable cancellation, fix comment.
(GC_pthread_create): Disable cancellation.
(GC_unregister_my_thread): Disable cancellation.
* Makefile.direct: Document NO_CANCEL_SAFE.
ChangeLog
Makefile.direct
alloc.c
include/private/gc_priv.h
include/private/gcconfig.h
misc.c
os_dep.c
pthread_stop_world.c
pthread_support.c