(memory_cnew): Replaced throw_cacao_exception_exit with vm_abort.
(dump_release): Likewise.
* src/toolbox/util.c (_Jv_getcwd): Likewise.
Changes: Christian Thalinger
Edwin Steiner
Changes: Christian Thalinger
Edwin Steiner
- $Id: memory.c 5123 2006-07-12 21:45:34Z twisti $
+ $Id: memory.c 5126 2006-07-12 22:55:05Z twisti $
#include "vm/options.h"
#include "vm/statistics.h"
#include "vm/stringlocal.h"
#include "vm/options.h"
#include "vm/statistics.h"
#include "vm/stringlocal.h"
/*******************************************************************************
/*******************************************************************************
void *p = calloc(size, 1);
void *p = calloc(size, 1);
exceptions_throw_outofmemory_exit();
return p;
exceptions_throw_outofmemory_exit();
return p;
/* make the memory read-, write-, and executeable */
if (mprotect(p, codememsize, PROT_READ | PROT_WRITE | PROT_EXEC) == -1)
/* make the memory read-, write-, and executeable */
if (mprotect(p, codememsize, PROT_READ | PROT_WRITE | PROT_EXEC) == -1)
- throw_cacao_exception_exit(string_java_lang_InternalError,
- strerror(errno));
+ vm_abort("mprotect failed: %s", strerror(errno));
/* set global code memory pointer */
/* set global code memory pointer */
dst = realloc(src, len2);
dst = realloc(src, len2);
exceptions_throw_outofmemory_exit();
return dst;
exceptions_throw_outofmemory_exit();
return dst;
- if (size < 0 || size > di->useddumpsize)
- throw_cacao_exception_exit(string_java_lang_InternalError,
- "Illegal dump release size %d", size);
+ if ((size < 0) || (size > di->useddumpsize))
+ vm_abort("Illegal dump release size: %d", size);
/* reset the used dump size to the size specified */
/* reset the used dump size to the size specified */
- $Id: util.c 5104 2006-07-10 17:22:18Z twisti $
+ $Id: util.c 5126 2006-07-12 22:55:05Z twisti $
/* too small buffer or a more serious problem */
if (errno != ERANGE)
/* too small buffer or a more serious problem */
if (errno != ERANGE)
- throw_cacao_exception_exit(string_java_lang_InternalError,
- strerror(errno));
+ vm_abort("getcwd failed: %s", strerror(errno));
/* double the buffer size */
/* double the buffer size */