[sgen] Allow TLABs larger than MAX_SMALL_OBJ_SIZE.
authorMark Probst <mark.probst@gmail.com>
Fri, 15 Jan 2016 02:05:14 +0000 (18:05 -0800)
committerMark Probst <mark.probst@gmail.com>
Fri, 12 Feb 2016 18:03:34 +0000 (10:03 -0800)
commit0054a3c7a8e902125e42dc0f78e9eaf925a1343e
treef170877d4b62b0471a3007b438168e4d9df81036
parentbf6787a531e42841b1f0695331e7d321997f218d
[sgen] Allow TLABs larger than MAX_SMALL_OBJ_SIZE.

`sgen_ensure_free_space()` assumed that if `size` was larger than
`SGEN_MAX_SMALL_OBJ_SIZE`, it should find free space on the major
heap, so it wouldn't consider triggering a nursery allocation.  Making
TLABs larger than that would thus never trigger nursery collections
anymore.

Now we pass in the generation that says where we want space.
mono/sgen/sgen-alloc.c
mono/sgen/sgen-gc.c
mono/sgen/sgen-gc.h
mono/sgen/sgen-los.c