1 /*
2 * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
4 *
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
8 */
9 #include <cstddef>
10
11 #include "quota.h"
12
operator delete(void * p)13 void operator delete (void *p) throw()
14 {
15 Moe::Malloc_container::from_ptr(p)->free(p);
16 }
17
operator new(size_t s)18 void * operator new (size_t s)
19 {
20 // XXX alignment?
21 return Moe::Moe_alloc::allocator()->alloc(s, 8);
22 }
23