Add assertion on lock status to GC_alloc_large and its callers
authorIvan Maidanski <ivmai@mail.ru>
Wed, 21 Oct 2015 22:52:39 +0000 (01:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 21 Oct 2015 22:52:39 +0000 (01:52 +0300)
commitb7b1004a2aedaee00bc7baefd191268dbe9574a8
tree01fac41cb4037e5b9134fa2e46aad0d1bf4acc0e
parent2d79f88938ca8bbe2eabf05dc4ba98fd0ec63dae
Add assertion on lock status to GC_alloc_large and its callers
(code refactoring)

* alloc.c (GC_try_to_collect_inner): Remove comment about expected
lock status; add assertion about holding the allocation lock.
* finalize.c (GC_grow_table): Likewise.
* malloc.c (GC_alloc_large, GC_alloc_large_and_clear,
GC_generic_malloc_inner, GC_generic_malloc_inner_ignore_off_page):
Likewise.
* misc.c (GC_new_free_list_inner): Likewise.
alloc.c
finalize.c
malloc.c
misc.c