-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL improves on the previously introduced BlockAllocType to communicate both the result of allocator requests as well as side-effects to neighboring blocks. Instead of being a simple enum and returning a `Result<BlockAllocType>` from methods like `AllocFirst` and `AllocLast`, `BlockResult` uses `StatusWithSize` to fit in a single word, and encodes separate values to for both the previous and next blocks to inidcate how they have changed. Additionally, `Resize` has been updated to return a `BlockResult`. Change-Id: I772b9fc71f43defdb0021a5e0d75fe6ce8f7d952 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/232212 Reviewed-by: Taylor Cramer <[email protected]> Commit-Queue: Aaron Green <[email protected]> Docs-Not-Needed: Aaron Green <[email protected]> Lint: Lint 🤖 <[email protected]>
- Loading branch information
1 parent
87f43fe
commit d3a6358
Showing
3 changed files
with
190 additions
and
149 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.