rust/compiler
bors 98e16884b1 Auto merge of #78058 - bugadani:arena2, r=lcnr
Make sure arenas don't allocate bigger than HUGE_PAGE

Right now, arenas allocate based on the size of the last chunk. It is possible for a `grow` call to allocate a chunk that is not a multiple of `PAGE`, and this size is doubled for each subsequent allocation. This means, instead of `HUGE_PAGE`, the biggest page possible is actually unknown.

This change fixes this, and also removes an unnecessary checked multiplication. It is still possible to allocate bigger than `HUGE_PAGE` pages, but this will only happen as many times as absolutely necessary.
2020-10-18 11:19:14 +00:00
..
2020-09-11 09:37:51 -07:00
2020-09-23 21:51:56 +02:00
2020-10-16 15:21:18 -03:00
2020-09-23 21:51:56 +02:00
2020-10-16 15:14:38 -04:00
2020-10-16 15:15:34 -03:00
2020-09-23 21:51:56 +02:00
2020-09-23 21:51:56 +02:00
2020-10-16 15:13:28 -03:00
2020-10-16 15:14:38 -04:00
2020-10-16 12:58:50 -04:00