Changeset 516 for trunk/src/dnmalloc.c
- Timestamp:
- Oct 31, 2016, 8:31:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dnmalloc.c
r481 r516 5296 5296 { 5297 5297 mstate av = get_malloc_state(); 5298 st ruct mallinfo mi;5298 static struct mallinfo mi; 5299 5299 unsigned int i; 5300 5300 mbinptr b; … … 5312 5312 check_malloc_state(); 5313 5313 5314 if (!av || av->top == 0) { 5315 return mi; 5316 } 5317 5314 5318 /* Account for top */ 5315 5319 avail = chunksize(av->top); … … 5362 5366 (CHUNK_SIZE_T)(HASHTABLESIZE / (1024*1024))); 5363 5367 fprintf(stderr, "max system bytes = %10lu\n", 5364 5368 (CHUNK_SIZE_T)(mi.usmblks)); 5365 5369 fprintf(stderr, "system bytes = %10lu (%10lu sbrked, %10lu mmaped)\n", 5366 5367 5368 5370 (CHUNK_SIZE_T)(mi.arena + mi.hblkhd), 5371 (CHUNK_SIZE_T)(mi.arena), 5372 (CHUNK_SIZE_T)(mi.hblkhd)); 5369 5373 fprintf(stderr, "in use bytes = %10lu\n", 5370 (CHUNK_SIZE_T)(mi.uordblks + mi.hblkhd)); 5371 5374 (CHUNK_SIZE_T)(mi.uordblks + mi.hblkhd)); 5372 5375 } 5373 5376
Note:
See TracChangeset
for help on using the changeset viewer.