Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] heap profiling
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-07-18 (13:30)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: [Caml-list] expose GC roots as weak Obj.t pointers?
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 
this data too often because it would prevent the GC from reclaiming
any memory.

-- Damien

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: