Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: e508c6c08ab6a97ba8c34a156e17bcd9600104dd https://github.com/tianocore/edk2/commit/e508c6c08ab6a97ba8c34a156e17bcd9600104dd Author: Phil Noh <phil....@amd.com> Date: 2024-12-06 (Fri, 06 Dec 2024)
Changed paths: M MdeModulePkg/Core/DxeIplPeim/DxeLoad.c Log Message: ----------- MdeModulePkg/DxeIplPeim: Free scratch buffer after FV extraction The scratch buffer (EfiBootServicesData) is assigned to extract DXE FVs that are compressed. The matching decompression library returns the buffer size as below. The buffer is no longer used after completing extraction. Need to free the buffer to optimize memory allocation and usage. BaseUefiDecompressLib : sizeof (SCRATCH_DATA) LzmaCustomDecompressLib : SCRATCH_BUFFER_REQUEST_SIZE (64KB) BrotliCustomDecompressLib : From EncodeData header (usually, xxMB checked) In case of Brotli decompression, it is found that a big chunk of memory is required, based on EncodeData header. (e.g. a 4MB compressed FV reports about 39MB scratch size) Signed-off-by: Phil Noh <phil....@amd.com> To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits