Home
last modified time | relevance | path

Searched refs:tracking_allocator (Results 1 – 8 of 8) sorted by relevance

/xnu-12377.81.4/tests/safe_allocation_src/
H A Dassign.move.cpp26 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 …]
H A Dctor.move.cpp23 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 …]
H A Dswap.cpp24 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 …]
H A Dtest_utils.h43 struct tracking_allocator { struct
68 const auto result = tracking_allocator::allocate(n); in allocate_zero() argument
82 std::size_t tracking_allocator::allocated_size = 0; argument
83 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…
H A Dctor.allocate.cpp28 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()
H A Ddtor.cpp29 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()
H A Dctor.adopt.cpp19 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()
H A Dassign.nullptr.cpp21 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()