Home
last modified time | relevance | path

Searched refs:globalMemCounter (Results 1 – 25 of 42) sorted by relevance

12

/external/libcxx/test/std/utilities/memory/default.allocator/allocator.members/
Dallocate.pass.cpp55 globalMemCounter.reset(); in test_aligned()
60 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_aligned()
62 globalMemCounter.last_new_size = 0; in test_aligned()
63 globalMemCounter.last_new_align = 0; in test_aligned()
66 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_aligned()
67 assert(globalMemCounter.checkNewCalledEq(1)); in test_aligned()
68 assert(globalMemCounter.checkAlignedNewCalledEq(ExpectAligned)); in test_aligned()
69 assert(globalMemCounter.checkLastNewSizeEq(3 * sizeof(T))); in test_aligned()
70 assert(globalMemCounter.checkLastNewAlignEq(ExpectAligned ? Align : 0)); in test_aligned()
72 globalMemCounter.last_delete_align = 0; in test_aligned()
[all …]
Dconstruct.pass.cpp61 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
64 globalMemCounter.last_new_size = 0; in main()
67 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
68 assert(globalMemCounter.checkLastNewSizeEq(3 * sizeof(int))); in main()
72 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
76 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
80 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
84 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
88 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
92 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
[all …]
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/
Dswap.pass.cpp62 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
67 assert(globalMemCounter.checkOutstandingNewEq(2)); in main()
72 assert(globalMemCounter.checkOutstandingNewEq(2)); in main()
77 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
82 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
87 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
92 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
97 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
102 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
107 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
[all …]
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/
Dcopy_move.pass.cpp56 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
60 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
65 assert(globalMemCounter.checkOutstandingNewEq(2)); in main()
70 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
73 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
77 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
81 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
84 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
88 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
94 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
[all …]
Dalloc_F.pass.cpp43 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject()
47 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject()
50 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_FunctionObject()
56 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject()
63 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
66 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
68 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
74 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
80 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass()
83 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass()
[all …]
Dalloc_function.pass.cpp31 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject()
36 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_FunctionObject()
43 assert(globalMemCounter.checkOutstandingNewEq(2)); in test_FunctionObject()
49 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject()
55 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
60 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
66 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
71 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction()
77 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass()
82 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass()
[all …]
Dcopy_assign.pass.cpp53 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
57 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
63 assert(globalMemCounter.checkOutstandingNewEq(2)); in main()
68 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
71 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
76 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
80 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
83 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
88 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
121 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
[all …]
DF.pass.cpp66 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
70 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
75 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
78 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
82 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
86 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
93 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
DF_assign.pass.cpp69 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
74 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
79 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
83 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
87 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
92 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
100 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
Dnullptr_t_assign.pass.cpp52 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
56 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
60 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
65 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
69 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
Dalloc_rfunction.pass.cpp60 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
64 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
69 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
75 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/
Dswap.pass.cpp63 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
71 assert(globalMemCounter.checkOutstandingNewEq(2)); in main()
76 assert(globalMemCounter.checkOutstandingNewEq(2)); in main()
81 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
89 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
94 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
99 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
107 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
112 assert(globalMemCounter.checkOutstandingNewEq(1)); in main()
117 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
[all …]
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/
Dctor.pass.cpp35 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main()
37 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
42 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main()
44 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
49 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main()
51 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
56 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main()
58 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/
Ddtor.pass.cpp25 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main()
27 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main()
31 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main()
33 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main()
37 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main()
39 assert(globalMemCounter.checkDeleteArrayCalledEq(1)); in main()
/external/libcxx/test/std/localization/locales/locale/locale.cons/
Ddefault.pass.cpp62 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
64 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
66 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
68 ok = globalMemCounter.outstanding_new; in main()
70 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main()
72 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main()
74 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main()
76 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main()
/external/libcxx/test/std/localization/locale.stdcvt/
Dcodecvt_utf16.pass.cpp30 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
34 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
39 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main()
41 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
Dcodecvt_utf8.pass.cpp30 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
34 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
39 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main()
41 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
/external/libcxx/test/std/experimental/memory/memory.resource.global/
Dnew_delete_resource.pass.cpp83 globalMemCounter.reset(); in test_allocate_deallocate()
87 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_allocate_deallocate()
88 assert(globalMemCounter.checkLastNewSizeEq(50)); in test_allocate_deallocate()
91 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_allocate_deallocate()
92 assert(globalMemCounter.checkDeleteCalledEq(1)); in test_allocate_deallocate()
/external/libcxx/test/support/
Dcount_new.hpp356 MemCounter &globalMemCounter = *getGlobalMemCounter(); variable
438 if (globalMemCounter.disable_allocations == true) m_disabled = false; in DisableAllocationGuard()
439 if (m_disabled) globalMemCounter.disableAllocations(); in DisableAllocationGuard()
443 if (m_disabled) globalMemCounter.enableAllocations(); in release()
461 m_new_count_on_init(globalMemCounter.new_called), in RequireAllocationGuard()
462 m_outstanding_new_on_init(globalMemCounter.outstanding_new), in RequireAllocationGuard()
471 assert(globalMemCounter.checkOutstandingNewEq(static_cast<int>(m_outstanding_new_on_init))); in ~RequireAllocationGuard()
473 assert(globalMemCounter.checkNewCalledEq(static_cast<int>(Expect)) || in ~RequireAllocationGuard()
474 … (!m_exactly && globalMemCounter.checkNewCalledGreaterThan(static_cast<int>(Expect)))); in ~RequireAllocationGuard()
/external/libcxx/test/std/utilities/any/any.class/any.assign/
Dcopy.pass.cpp108 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self()
110 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self()
120 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self()
123 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self()
133 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_copy_assign_self()
136 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
Dmake_shared.pass.cpp79 int nc = globalMemCounter.outstanding_new; in main()
84 assert(globalMemCounter.checkOutstandingNewEq(nc+1)); in main()
100 nc = globalMemCounter.outstanding_new; in main()
104 assert(globalMemCounter.checkOutstandingNewEq(nc+1)); in main()
/external/libcxx/test/std/containers/sequences/list/list.modifiers/
Dinsert_iter_size_value.pass.cpp33 globalMemCounter.throw_after = 4; in test()
34 int save_count = globalMemCounter.outstanding_new; in test()
43 assert(globalMemCounter.checkOutstandingNewEq(save_count)); in test()
Dinsert_iter_value.pass.cpp35 globalMemCounter.throw_after = 0; in test()
36 int save_count = globalMemCounter.outstanding_new; in test()
45 assert(globalMemCounter.checkOutstandingNewEq(save_count)); in test()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
Dauto_ptr.pass.cpp64 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
69 globalMemCounter.throw_after = 0; in main()
96 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/
Denable_shared_from_this.pass.cpp92 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
118 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
123 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
147 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()

12