/** @file
Parser: memory reference counting classes.
Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
*/
static const char* IDENT_MEMORY_C="$Date: 2003/03/20 13:09:54 $";
#include "pa_sapi.h"
void *pa_fail_alloc(const char* what, size_t size) {
SAPI::abort("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(),
GC_get_free_bytes(),
GC_get_bytes_since_gc(),
GC_get_total_bytes()
);
// never reached
return 0;
}
E-mail: