* alloc.c (GC_collect_or_expand): Output heap size in WARN()
(before returning FALSE) for convenience.
+2009-09-17 Ivan Maidanski <ivmai@mail.ru>
+
+ * alloc.c (GC_collect_or_expand): Output heap size in WARN()
+ (before returning FALSE) for convenience.
+
2009-09-17 Ivan Maidanski <ivmai@mail.ru>
(ivmai139.diff)
GC_gcollect_inner();
} else {
# if !defined(AMIGA) || !defined(GC_AMIGA_FASTALLOC)
- WARN("Out of Memory! Returning NIL!\n", 0);
+ WARN("Out of Memory! Heap size: %" GC_PRIdPTR " MiB."
+ " Returning NIL!\n",
+ (GC_heapsize - GC_unmapped_bytes) >> 20);
# endif
return(FALSE);
}