Lines Matching refs:ptrs
22 container ptrs; in alloc_series() local
26 ptrs.push_back ( p ); in alloc_series()
27 return ptrs; in alloc_series()
31 container ptrs; in alloc_series() local
35 ptrs.push_back ( p ); in alloc_series()
39 return ptrs; in alloc_series()
43 container ptrs; in alloc_series() local
50 ptrs.push_back ( p ); in alloc_series()
53 return ptrs; in alloc_series()
70 container ptrs; in exhaustion_test1() local
76 ptrs = alloc_series ( 32 ); in exhaustion_test1()
77 std::cout << "Allocated " << ptrs.size () << " 32 byte chunks" << std::endl; in exhaustion_test1()
79 for ( container::iterator iter = ptrs.begin (); iter != ptrs.end (); ++iter ) in exhaustion_test1()
85 ptrs = alloc_series ( 32 ); in exhaustion_test1()
86 std::cout << "Allocated " << ptrs.size () << " 32 byte chunks" << std::endl; in exhaustion_test1()
87 for ( container::reverse_iterator iter = ptrs.rbegin (); iter != ptrs.rend (); ++iter ) in exhaustion_test1()
93 ptrs = alloc_series ( 32 ); in exhaustion_test1()
94 std::cout << "Allocated " << ptrs.size () << " 32 byte chunks" << std::endl; in exhaustion_test1()
95 while ( ptrs.size () > 0 ) in exhaustion_test1()
96 fallback_free ( pop ( ptrs, ptrs.size () % 1 == 1 )); in exhaustion_test1()
101 container ptrs; in exhaustion_test2() local
107 ptrs = alloc_series ( 32, 1.5 ); in exhaustion_test2()
108 …std::cout << "Allocated " << ptrs.size () << " { 32, 48, 72, 108, 162 ... } byte chunks" << std::… in exhaustion_test2()
110 for ( container::iterator iter = ptrs.begin (); iter != ptrs.end (); ++iter ) in exhaustion_test2()
117 ptrs = alloc_series ( 32, 1.5 ); in exhaustion_test2()
118 …std::cout << "Allocated " << ptrs.size () << " { 32, 48, 72, 108, 162 ... } byte chunks" << std::… in exhaustion_test2()
119 for ( container::reverse_iterator iter = ptrs.rbegin (); iter != ptrs.rend (); ++iter ) in exhaustion_test2()
125 ptrs = alloc_series ( 32, 1.5 ); in exhaustion_test2()
126 …std::cout << "Allocated " << ptrs.size () << " { 32, 48, 72, 108, 162 ... } byte chunks" << std::… in exhaustion_test2()
127 while ( ptrs.size () > 0 ) in exhaustion_test2()
128 fallback_free ( pop ( ptrs, ptrs.size () % 1 == 1 )); in exhaustion_test2()
135 container ptrs; in exhaustion_test3() local
141 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
142 std::cout << "Allocated " << ptrs.size () << " chunks" << std::endl; in exhaustion_test3()
144 for ( container::iterator iter = ptrs.begin (); iter != ptrs.end (); ++iter ) in exhaustion_test3()
151 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
152 std::cout << "Allocated " << ptrs.size () << " chunks" << std::endl; in exhaustion_test3()
153 for ( container::reverse_iterator iter = ptrs.rbegin (); iter != ptrs.rend (); ++iter ) in exhaustion_test3()
159 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
160 std::cout << "Allocated " << ptrs.size () << " chunks" << std::endl; in exhaustion_test3()
161 while ( ptrs.size () > 0 ) in exhaustion_test3()
162 fallback_free ( pop ( ptrs, ptrs.size () % 1 == 1 )); in exhaustion_test3()