?? allocer.c
字號:
/* (c) John Berthels 2005 <jjberthels@gmail.com>. See COPYING for license */#include <stdlib.h>#include <unistd.h>int main(void){ const int malloc_size = 100 * 4096; const int chunk_size = 2048; /* large allocs don't come from sbrk() */ int total_size; for (total_size = 0; total_size < malloc_size; total_size += chunk_size) { malloc(chunk_size); } sleep(60); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -