fitzgen / bumpalo

A fast bump allocation arena for Rust
https://docs.rs/bumpalo
Apache License 2.0
1.35k stars 110 forks source link

Fix oom_instead_of_bump_pointer_overflow breakage #176

Closed Eliasin closed 1 year ago

Eliasin commented 1 year ago

Nightly changes tp the Layout API have caused this test to break as layouts are now restricted to a max size of isize::MAX. This is fixed by using isize::MAX instead of usize::MAX in the test.

This test has been a bit controversial in the past but some of the problems with it have been dealt with up to the present, like not allocating enough to guarantee an OOM error.

Fixes #174