[gclist] Running out of memory with GC_malloc
Sun, 30 Apr 2000 14:21:21 +1000
On 29-Apr-2000, John Palmieri <email@example.com> wrote:
> I am having a probelm with the BDW garbage collector. I had been
> creating massive amounts of C++ objects causing my heap to grow beyond
> its allocated size. I fixed this by adding the line:
> This worked until I started to load PNG graphic images using GC_malloc.
For large bitmaps, and other objects containing lots of semi-random
bits but no pointers, you should use GC_malloc_atomic() rather than
(If you have objects that contain lots of semi-random data plus a few
pointers, you could also use GC_malloc_explicitly_typed().)
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger email@example.com | -- the last words of T. S. Garp.