Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff vmalloc.c @ 82:21c95d402fe6
malloc_touch
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 11 Jul 2011 20:39:03 +0200 |
| parents | a214c84dff4e |
| children | ca154ebe2b6c dbfc8382d546 c1784868dcea |
line diff
1.1 --- a/vmalloc.c Mon Jul 11 20:35:54 2011 +0200 1.2 +++ b/vmalloc.c Mon Jul 11 20:39:03 2011 +0200 1.3 @@ -451,7 +451,7 @@ 1.4 firstChunk = malloc( MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE ); 1.5 if( firstChunk == NULL ) {printf("malloc error\n"); exit(1);} 1.6 1.7 - Touch memory to avoid page faults 1.8 + //Touch memory to avoid page faults 1.9 void *ptr,*endPtr; 1.10 endPtr = (void*)firstChunk+MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE; 1.11 for(ptr = firstChunk; ptr < endPtr; ptr+=PAGE_SIZE)
