
内存管理
春泥面包
这个作者很懒,什么都没留下…
展开
-
Why you should use talloc for your next project
Why you should use talloc for your next projectMemory management is hard. This is one of the first things a programmer learns (usually by trial and much error) when they leave academia and get out into转载 2016-12-01 16:23:58 · 398 阅读 · 0 评论 -
实现一个简单的malloc
原文: http://www.ibm.com/developerworks/cn/linux/l-memory/ 参考: http://www.geeksforgeeks.org/memory-layout-of-c-program/C程序内存布局C程序的内存布局如下图所示: heap图中的heap就是堆空间,它的开始位置位于bss段的最后(可以调用sbrk(0)获取heap的起始地址,原原创 2016-12-01 15:41:20 · 1285 阅读 · 0 评论 -
Talloc
https://talloc.samba.org/talloc/doc/html/index.html阅读FreeRadius源码时,发现内存管理使用的是talloc,而不是malloc。现在来学习一下怎么使用talloc。What is talloc Talloc is a hierarchical, reference counted memory pool system with des翻译 2016-11-30 22:03:38 · 3860 阅读 · 0 评论