Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PA] Make direct-map "slot" behavior match single-slot spans
Prior to this CL, slot (or slot span) would be the raw size aligned up to the page boundary, even though there may be plenty of space to the right for the allocation to grow. This CL reassigns meaning: - slot_size -> committed_size - available_reservation_size -> slot_size This changes the behavior of AllocationCapacityFromPtr which now uses the new meaning of slot_size. AllocationCapacityFromRequestedSize was adjusted to match it. These are now consistent with single-slot span behavior. There is still a difference between direct-map and single-slot spans. The unused part of the slot in the former case isn't committed, whereas in the latter case it is committed (at least in the current implementation), but may be discarded. Change-Id: I970deccb5e821db672bbed016854416cdbd5b6c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2636008 Commit-Queue: Bartek Nowierski <bartekn@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Takashi Sakamoto <tasak@google.com> Cr-Commit-Position: refs/heads/master@{#891545}
- Loading branch information
1 parent
ff3262b
commit 6c71231
Showing
6 changed files
with
95 additions
and
76 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
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
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
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
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
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