caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rich@annexia.org>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: Gerd Stolpmann <info@gerd-stolpmann.de>, caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Finding "lost" references to OCaml heap values
Date: Tue, 6 Oct 2015 16:54:12 +0100	[thread overview]
Message-ID: <20151006155412.GD20503@annexia.org> (raw)
In-Reply-To: <CAPFanBH-ydhhCdXdc7jCQPASOrw0ge=weaTJH1wgPQENLosMVQ@mail.gmail.com>

On Tue, Oct 06, 2015 at 05:17:48PM +0200, Gabriel Scherer wrote:
> Sorry for the rather naive suggestion, but wouldn't it be possible to
> create a weak pointer in the OCaml world, and have the C value refer to
> that weak pointer?

It seems like that should work.

I managed to get rid of the global root by thinking a bit harder about
the code, so I solved it another way.

Rich.

-- 
Richard Jones
Red Hat

  reply	other threads:[~2015-10-06 15:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06 13:43 Richard W.M. Jones
2015-10-06 14:16 ` Richard W.M. Jones
2015-10-06 15:09   ` Gerd Stolpmann
2015-10-06 15:17     ` Gabriel Scherer
2015-10-06 15:54       ` Richard W.M. Jones [this message]
2015-10-06 13:57 Maxime Ransan (BLOOMBERG/ 731 LEX)
2015-10-06 15:53 ` Richard W.M. Jones
2015-10-06 15:57   ` 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=20151006155412.GD20503@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    --cc=info@gerd-stolpmann.de \
    /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).