Changeset 481 for trunk/src/t-test1.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/t-test1.c
r454 r481 230 230 if(m->size > 0) free(m->ptr); 231 231 m->ptr = (unsigned char *)memalign(sizeof(int) << r, size); 232 /* fprintf(stderr, "FIXME memalign %p\n", m->ptr); */233 232 ++n_memalign; 234 233 } else if(r < 20) { /* calloc */ … … 246 245 #endif 247 246 ++n_calloc; 248 /* fprintf(stderr, "FIXME calloc %p\n", m->ptr); */249 247 } else if(r < 100 && m->size < REALLOC_MAX) { /* realloc */ 250 248 if(m->size == 0) m->ptr = NULL; 251 249 m->ptr = realloc(m->ptr, size); 252 /* fprintf(stderr, "FIXME realloc %p\n", m->ptr); */253 250 ++n_realloc; 254 251 } else { /* plain malloc */ 255 252 if(m->size > 0) free(m->ptr); 256 253 m->ptr = (unsigned char *)malloc(size); 257 /* fprintf(stderr, "FIXME malloc %p\n", m->ptr); */258 254 ++n_malloc; 259 255 }
Note:
See TracChangeset
for help on using the changeset viewer.