audk/MdeModulePkg/Core/Dxe/Mem
Taylor Beebe 408e463135 MdeModulePkg: Memory Bin Range Update Accounts for Guard Page
When finding a free page range for allocation, if the found range
starts below the tracked memory bin address range, the lowest
memory bin address is updated which will not include the guard page if
present. When CoreConvertPagesWithGuard() is called on the range
being allocated, the memory range is adjusted to include guard
pages which can push it out of the memory bin address range and
cause the memory type statistics to be unaltered.

This patch updates the lowest memory bin address range to account for
the guard page if NeedGuard is TRUE so the memory type statistics
are updated correctly.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Taylor Beebe <t@taylorbeebe.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-09-18 21:21:32 +00:00
..
HeapGuard.c MdeModulePkg: HeapGuard: Don't Assume Pool Head Allocated In First Page 2023-08-19 03:18:50 +00:00
HeapGuard.h MdeModulePkg: HeapGuard: Don't Assume Pool Head Allocated In First Page 2023-08-19 03:18:50 +00:00
Imem.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemData.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryProfileRecord.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Page.c MdeModulePkg: Memory Bin Range Update Accounts for Guard Page 2023-09-18 21:21:32 +00:00
Pool.c MdeModulePkg: HeapGuard: Don't Assume Pool Head Allocated In First Page 2023-08-19 03:18:50 +00:00