Lines Matching refs:i
58 for( int i=0; i<take_out_count; ++i ) in TestBootstrapLeak() local
59 array[i] = a.allocate( alloc_size ); in TestBootstrapLeak()
64 for( int i=0; i<1000; i++) { in TestBootstrapLeak() local
67 i = -1; in TestBootstrapLeak()
76 for( int i=0; i<num_thread_runs; ++i ) in TestBootstrapLeak() local
87 for( int i=0; i<take_out_count; ++i ) in TestBootstrapLeak() local
88 a.deallocate( array[i], alloc_size ); in TestBootstrapLeak()
130 for (int i=0; i<NUM; i++) { in TestAlignedMsize() local
131 p[i] = (char*)scalable_aligned_malloc(allocSz[s], align[a]); in TestAlignedMsize()
132 CHECK_FAST(tbb::detail::is_aligned(p[i], align[a])); in TestAlignedMsize()
135 for (int i=0; i<NUM; i++) { in TestAlignedMsize() local
136 objSizes[i] = scalable_msize(p[i]); in TestAlignedMsize()
137 … CHECK_FAST_MESSAGE(objSizes[i] >= allocSz[s], "allocated size must be not less than requested"); in TestAlignedMsize()
138 memset(p[i], i, objSizes[i]); in TestAlignedMsize()
140 for (int i=0; i<NUM; i++) { in TestAlignedMsize() local
141 for (unsigned j=0; j<objSizes[i]; j++) in TestAlignedMsize()
142 CHECK_FAST_MESSAGE((((char*)p[i])[j] == i), "Error: data broken"); in TestAlignedMsize()
145 for (int i=0; i<NUM; i++) { in TestAlignedMsize() local
146 p[i] = (char*)scalable_aligned_realloc(p[i], 2*allocSz[s], align[a]); in TestAlignedMsize()
147 CHECK(tbb::detail::is_aligned(p[i], align[a])); in TestAlignedMsize()
148 memset((char*)p[i]+allocSz[s], i+1, allocSz[s]); in TestAlignedMsize()
150 for (int i=0; i<NUM; i++) { in TestAlignedMsize() local
152 CHECK_FAST_MESSAGE((((char*)p[i])[j] == i), "Error: data broken"); in TestAlignedMsize()
154 CHECK_FAST_MESSAGE((((char*)p[i])[j] == i+1), "Error: data broken"); in TestAlignedMsize()
156 for (int i=0; i<NUM; i++) in TestAlignedMsize() local
157 scalable_free(p[i]); in TestAlignedMsize()