1 --- src/common/classes/alloc.h
2 +++ src/common/classes/alloc.h
4 inline static MemoryPool* getDefaultMemoryPool() { return Firebird::MemoryPool::processMemoryPool; }
6 // Global versions of operators new and delete
7 -inline void* operator new(size_t s) THROW_BAD_ALLOC
9 - return Firebird::MemoryPool::globalAlloc(s);
11 -inline void* operator new[](size_t s) THROW_BAD_ALLOC
13 - return Firebird::MemoryPool::globalAlloc(s);
15 +void* operator new(size_t s) THROW_BAD_ALLOC;
16 +void* operator new[](size_t s) THROW_BAD_ALLOC;
18 -inline void operator delete(void* mem) throw()
20 - Firebird::MemoryPool::globalFree(mem);
22 -inline void operator delete[](void* mem) throw()
24 - Firebird::MemoryPool::globalFree(mem);
26 +void operator delete(void* mem) throw();
27 +void operator delete[](void* mem) throw();
29 #ifdef DEBUG_GDS_ALLOC
30 inline void* operator new(size_t s, Firebird::MemoryPool& pool, const char* file, int line)
31 --- src/common/classes/alloc.cpp
32 +++ src/common/classes/alloc.cpp
33 @@ -2080,3 +2080,21 @@
36 } // namespace Firebird
38 +void* operator new(size_t s) THROW_BAD_ALLOC
40 + return Firebird::MemoryPool::globalAlloc(s);
42 +void* operator new[](size_t s) THROW_BAD_ALLOC
44 + return Firebird::MemoryPool::globalAlloc(s);
47 +void operator delete(void* mem) throw()
49 + Firebird::MemoryPool::globalFree(mem);
51 +void operator delete[](void* mem) throw()
53 + Firebird::MemoryPool::globalFree(mem);