Searched refs:tracking_allocator (Results 1 – 8 of 8) sorted by relevance
26 tracking_allocator::reset(); in tests()35 CHECK(!tracking_allocator::did_allocate); in tests()36 CHECK(tracking_allocator::deallocated_size == 20 * sizeof(T)); in tests()37 tracking_allocator::reset(); in tests()39 CHECK(tracking_allocator::deallocated_size == 10 * sizeof(T)); in tests()40 tracking_allocator::reset(); in tests()42 CHECK(!tracking_allocator::did_deallocate); in tests()51 tracking_allocator::reset(); in tests()60 CHECK(!tracking_allocator::did_allocate); in tests()61 CHECK(tracking_allocator::deallocated_size == 20 * sizeof(T)); in tests()[all …]
23 tracking_allocator::reset(); in tests()29 CHECK(!tracking_allocator::did_allocate); in tests()35 CHECK(tracking_allocator::did_deallocate); in tests()36 tracking_allocator::reset(); in tests()38 CHECK(!tracking_allocator::did_deallocate); in tests()43 tracking_allocator::reset(); in tests()49 CHECK(!tracking_allocator::did_allocate); in tests()55 CHECK(tracking_allocator::did_deallocate); in tests()56 tracking_allocator::reset(); in tests()58 CHECK(!tracking_allocator::did_deallocate); in tests()[all …]
24 tracking_allocator::reset(); in tests()28 CHECK(!tracking_allocator::did_allocate); in tests()29 CHECK(!tracking_allocator::did_deallocate); in tests()41 tracking_allocator::reset(); in tests()45 CHECK(!tracking_allocator::did_allocate); in tests()46 CHECK(!tracking_allocator::did_deallocate); in tests()58 tracking_allocator::reset(); in tests()62 CHECK(!tracking_allocator::did_allocate); in tests()63 CHECK(!tracking_allocator::did_deallocate); in tests()74 tracking_allocator::reset(); in tests()[all …]
43 struct tracking_allocator { struct68 const auto result = tracking_allocator::allocate(n); in allocate_zero() argument82 std::size_t tracking_allocator::allocated_size = 0; argument83 std::size_t tracking_allocator::deallocated_size = 0;84 bool tracking_allocator::did_allocate = false;85 bool tracking_allocator::did_deallocate = false;106 using tracked_safe_allocation = libkern::safe_allocation<T, tracking_allocator, assert_trapping_pol…
28 tracking_allocator::reset(); in tests()31 CHECK(tracking_allocator::allocated_size == 10 * sizeof(T)); in tests()37 CHECK(tracking_allocator::deallocated_size == 10 * sizeof(T)); in tests()43 tracking_allocator::reset(); in tests()50 CHECK(!tracking_allocator::did_allocate); in tests()52 CHECK(!tracking_allocator::did_deallocate); in tests()
29 tracking_allocator::reset(); in tests()31 CHECK(tracking_allocator::deallocated_size == 10 * sizeof(T)); in tests()38 tracking_allocator::reset(); in tests()40 CHECK(!tracking_allocator::did_deallocate); in tests()
19 T* memory = reinterpret_cast<T*>(tracking_allocator::allocate(10 * sizeof(T))); in tests()20 tracking_allocator::reset(); in tests()23 CHECK(!tracking_allocator::did_allocate); in tests()29 CHECK(tracking_allocator::deallocated_size == 10 * sizeof(T)); in tests()
21 tracking_allocator::reset(); in tests()27 CHECK(tracking_allocator::did_deallocate); in tests()33 tracking_allocator::reset(); in tests()39 CHECK(!tracking_allocator::did_deallocate); in tests()