-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
malloc align build cleanup - fully builds
Enhancements to the UMM_MALLOC library * Support for 8-byte aligned data addresses. * To accommodate any libraries or Sketches that may have workarounds for the old 4-byte alignment, a deprecated build option "-DUMM_LEGACY_ALIGN_4BYTE=1" was added. * Support the memalign() function needed for the C++17 "new" aligned operator. Enable with build option "-DUMM_ENABLE_MEMALIGN=1." * Build options "-DUMM_LEGACY_ALIGN_4BYTE=1" and "-DUMM_ENABLE_MEMALIGN=1" are mutually exclusive. * Allocations from memalign() internally appear and are handled like any other UMM_MALLOC memory allocation. * The existing free() function handles releasing memalign() memory allocations. * Function realloc() should not be called for aligned memory allocations. It can break the alignment. At worst, the alignment falls back to sizeof(umm_block), 8 bytes. * The UMM_POISON build option was extended to support memalign(). Modules heap.cpp and abi.cpp updated for build option "-DUMM_ENABLE_MEMALIGN=1". C++ "new" operator overloads are updated to support the alignment argument.
- Loading branch information
1 parent
b9a0e55
commit a5f6d7d
Showing
10 changed files
with
694 additions
and
68 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.