【转载】简单分析malloc和free源码实现
【参考】
1)具体逻辑
https://blog.csdn.net/c_base_jin/article/details/96032599
2)malloc和free的逻辑
https://www.cnblogs.com/lit10050528/p/8619977.html
【malloc和free】
1)malloc申请内存增加了header字段
2)header结构体
大概十几个字节的头
3)free逻辑
【参考】
1)具体逻辑
https://blog.csdn.net/c_base_jin/article/details/96032599
2)malloc和free的逻辑
https://www.cnblogs.com/lit10050528/p/8619977.html
【malloc和free】
1)malloc申请内存增加了header字段
2)header结构体
大概十几个字节的头
3)free逻辑