[update]更正 RT_MEMHEAP_BSET_MODE -> RT_MEMHEAP_BEST_MODE 拼写错误。
This commit is contained in:
parent
93bdf5ca08
commit
6da7ee128b
|
@ -324,7 +324,7 @@ menu "Memory Management"
|
|||
Speed priority mode.
|
||||
As long as the memory block size meets the requirements, the search ends immediately.
|
||||
|
||||
config RT_MEMHEAP_BSET_MODE
|
||||
config RT_MEMHEAP_BEST_MODE
|
||||
bool "best mode"
|
||||
help
|
||||
Best size first.
|
||||
|
|
|
@ -690,7 +690,7 @@ void rt_memheap_free(void *ptr)
|
|||
if (insert_header)
|
||||
{
|
||||
struct rt_memheap_item *n = heap->free_list->next_free;;
|
||||
#if defined(RT_MEMHEAP_BSET_MODE)
|
||||
#if defined(RT_MEMHEAP_BEST_MODE)
|
||||
rt_size_t blk_size = MEMITEM_SIZE(header_ptr);
|
||||
for (;n != heap->free_list; n = n->next_free)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue