]> granicus.if.org Git - gc/commit
Fix assertion violation in GC_repeat_read if --enable-redirect-malloc
authorIvan Maidanski <ivmai@mail.ru>
Sat, 19 Nov 2016 17:37:04 +0000 (20:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 27 Nov 2016 06:36:19 +0000 (09:36 +0300)
commitaed7ec54e287ddbbd13a743927b61368eb617770
tree2a616270abb059ae6c2304ff69f57f1613c9e942
parent1b7ee1d64c05199f1c9099dfd03331953f8d0c3a
Fix assertion violation in GC_repeat_read if --enable-redirect-malloc

* malloc.c [REDIRECT_MALLOC && GC_LINUX_THREADS] (GC_init_lib_bounds):
Declare cancel_state local variable; DISABLE_CANCEL for GC_text_mapping
(because GC_repeat_read expects the cancellation state off); call
RESTORE_CANCEL on return.
malloc.c