Lines Matching defs:addr1
627 void* addr1 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
628 printf("%p (%s)\n", addr1, addr1==(void*)-1 ? "failed" : "OK"); fflush(stdout);
630 printf("touching %p...\n", addr1); fflush(stdout);
631 memset(addr1, 0x55, size);
634 madvise(addr1, size, MADV_DONTNEED);
636 printf("reading back %p...\n", addr1); fflush(stdout);
637 if (*(long*)addr1 == 0) {
639 } else if (*(long*)addr1 == 0x55555555) {
655 printf("touching %p...\n", addr1); fflush(stdout);
656 memset(addr1, 0x55, size);
658 printf("unmap %p ...\n", addr1); fflush(stdout);
659 munmap(addr1, size);