Simplify loops of collect_a_little/stopped_mark invoking mark_some
authorIvan Maidanski <ivmai@mail.ru>
Tue, 16 Apr 2019 06:29:42 +0000 (09:29 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 16 Apr 2019 06:31:14 +0000 (09:31 +0300)
commitab00a2a71acc3b0345fc9d93249dff1093e34f1a
tree6c74e6a8c28a430f60f305c81cd6569e30e94cc2
parent1e1b58ca8e9c8abf91d68c1335f6c03e869e3771
Simplify loops of collect_a_little/stopped_mark invoking mark_some
(code refactoring)

* alloc.c (GC_collect_a_little_inner, GC_stopped_mark): If
GC_mark_some() returns true then just break to quit the loop; move the
logic that is needed to funish the collection outside the loop.
* alloc.c (GC_stopped_mark): Change i local variable type from unsigned
to int.
alloc.c