MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / operator new

Method operator new

src/yvalve/why.cpp:141–141  ·  view source on GitHub ↗

Fool-proof requested by Alex Private memory operators to be sure that this class is used in heap only with launcher

Source from the content-addressed store, hash-verified

139 // Fool-proof requested by Alex
140 // Private memory operators to be sure that this class is used in heap only with launcher
141 void* operator new (size_t s, Firebird::MemoryPool& pool ALLOC_PARAMS) { return pool.allocate(s ALLOC_PASS_ARGS); }
142 void operator delete (void* mem, Firebird::MemoryPool& ALLOC_PARAMS) { MemoryPool::globalFree(mem); }
143 void operator delete (void* mem) { MemoryPool::globalFree(mem); }
144

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected