[sgen] Performance improvement for ms_block_size computations
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 22 Jun 2017 20:15:53 +0000 (23:15 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Thu, 22 Jun 2017 22:14:27 +0000 (01:14 +0300)
commit3ea09f9c8f10097e50b94702c1e4a06cb7517c4c
tree8b6bde1249402d7220665640b6a97cb7c708c3ac
parentabd1bd5d8f633cfdc43570433ed416145e887250
[sgen] Performance improvement for ms_block_size computations

This reduces regressions for switching from MS_BLOCK_SIZE compile time constant
to ms_block_size variable by 85% on the tests where this was showing up. In the
future we should implement a block allocator, which would, amongst other benefits,
enable us to remove the block-size/page-size dependency.
mono/sgen/sgen-marksweep.c