X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fmm%2Fnogc.c;h=13ad45953135410080684bc0b538cc89d0138839;hb=6fd72f4d63f219c79b2132dde9ec0aa5e6c1494b;hp=804fa593d7e6333fb3cf7c74d4ea11cadba00a60;hpb=a1159b52f19fb0e9272c1e80491fe90569179c2a;p=cacao.git diff --git a/src/mm/nogc.c b/src/mm/nogc.c index 804fa593d..13ad45953 100644 --- a/src/mm/nogc.c +++ b/src/mm/nogc.c @@ -1,6 +1,6 @@ /* 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 @@ -22,13 +22,7 @@ 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 $ */ @@ -44,14 +38,17 @@ #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 ***************************************************************/ @@ -73,7 +70,11 @@ void *heap_allocate(u4 size, bool references, methodinfo *finalizer) 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); @@ -113,7 +114,11 @@ void gc_init(u4 heapmaxsize, u4 heapstartsize) (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);