内存管理
EINTR
Talk is cheap. Show me the code.
展开
-
c++ 内存管理 3 malloc/free 的简单实现(隐式链表/显式链表)
malloc/free#include <iostream>#include <cstdint>using namespace std;int main(int argc, char *argv[]) { int b1[4]{1, 2, 3, 4}; // 16 align int b2[5]{5, 4, 3, 2, 1}; cout << b1 << " " << b2 << endl; //cout原创 2021-12-26 19:38:06 · 925 阅读 · 0 评论 -
c++ 内存管理 2 allocator——pool_allocator
std::allocator原创 2021-12-29 16:41:54 · 3341 阅读 · 0 评论 -
c++ 内存管理 1 primitives
内存管理对于极致的性能至关重要 本专栏以cpp内存管理为例 粗浅地讨论一下1 new / delete 2 allocator 3 malloc/free原创 2021-12-25 17:47:55 · 758 阅读 · 0 评论