[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Garbage collection
- From: "tom7ca" <tmb-yahoo-egroups@...>
- Date: Wed, 30 Oct 2002 15:32:22 -0000
> Our own user data types are also under control
> of such a memory manager. There
> is no mallocing and freeing going on while
> the program runs. We are also
> using a pseudo reference counting system, that
> collects incrementally so
> there is no hit for chained objects.
Yes, this is quite common. I have written that kind of
code, too, because in C, you simply can't do much better.
But that doesn't make it good engineering. The kind
of allocator you describe is an inefficient, non-interoperable,
General purpose, efficient, real-time memory management is a
hard problem. The problem is hard enough that it
should be solved once in the runtime.