/* src/mm/nogc.c - allocates memory through malloc (no GC)
- Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
+ Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
J. Wenninger, Institut f. Computersprachen - TU Wien
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Contact: cacao@cacaojvm.org
-
- Authors: Christian Thalinger
-
- Changes:
-
- $Id: nogc.c 6034 2006-11-21 21:02:30Z twisti $
+ $Id: nogc.c 7596 2007-03-28 21:05:53Z twisti $
*/
#include "mm/gc-common.h"
#include "mm/memory.h"
+
#include "toolbox/logging.h"
-#include "vm/options.h"
+
#include "vm/builtin.h"
#include "vm/exceptions.h"
#include "vm/global.h"
-#include "vm/loader.h"
#include "vm/stringlocal.h"
+#include "vmcore/loader.h"
+#include "vmcore/options.h"
+
/* global stuff ***************************************************************/
mmapptr = (void *) ((ptrint) mmapptr + size);
if (mmapptr > mmaptop)
- exceptions_throw_outofmemory_exit();
+<<<<<<< .working
+ vm_abort("heap_allocate: out of memory");
+=======
+ exceptions_throw_outofmemoryerror();
+>>>>>>> .merge-right.r7379
MSET(m, 0, u1, size);
(off_t) 0);
if (mmapptr == MAP_FAILED)
- exceptions_throw_outofmemory_exit();
+<<<<<<< .working
+ vm_abort("gc_init: out of memory");
+=======
+ exceptions_throw_outofmemoryerror();
+>>>>>>> .merge-right.r7379
mmapsize = heapmaxsize;
mmaptop = (void *) ((ptrint) mmapptr + mmapsize);