Changeset 2ff42f4
- Timestamp:
- Aug 4, 2020, 7:35:19 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 71dfe49
- Parents:
- 25cbd99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/heap.cfa
r25cbd99 r2ff42f4 10 10 // Created On : Tue Nov 6 17:54:56 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 3 16:40:06202013 // Update Count : 5 412 // Last Modified On : Tue Aug 4 06:36:17 2020 13 // Update Count : 56 14 14 // 15 15 … … 354 354 for ( size_t a = libAlign() + libAlign(); a <= limit; a += a ) { // generate powers of 2 355 355 // initial N byte allocation 356 char * area = (char *)cmemalign( a, 1, amount );// aligned N-byte allocation356 char * area = (char *)cmemalign( a, 1, amount ); // aligned N-byte allocation 357 357 //sout | alignments[a] | area | endl; 358 358 if ( (size_t)area % a != 0 || malloc_alignment( area ) != a ) { // check for initial alignment … … 370 370 //sout | i | area | endl; 371 371 if ( (size_t)area % a * 2 != 0 || malloc_alignment( area ) != a * 2 ) { // check for initial alignment 372 abort( "cmemalign/realloc with align/free bad alignment %p % jd %jd", area, malloc_alignment( area ), a * 2 );372 abort( "cmemalign/realloc with align/free bad alignment %p %zd %zd", area, malloc_alignment( area ), a * 2 ); 373 373 } // if 374 374 if ( area[s - 1] != '\0' || area[s - 1] != '\0' ||
Note: See TracChangeset
for help on using the changeset viewer.