kernel-small-debug-user-concept.md 577 字节
Newer Older
D
duangavin123 已提交
1 2 3 4 5 6
# Basic Concepts<a name="EN-US_TOPIC_0000001085171134"></a>

The musl libc library of the debug version provides maintenance and test methods, such as memory leak check, heap memory statistics, memory corruption check, and backtrace, to improve the efficiency of locating memory problems in user space.

Instrumentation is performed on the  **malloc**  and  **free**  APIs to log key node information. When memory is requested and released by a program, the memory node integrity is checked. When the program ends, memory statistics are provided for identifying memory leaks.