--- parser3/src/main/pa_memory.C 2003/04/02 07:29:21 1.1.2.5.2.11 +++ 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 07:29:21 $"; +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(), @@ -84,7 +84,7 @@ void* pa_gc_malloc_atomic(size_t size) { } void* pa_gc_realloc(void* user_ptr, size_t size) { - assert(1<0);//GC_is_visible(user_ptr)); + GC_is_visible(user_ptr); //printf("realloc: 0x%p -> %u\n", ptr, size); size=debug_size(size);