--- parser3/src/main/pa_memory.C 2003/04/02 07:29:21 1.1.2.5.2.11 +++ parser3/src/main/pa_memory.C 2003/07/22 08:19:24 1.1.2.5.2.13 @@ -5,16 +5,16 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MEMORY_C="$Date: 2003/04/02 07:29:21 $"; +static const char* IDENT_MEMORY_C="$Date: 2003/07/22 08:19:24 $"; #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. " + SAPI::die("out of memory: failed to %s %u bytes. " "heap_used=%lu, heap_free=%lu, bytes_since_gc=%lu, total_bytes=%lu", what, size, GC_get_heap_size(), @@ -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);