malloc_debug: Add default alignment option.
This allows for something similar as was implemented in 217f090 but
makes it optional and configurable.
The MALLOC_DEBUG environment variable now can take "a<size>" to set
the default alignment to the specified size. Note that not all
alignments may be supported depending on the heap implementation.
This commit is contained in:
@@ -18,6 +18,7 @@ status_t heap_debug_stop_wall_checking();
|
||||
void heap_debug_set_memory_reuse(bool enabled);
|
||||
void heap_debug_set_paranoid_validation(bool enabled);
|
||||
void heap_debug_set_debugger_calls(bool enabled);
|
||||
void heap_debug_set_default_alignment(size_t defaultAlignment);
|
||||
void heap_debug_validate_heaps();
|
||||
void heap_debug_validate_walls();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user