summaryrefslogtreecommitdiff
path: root/src/mem.c
AgeCommit message (Collapse)Author
2026-07-16mem: guard rt_smem_setname() against a NULL nameyi chen
rt_smem_setname() dereferenced name[index] without checking for NULL first. Some callers legitimately pass an unnamed allocation through with a NULL name, which crashed instead of just leaving the trace field blank. Treat a NULL name the same as an empty string, so the existing fill-with-spaces loop below handles it without duplicating that logic. Fixes #9793 Signed-off-by: yi chen <[email protected]>
2025-06-25doxygen: group name all in lowcaseChen Wang
This patch only updated the groups defined in documentation/0.doxygen. Other groups will be moved into documentation/0.doxygen and updated at that time. Signed-off-by: Chen Wang <[email protected]>
2025-02-15doxygen: add prefix for groups (#9991)Chen Wang
* doxygen: add prefix for groups Add "group_" prefix to doxygen group names. This makes it easier to grep with group name later. This patch only modifies the groups defined in the pathes of INPUT of documentation/Doxyfile: INPUT = . \ ../src \ ../include \ ../components/finsh \ ../components/drivers/include/drivers \ ../components/drivers/clk \ ../components/dfs/dfs_v2/src \ ../components/dfs/dfs_v2/include Other groups are not touched. Signed-off-by: Chen Wang <[email protected]> * ci: fixed error report when run file_check.py Such as: - "please delete extra space at the end of this line." - "the RT-Thread error code should return negative value. e.g. return -RT_ERROR" Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
2024-09-01feat: kernel/libcpu: fit into ilp32dShell
2024-04-27[mem]When using SLAB, calls to memcheck and memtrace will be abnormal (#8862)wdfk-prog
* [mem]When using SLAB, calls to memcheck and memtrace will be abnormal * [mem]The memtrace printing system does not match the display
2024-04-18[mem] Remove useless code And Update mem documentationwdfk-prog
2024-04-13[mem] Modify macro definitions for better code readingwdfk-prog
2024-02-20[ci] fix errors under strick compiling modeMeco Man
2024-02-19[kernel] fix some strict compiling warningsMeco Man
2023-07-09[debug] remove RT_DEBUG_xxxMeco Man
remove RT_DEBUG_THREAD RT_DEBUG_SCHEDULER RT_DEBUG_IPC RT_DEBUG_TIMER RT_DEBUG_IRQ RT_DEBUG_MEM RT_DEBUG_SLAB RT_DEBUG_MEMHEAP
2023-06-29[include][dbg]update: no longer use RT_DEBUG_LOG in rtdebug.h (#7750)Shicheng Chu
2023-05-11[bsp][phytium]适配rt-thread5.0.0 版本 (#7441)huanghe
Co-authored-by: 朱耿宇 <[email protected]>
2023-04-04[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)Shicheng Chu
2023-02-02[doxygen] Fix some warnings in doxygen (#6899)tuduweb
2022-09-27修复低概率终端无法输入问题 (#6464)Tangyuxin
* [ulog] Fix the problem that the terminal cannot input * [mem] Fix NULL pointer access
2022-08-02Fix some compilation warning (#5744)dongly
* Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <[email protected]>
2022-06-22[kernel][mem.c] tighten size before check with mem_size_alignedrewine
2022-04-20uniform code writing-disable interruptthewon86
2021-12-16分离内存分配接口与内存分配算法 (#5175)Tangyuxin
* [kernel][mem] Multiple instances of small memory allocation algorithm * [kernel][mem] Change small memory management algorithm memory header flag * [kernel][mem] Fix assertion problem * [kernel][slab] Multiple instances of slab memory management algorithm * [kernel][memheap] Remove rt_malloc/rt_free/rt_realloc and other related memory interfaces * [kernel][mem] Clean up memory space of small memory management objects * [kernel][kservice] Add memory application interface and thread protection interface * [kernel][kservice] Fix function return value problem * [kernel][memheap] Optimize memheaptrace print * [kernel][memheap] Support best mode * [kernel][memory] Remove semaphore lock * [kernel][memheap] Add locked flag * [kernel][memory] Support malloc memory in interrupt * [kernel][memheap] Add 'memheapcheck' cmd * [kernel][mem] Fix failure to request full memory * [kernel][memheap] Fix compilation warning * [kernel][mem] Fix mem realloc ASSERT * [examples][testcases] Add small mem testcase * [examples][mem_tc] Modify test memory size * [examples][testcases] Add slab memory management algorithm test case * [examples][testcases] fix small memory management algorithm test case * [kernel][memory] Adjusting memory allocation algorithm object definition and interface * [kernel][memory] Fix compilation warning * [examples][utest] Fix mem test case * [examples][utest] fix slab test case * [utest][testcases] Shorten test time * [kernel][memory] Formatting code * [examples][utest] Adjust test run time * [examples][utest] Formatting code * [bsp] update all rtconfig.h
2021-09-11[kernel] update commentsyangjie
2021-09-10[kernel]update formatyangjie
2021-09-10[kernel]Normalized kernel API annotationyangjie
2021-06-13Merge pull request #4785 from mysterywolf/endifguo
[kernel] 补充endif后缀注释
2021-06-11[kernel] 补充endif后缀注释(4)Meco Man
2021-06-07[bug][kernel][heap] 将内存堆保护机制由FIFO改为PRIOMeco Man
2021-03-08[kernel]auto formattedMeco Man
2020-03-27Update mem.cgreed-island
rt_realloc may cause <lfree> change, if we don't change <lfree> timely, it may cause memory leakage
2019-02-12[Kernel] Code cleanup for compiling warning.Bernard Xiong
2018-10-26[Kernel] Add 64bit CPU support.Bernard Xiong
2018-10-23[kernel][mem] Improve some ISR check range.armink
2018-09-25[Kernel] Adjust the copyright informationBernard Xiong
2018-09-14[Kernel] Update to Apache License v2.0Bernard Xiong
Update license for RT-Thread kernel.
2018-02-24fix code styleemlslxl
2017-12-22[Kernel] Add memory trace for small memory managementBernard Xiong
2017-09-15根据documentation/coding_style_cn.txt约定 ↵emlslxl
对内核src和include目录下的文件代码进行格式化
2017-08-14[Kernel] Fix rt_realloc issue when new size is 0.armink
2016-08-19Correct comments about doxygen formatdogandog
chang /*@{*/ to /**@{*/ and /*@}*/ to /**@}*/
2015-09-24[Kernel] mark the free mem block with HEAP_MAGIC.Bernard Xiong
2014-09-11[Kernel] comments clean up.bernard
2013-06-24Embedded GPLv2 license.Bernard Xiong
2012-12-29Add RT_USING_MEMHEAP_AS_HEAP feature: system can use "heap" memheap as ↵[email protected]
system default memory heap. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2554 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-25fixed coding style in src/mem.c[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2523 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-20fixed the coding style of RT_DEBUG_LOG[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2500 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-27split export symbols from rtm.c to each file[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2263 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-17unify the coding style of kerneldzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-21cleanup kernel codedzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1715 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-08fixed the scheduling issue in rt_thread_startup; changed the end of line to ↵bernard.xiong
UNIX style. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1703 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-15because the sethook operation is invoked only in system initialization, the ↵[email protected]
interrupt protect is removed. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1504 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-14change the RT_DEBUG_NOT_REENT to RT_DEBUG_NOT_IN_INTERRUPT.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1503 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-12Add reentrance check. Put kernel debug switch together.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316