From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 0593E7F7AF for ; Tue, 6 Oct 2015 17:54:15 +0200 (CEST) IronPort-PHdr: 9a23:8NGoJRJHK4V5SDM8v9mcpTZWNBhigK39O0sv0rFitYgUIvTxwZ3uMQTl6Ol3ixeRBMOAu64C1LOd6f+ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC04LojqvopNX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD89pozcNLUL37cqIkVvQYSW1+ayFmrPHs4DbKRxGO639UaW4WnwBFGUCR4xjwRJb8tm3hvepwwiSAFcLzRLEwHz+l6vE4ZgXvjXJNDT8y8GjNhoRPyocd6DCmoRFkicaAeoCeNNJ3eKXQbdITA21bUZACBGR6HoqgYt5XXKI6NuFCoty4/gNWoA== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=rich@annexia.org; spf=Pass smtp.mailfrom=rich@annexia.org; spf=None smtp.helo=postmaster@furbychan.cocan.org Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rich@annexia.org) identity=pra; client-ip=80.68.91.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rich@annexia.org"; x-sender="rich@annexia.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of rich@annexia.org designates 80.68.91.176 as permitted sender) identity=mailfrom; client-ip=80.68.91.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rich@annexia.org"; x-sender="rich@annexia.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@furbychan.cocan.org) identity=helo; client-ip=80.68.91.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rich@annexia.org"; x-sender="postmaster@furbychan.cocan.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AzBQDp7RNW/7BbRFBerisFAQEBAQEBBQGBDZUshhoCgXERAQEBAQEBAQGBCYIdgggBAQQ6PxALGAklDwUoIYhFAb9YAQEBAQYCAR+GLD6FB4UNB4MagRQFkk2DNwGNDpt2NyyCER2BVT2IcgEBAQ X-IPAS-Result: A0AzBQDp7RNW/7BbRFBerisFAQEBAQEBBQGBDZUshhoCgXERAQEBAQEBAQGBCYIdgggBAQQ6PxALGAklDwUoIYhFAb9YAQEBAQYCAR+GLD6FB4UNB4MagRQFkk2DNwGNDpt2NyyCER2BVT2IcgEBAQ X-IronPort-AV: E=Sophos;i="5.17,644,1437429600"; d="scan'208";a="149797551" Received: from annexia.org (HELO furbychan.cocan.org) ([80.68.91.176]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 06 Oct 2015 17:54:14 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.84) (envelope-from ) id 1ZjUZA-0005rY-UM; Tue, 06 Oct 2015 16:54:12 +0100 Date: Tue, 6 Oct 2015 16:54:12 +0100 From: "Richard W.M. Jones" To: Gabriel Scherer Cc: Gerd Stolpmann , caml users Message-ID: <20151006155412.GD20503@annexia.org> References: <20151006134341.GA20503@annexia.org> <20151006141625.GB20503@annexia.org> <1444144145.3571.18.camel@e130.lan.sumadev.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [Caml-list] Finding "lost" references to OCaml heap values 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