]> 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 11:36:34 +0000 (14:36 +0300)
commit3faa0226d1ba43182843d15232f93a729eaed35e
tree3fe24e8036fa6d81f493bdbf583ce63a354fa586
parentec6501f27c80559f9d40c713ee0e11c5a5c28714
Fix assertion violation in GC_repeat_read if --enable-redirect-malloc
(Cherry-pick commit aed7ec5 from 'release-7_6' branch.)

* 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