Repository navigation
[4.2-dev] fix(mpool): stabilize physical realloc failure test - #33031
Merged
Merged
Conversation
…n#28467) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28451 ## What this PR does / why we need it: fix(mpool): avoid coverage crash in realloc failure test Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Contributor
|
This pull request is merged. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #32744
What this PR does / why we need it:
The Linux physical-reallocation failure test can abort the Go runtime under its process-local address-space limit. The 1 GiB target crosses the mpool high-watermark logging threshold before the allocator runs, and logging or GC can exhaust the 64 MiB headroom.
Backport the 512 MiB target from #28467 and use the 256 MiB headroom already used on main. The target remains larger than the available address space and the existing assertions still require a physical allocator rejection and verify ownership, accounting, profiling and contents for both source sizes and allocation paths.
If the allocator unexpectedly succeeds, retain the returned allocation for cleanup so the original assertion remains visible.
Validation: