]> granicus.if.org Git - gc/commit
Add assertions about held lock when accessing all_bottom_indices
authorIvan Maidanski <ivmai@mail.ru>
Thu, 29 Mar 2018 08:50:36 +0000 (11:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 29 Mar 2018 08:50:36 +0000 (11:50 +0300)
commit5e6cc59b0a9d8c3175802809549f79bf1cbc4282
tree7501de47eeff8707a97c97b5582dab24fec02289
parent9c086a3a6dda33ed0f5a1e1070e6f850796f743a
Add assertions about held lock when accessing all_bottom_indices
(code refactoring)

* headers.c (GC_all_bottom_indices, GC_all_bottom_indices_end): Add
comment that the variable should be accessed with the allocation lock
held.
* headers.c (get_index, GC_apply_to_all_blocks, GC_next_used_block,
GC_prev_block): Add assertion (at the beginning of the function) that
the allocation lock is held.
headers.c