--- parser3/src/main/pa_memory.C 2003/04/02 10:44:38 1.1.2.5.2.12 +++ parser3/src/main/pa_memory.C 2005/08/05 13:03:02 1.5.14.1 @@ -1,21 +1,21 @@ /** @file Parser: memory reference counting classes. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MEMORY_C="$Date: 2003/04/02 10:44:38 $"; +static const char * const IDENT_MEMORY_C="$Date: 2005/08/05 13:03:02 $"; #include "pa_sapi.h" #include "pa_common.h" void *pa_fail_alloc(const char* what, size_t size) { #ifdef PA_DEBUG_DISABLE_GC - SAPI::abort("out of memory (in pa_fail_alloc)"); + SAPI::die("out of memory (in pa_fail_alloc)"); #else - SAPI::abort("out of memory: failed to %s %u bytes. " - "heap_used=%lu, heap_free=%lu, bytes_since_gc=%lu, total_bytes=%lu", + SAPI::die("out of memory: failed to %s %u bytes. " + "heap_used=%u, heap_free=%u, bytes_since_gc=%u, total_bytes=%u", what, size, GC_get_heap_size(), GC_get_free_bytes(),