From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA00562; Fri, 18 Jul 2003 15:30:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA03428 for ; Fri, 18 Jul 2003 15:30:53 +0200 (MET DST) Received: from inria.fr (macaque.inria.fr [128.93.8.158]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h6IDUqf24850 for ; Fri, 18 Jul 2003 15:30:52 +0200 (MET DST) Date: Fri, 18 Jul 2003 15:30:54 +0200 Subject: Re: [Caml-list] expose GC roots as weak Obj.t pointers? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Damien Doligez To: Content-Transfer-Encoding: 7bit In-Reply-To: <20030710080227.GA716@eecs.harvard.edu> Message-Id: <0E4A0700-B924-11D7-BC89-0003930FCE12@inria.fr> X-Mailer: Apple Mail (2.552) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; damien:01 caml-list:01 pointers:01 lindig:01 caml:01 doligez:01 unit:03 heap:03 wrote:03 obj:03 data:03 array:04 roots:05 weak:07 reclaiming:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thursday, July 10, 2003, at 10:02 AM, Christian Lindig wrote: > Would it be possible (in principle) to expose the GC roots as an array > of weak Obj.t pointers? This would allow to walk the heap from Caml > using Obj. > > Gc.roots: unit -> Obj.t Weak.t I think this should be possible. Of course, you wouldn't want to examine this data too often because it would prevent the GC from reclaiming any memory. -- Damien ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners