Fix GC_out_of_line_malloc in new_gc_alloc.h for out-of-memory case
authorIvan Maidanski <ivmai@mail.ru>
Thu, 24 May 2018 22:08:25 +0000 (01:08 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 24 May 2018 22:08:25 +0000 (01:08 +0300)
commit689b081f19739961085275ace06a82a3bf1dbe5a
tree4811a853a0d3d2a245f6feb45ede6149379fd263
parent08a380c3a7fef12b5e58d83237de9858f830594b
Fix GC_out_of_line_malloc in new_gc_alloc.h for out-of-memory case

* include/new_gc_alloc.h (GC_out_of_line_malloc): Call
GC_generic_malloc_words_small() before the counters update; do not
update the counters if GC_generic_malloc_words_small() returns 0.
include/new_gc_alloc.h