摘要: There are times when you want to wrap a library function in order to provide some additional functionality. A common example of this is wrapping the standard library’s malloc() and free() so that you can easily track memory allocations in your program. While there are several techniques for wrapping library functions, one well-known method is using dlsym() with RTLD_NEXT to locate the wrapped function’s address so that you can correctly forward calls to it. 阅读全文
posted @ 2017-08-11 20:53 CobbLiu 阅读(945) 评论(0) 推荐(0) 编辑
摘要: Maybe virtual memory over commit is prevented in your system. If it is prevented, then the virtual memory can not be bigger than sizeof physical RAM + 阅读全文
posted @ 2017-08-11 15:24 CobbLiu 阅读(773) 评论(0) 推荐(0) 编辑