Conversation
Member
Author
|
Based on RFC: tianocore/tianocore-wiki.github.io#51 |
mdkinney
force-pushed
the
PeiCoreAllocatePagesCheckFreePagesFirst
branch
from
October 2, 2026 00:22
956a8ba to
f8afe0b
Compare
Search free HOBs before top-down allocation only after a pre-memory free or alignment-padding event. Keep post-install ordering and final fallback. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
mdkinney
force-pushed
the
PeiCoreAllocatePagesCheckFreePagesFirst
branch
from
October 2, 2026 01:54
f8afe0b to
1177622
Compare
Cover reuse after pre-memory frees, the zero-event search skip, and preserved top-down ordering after permanent memory installation. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
mdkinney
force-pushed
the
PeiCoreAllocatePagesCheckFreePagesFirst
branch
from
October 2, 2026 05:08
1177622 to
5dc2a31
Compare
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.
Description
Search the active bin for the smallest suitable freed range before top-down allocation. Search the PHIT after type-bin exhaustion, while retaining the unrestricted final fallback.
Add GoogleTest coverage for best-fit reuse, bin boundaries, and the default-bin and final unrestricted fallback paths. Register the test in the MdeModulePkg host-test DSC.
How This Was Tested
Tested with included unit tests and verified no regressions on existing platforms
Integration Instructions
N/A