Skip to content

Instantly share code, notes, and snippets.

@ryuichiueda
Created February 14, 2026 01:18
Show Gist options
  • Select an option

  • Save ryuichiueda/0517e119dba674fdd695013bbacc9ce8 to your computer and use it in GitHub Desktop.

Select an option

Save ryuichiueda/0517e119dba674fdd695013bbacc9ce8 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <unistd.h>
int main() {
char *p = malloc(1024*1024*1024); //1GiBメモリ確保
for(int i=0;i<1024*1024*1024/4096;i++)
p[i] = 111;
exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment