Commit 27e4d722 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Add some comments.

parent 7a5a4654
...@@ -17,7 +17,7 @@ void memcheck() ...@@ -17,7 +17,7 @@ void memcheck()
0x55AA55AA, 0x55AA55AA,
}; };
unsigned primes[] = { 3, 7, 31, 127 }; unsigned primes[] = { 3, 7, 31, 127 };
size_t space = 512*1024; size_t space = 512*1024; // Allocated test memory space starts at 512K
void *p = malloc(space); void *p = malloc(space);
int i; int i;
...@@ -26,7 +26,7 @@ void memcheck() ...@@ -26,7 +26,7 @@ void memcheck()
free(p); free(p);
printf("."); printf(".");
fflush(stdout); fflush(stdout);
space += 1024*1024; space += 1024*1024; // test memory increases in 1MB increments
p = malloc(space); p = malloc(space);
} }
space -= 1024*1024; space -= 1024*1024;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment