c++ - Use all available memory on iPad -


i'm trying make app uses available memory on ipad intentionally bog down can test few other things when there limited memory.

currently i'm using code works, xcode stops me short error can't allocate region. (stops me @ 1.4/4 gb.)

while(1) {     void *m = malloc(1024*1024);     memset(m,0,1024*1024); } 

i want use memory can, , hold onto memory until stop. there better way go this?

try use mmap map_locked


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -