摘要: http://duartes.org/gustavo/blog/post/how-the-kernel-manages-your-memory/After examining thevirtual address layoutof a process, we turn to the kernel a... 阅读全文
posted @ 2014-08-23 15:40 samu 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 基于过程procedural-based基于对象object-based面向对象object-oriented泛型技术generics 阅读全文
posted @ 2014-08-10 17:18 samu 阅读(310) 评论(0) 推荐(0) 编辑
摘要: /* Convert a UTF-8 string into a UCS-2 array. */void tcstrutftoucs(const char *str, uint16_t *ary, int *np){ assert(str && ary && np); const unsigne... 阅读全文
posted @ 2014-07-15 22:12 samu 阅读(261) 评论(0) 推荐(0) 编辑
摘要: from:http://www.addictivetips.com/mobile/android-partitions-explained-boot-system-recovery-data-cache-misc/Unless you have been using your Android pho... 阅读全文
posted @ 2014-05-27 13:23 samu 阅读(380) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-05-16 16:52 samu 阅读(1) 评论(0) 推荐(0) 编辑
摘要: .navbar .navline > .dropdown > .dropdown-menu:before { content: ''; display: inline-block; border-left: 7px solid transparent; border-righ... 阅读全文
posted @ 2014-05-06 21:02 samu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 在arena_s结构中,由NBINS数组将bin按照不同规模等级分别存储,每一个等级对应一颗run树,即一颗以chunk_map_t为节点的红黑树,而这些chunk_map_t节点实际分布于各个chunk的chunk_map_t数组中(每个chunk缺省为4M大小),由于chunk其实地址是chun... 阅读全文
posted @ 2014-04-23 23:45 samu 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 在当期用户的主目录下创建文件.vimrc,打开编辑内容(~/.vimrc):filetype onsyntax on 阅读全文
posted @ 2014-04-21 20:44 samu 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 在调用arena_malloc_small过程中,要根据申请内存大小,进行对齐计算,然后分配一个整块儿。算法如下:1)定义一个SIZE_CLASSES宏,它主要用于生成后面两个表,small_size2bin与arena_bin_info数组;2)根据small_size2bin查找当前申请内存块大... 阅读全文
posted @ 2014-04-20 17:09 samu 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 一、5种malloc方法1)tcache_alloc_small2)arena_malloc_small3)tcache_alloc_large4)arena_malloc_large5)huge_malloc//written in jemalloc_internal.h fileimalloct... 阅读全文
posted @ 2014-04-19 23:03 samu 阅读(2238) 评论(0) 推荐(0) 编辑