caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Elias Gabriel Amaral da Silva <tolkiendili@gmail.com>
To: Damien Doligez <damien.doligez@inria.fr>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] How does OCaml update references when values are moved by the GC?
Date: Sat, 30 Oct 2010 08:14:31 -0300	[thread overview]
Message-ID: <AANLkTinjx6YQ5j=VA4vTqG20iUh5+ZQoBYySj-6xkPX1@mail.gmail.com> (raw)
In-Reply-To: <8277D889-83E2-4037-91B3-3EB5E9EB2EA9@inria.fr>

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>


  reply	other threads:[~2010-10-30 11:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <418632253.26199.1288302511712.JavaMail.root@zmbs1.inria.fr>
2010-10-29  7:47 ` Damien Doligez
2010-10-30 11:14   ` Elias Gabriel Amaral da Silva [this message]
2010-10-30 17:15   ` Jon Harrop
2010-10-30 17:38     ` Michael Ekstrand
2010-10-30 20:40       ` Jon Harrop
2010-11-03  9:49         ` Richard Jones
2010-10-30 20:40   ` Jon Harrop
     [not found]   ` <1033013046.78315.1288458970997.JavaMail.root@zmbs4.inria.fr>
2010-11-02 10:25     ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinjx6YQ5j=VA4vTqG20iUh5+ZQoBYySj-6xkPX1@mail.gmail.com' \
    --to=tolkiendili@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=damien.doligez@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).