Home
last modified time | relevance | path

Searched refs:malloc_allocator (Results 1 – 4 of 4) sorted by relevance

/xnu-11215/tests/safe_allocation_src/
H A Doperator.subscript.cpp23 RawT* memory = reinterpret_cast<RawT*>(malloc_allocator::allocate(10 * sizeof(RawT))); in tests()
37 RawT* memory = reinterpret_cast<RawT*>(malloc_allocator::allocate(10 * sizeof(RawT))); in tests()
51 using Alloc = libkern::safe_allocation<RawT, malloc_allocator, tracking_trapping_policy>; in tests()
52 RawT* memory = reinterpret_cast<RawT*>(malloc_allocator::allocate(10 * sizeof(RawT))); in tests()
H A Dtest_utils.h21 struct malloc_allocator { struct
31 const auto result = malloc_allocator::allocate(n); in allocate_zero() argument
103 using test_safe_allocation = libkern::safe_allocation<T, malloc_allocator, assert_trapping_policy>;
H A Ddata.cpp24 T* memory = reinterpret_cast<T*>(malloc_allocator::allocate(10 * sizeof(T))); in tests()
30 T* memory = reinterpret_cast<T*>(malloc_allocator::allocate(10 * sizeof(T))); in tests()
H A Dsize.cpp26 T* memory = reinterpret_cast<T*>(malloc_allocator::allocate(10 * sizeof(T))); in tests()