P
Peter Duniho
Peter said:I have not once claimed that the garbage collector does anything inThe garbage collector actually does neither of what you claim that it
has to.
particular. [...]
Ok, then let me quoute you:
"In the .NET paradigm, the collector has to either scan the entire
collection of data for each object it wants to move, or it has to
maintain some sort of hash table or other fast-access data structure in
which it stores (at least temporarily) all of the current references to
each given object (which is essentially the "reference reference table"
method anyway)."
There you claim that there is only two possible ways for the garbage
collector to work.
Yes. The garbage collector must have some means of identifying references
to update. Either it looks for them each time, or has some data structure
that provides that information without requiring it to look for them each
time. This is a logical necessity. There are only two possibilities:
determine the references each time, or determine them ahead of time.
Making the trivially true statement that the garbage collector must do one
or the other doesn't even come close to making a statement about how the
garbage collector actually works.
That said, you are clearly on a single-minded quest to find fault in
whatever I write. I see no need to continue this course of discussion
with you, as it's completely unproductive. It seems only to serve to feed
whatever need it is you have, and frankly that's not among my list of
things to achieve in this lifetime.
Pete