http://blog.csdn.net/qihuaheng/article/details/6755328 转载于:https://www.cnblogs.com/M4ster/p/mem_mgr.html