[sgen] Collect major after user requested minor collections
commit32d2f28518ecfad2e8f3556f9c120418418fc4ec
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 30 Oct 2017 22:32:38 +0000 (31 00:32 +0200)
committerVlad Brezae <brezaevlad@gmail.com>
Tue, 31 Oct 2017 11:47:28 +0000 (31 13:47 +0200)
tree8a95eccf7fb90480963f68c00811a5bde99febec
parent9a879a1b11d5f724989ea2919c8f3fc8323c4e31
[sgen] Collect major after user requested minor collections

After a user requested minor collection we need to check if the new size of the heap exceeds the allowance, in which case we need to also do a major collection.

Fixes bug (#60168) where, if user triggers minors repeatedly, we never get to collect the major space (which is normally checked after the nursery is full, which never happens in this case)
mono/sgen/sgen-gc.c