Re: the garbage collector
From: Skybuck Flying (nospam_at_hotmail.com)
Date: 04/08/04
- Next message: Rob Kennedy: "Re: Evaluating Exceptions, Try Except and Try Finally"
- Previous message: Skybuck Flying: "Re: the garbage collector"
- In reply to: Rob Kennedy: "Re: the garbage collector"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 8 Apr 2004 19:57:39 +0200
"Rob Kennedy" <me3@privacy.net> wrote in message
news:c53vkk$2adbrt$2@ID-220940.news.uni-berlin.de...
> Skybuck Flying wrote:
> > Are linked lists still possible ?
> >
> > I think so... but all the references of the list will probably be
updated...
> > that could become expensive with large lists :) (many nodes :) )
>
> Linked lists are still possible. Each node object would hold a reference
> to the next node object. If the garbage collector at some point decides
> that it needs to move one of those nodes, it would also update the
> reference held by the other node. Totally and completely transparent to
> the programmer since the exact value of the reference is unimportant.
Hmm.. Yes, good point... It would probably only need to move one single node
and update only a few references.
Probably the node that was added to the list... since all the other nodes
would probably already exist in generation 1 or 2 :)
Skybuck =D
- Next message: Rob Kennedy: "Re: Evaluating Exceptions, Try Except and Try Finally"
- Previous message: Skybuck Flying: "Re: the garbage collector"
- In reply to: Rob Kennedy: "Re: the garbage collector"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|