caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lukasz Stafiniak <lukstafi@gmail.com>
To: Jean Krivine <jean.krivine@gmail.com>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] out-of-the-heap 'a arrays ?
Date: Tue, 5 Nov 2013 20:06:41 +0100	[thread overview]
Message-ID: <CAJMfKEW7aWPm1M+xCQ60PmSZxD6Mb8e+AuhnZmik7PuHYgUkQg@mail.gmail.com> (raw)
In-Reply-To: <CAEQoNCmmht1CvRUQnops2zT9ufX4XQ=rgyXwdSSbY6Y_-fDUXg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

On Tue, Nov 5, 2013 at 6:07 PM, Jean Krivine <jean.krivine@gmail.com> wrote:

>
> As far as I understand there is a module Ancient which I can use to tell
> the GC to ignore my array but, if I understand well, it would only work if
> I use my array in a read only fashion.
>

You cannot have pointers from Ancient heap to OCaml heap unless you do weak
pointer management (e.g. in the finalizer of a value). Otherwise I think
you're fine with modifying Ancient.

[-- Attachment #2: Type: text/html, Size: 821 bytes --]

  reply	other threads:[~2013-11-05 19:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-05 17:07 Jean Krivine
2013-11-05 19:06 ` Lukasz Stafiniak [this message]
2013-11-05 19:15   ` Lukasz Stafiniak
2013-11-06  9:19     ` Jean Krivine
2013-11-06 14:20       ` Richard W.M. Jones
2013-11-06  9:44 ` Francois Berenger
2013-11-06 13:10 ` Gerd Stolpmann
2013-11-06 13:39   ` Jean Krivine
2013-11-06 14:19 ` Richard W.M. Jones

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=CAJMfKEW7aWPm1M+xCQ60PmSZxD6Mb8e+AuhnZmik7PuHYgUkQg@mail.gmail.com \
    --to=lukstafi@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=jean.krivine@gmail.com \
    /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).