[sgen] Avoid having all los objects pagesize aligned
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 17 Dec 2015 22:56:01 +0000 (00:56 +0200)
committerVlad Brezae <brezaevlad@gmail.com>
Mon, 4 Jan 2016 18:59:58 +0000 (20:59 +0200)
commitf607f01a76e151efc20fdabe4fbc4afb33a49c66
treeb49515114531e0c4ca7075b925c31bb5f753cb25
parentfff669316eaebf7515ed7267471f6f82803d8324
[sgen] Avoid having all los objects pagesize aligned

Since we allocate los objects in page_size chunks, we randomly slide the objects within this space to have them start at different offsets. This improves caching behavior, especially when traversing multiple los objects at the same time.
mono/sgen/sgen-los.c