Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] How does OCaml update references when values are moved by the GC?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Elias Gabriel Amaral da Silva <tolkiendili@g...>
Subject: Re: [Caml-list] How does OCaml update references when values are moved by the GC?
2010/10/29 Damien Doligez <damien.doligez@inria.fr>:
>
> On 2010-10-28, at 23:48, Jon Harrop wrote:
>
>> How does OCaml update references in the stacks and heap when values are
>> moved by the GC?
>
>
> They are updated by the GC, of course.

can't the GC just put a new reference for it in a data structure? it
has to physically move it?

(i think you are referring to moving data to the older generation; it
could be a tree or a linked list, marking what exactly is old)

-- 
Elias Gabriel Amaral da Silva <tolkiendili@gmail.com>