Lines Matching refs:Allocator
44 // Features of the Allocator root class
46 bool Allocator::operator == (const Allocator &alloc) const throw()
51 Allocator::~Allocator()
57 // Standard Allocator variants.
58 // Note that all calls to Allocator::standard(xxx) with the same xxx argument
62 struct DefaultAllocator : public Allocator {
81 Allocator &Allocator::standard(UInt32 request)
134 void *CssmHeap::operator new (size_t size, Allocator *alloc) throw(std::bad_alloc)
137 alloc = &Allocator::standard();
138 size = alignUp(size, alignof<Allocator *>());
139 size_t totalSize = size + sizeof(Allocator *);
141 *(Allocator **)increment(addr, size) = alloc;
145 void CssmHeap::operator delete (void *addr, size_t size, Allocator *alloc) throw()
152 void *end = increment(addr, alignUp(size, alignof<Allocator *>()));
153 (*(Allocator **)end)->free(addr);