Revert "lib/os/heap: introduce option to force big heap mode"
This reverts commitb6b6d39bb6
. With both commit4690b8d5ec
("libc/minimal: fix malloc() allocated memory alignment") and commitc822e0abbd
("libc/minimal: fix realloc() allocated memory alignment") in place, there is no longer a need for enforcing the big heap mode on every allocations. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
1a7157d316
commit
7a91cf0176
3 changed files with 0 additions and 17 deletions
|
@ -13,10 +13,6 @@ config SPARC_NWIN
|
||||||
help
|
help
|
||||||
Number of implemented register windows.
|
Number of implemented register windows.
|
||||||
|
|
||||||
# ISA requires 8-byte alignment for 64-bit data access
|
|
||||||
config SYS_HEAP_ALWAYS_BIG_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
config GEN_ISR_TABLES
|
config GEN_ISR_TABLES
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
|
|
@ -46,16 +46,6 @@ config SYS_HEAP_ALLOC_LOOPS
|
||||||
keeps the maximum runtime at a tight bound so that the heap
|
keeps the maximum runtime at a tight bound so that the heap
|
||||||
is useful in locked or ISR contexts.
|
is useful in locked or ISR contexts.
|
||||||
|
|
||||||
config SYS_HEAP_ALWAYS_BIG_MODE
|
|
||||||
bool "Always use the heap big chunks mode"
|
|
||||||
help
|
|
||||||
The sys_heap allocator by default returns pointers to blocks
|
|
||||||
which are guaranteed to be aligned to the pointer size.
|
|
||||||
By enabling the "big chunks" mode, the returned blocks are
|
|
||||||
guaranteed to be 8 byte aligned, also on 32-bit platforms.
|
|
||||||
If this option is enabled, the "big chunks" mode will always
|
|
||||||
be used by sys_heap.
|
|
||||||
|
|
||||||
config PRINTK64
|
config PRINTK64
|
||||||
bool "Enable 64 bit printk conversions (DEPRECATED)"
|
bool "Enable 64 bit printk conversions (DEPRECATED)"
|
||||||
help
|
help
|
||||||
|
|
|
@ -66,9 +66,6 @@ struct z_heap {
|
||||||
|
|
||||||
static inline bool big_heap_chunks(size_t chunks)
|
static inline bool big_heap_chunks(size_t chunks)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_SYS_HEAP_ALWAYS_BIG_MODE)) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
return sizeof(void *) > 4U || chunks > 0x7fffU;
|
return sizeof(void *) > 4U || chunks > 0x7fffU;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue