test(allocator): fix Bump test on 32-bit platforms#21309
test(allocator): fix Bump test on 32-bit platforms#21309graphite-app[bot] merged 1 commit intomainfrom
Bump test on 32-bit platforms#21309Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Bump allocator OOM regression test so it no longer gets skipped on 32-bit targets, aiming to make CI consistently green across architectures.
Changes:
- Re-enables
oom_instead_of_bump_pointer_overflowon non-miri 32-bit by removing thetarget_pointer_width = "64"gate. - Adjusts the test setup to prevent allocating a new chunk via
set_allocation_limit. - Changes the “overflowing” allocation size computation to use a value derived from the allocated pointer address.
7ff745a to
ed6f0ab
Compare
ed6f0ab to
8ab35c8
Compare
Merge activity
|
Fix a test for `Bump` which was failing on 32-bit in CI. #21291 temporarily disabled the test. Turn out, there's no easy way to make this test work on 32-bit platforms, and #21510 added ample unit tests which effectively test the same thing. So keep it disabled on 32-bit, but fix the test to make it work properly on 64-bit. Rationale for the fix is explained in fitzgen/bumpalo#320.
8ab35c8 to
7462c4a
Compare

Fix a test for
Bumpwhich was failing on 32-bit in CI.#21291 temporarily disabled the test. Turn out, there's no easy way to make this test work on 32-bit platforms, and #21510 added ample unit tests which effectively test the same thing.
So keep it disabled on 32-bit, but fix the test to make it work properly on 64-bit.
Rationale for the fix is explained in fitzgen/bumpalo#320.