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>
Sat, 19 Nov 2016 17:37:04 +0000 (20:37 +0300)
commit0cceec20a3d5f665d36dd30551eca460b2fd8ebe
treee2c85c0addbf24cf7fff7b45b50d5d7e025104a3
parentf918c281d831a8565f6c589448981eae4bfe4a1b
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