caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* GC question
@ 2005-07-05  7:59 dmitry grebeniuk
  2005-07-06  7:29 ` [Caml-list] " Jean-Christophe Filliatre
  0 siblings, 1 reply; 20+ messages in thread
From: dmitry grebeniuk @ 2005-07-05  7:59 UTC (permalink / raw)
  To: caml-list

Hello, caml-list.

  I have some objects (custom blocks with method suite attached)
which can be referenced from caml heap.  How to ensure that
finalisation function is called for all non-referenced objects?
I know, call to caml_gc_full_major(Val_unit) will do this work,
but it can be costly when there are many values on the heap
(or not?).  Are there any quicker solution?  (I can make no
assumptions about "age" (young/old) of allocated custom blocks
and about current GC state)

-- 
WBR,
 dmitry                          mailto:gds-mlsts@moldavcable.com


^ permalink raw reply	[flat|nested] 20+ messages in thread
* GC question.
@ 2005-10-24 17:53 MATTHEW HAMMER
  2005-10-25 18:41 ` [Caml-list] " Damien Doligez
  0 siblings, 1 reply; 20+ messages in thread
From: MATTHEW HAMMER @ 2005-10-24 17:53 UTC (permalink / raw)
  To: caml-list

Is there more documentation on the stuff in the Obj module?
What I see/know-about is here:

  http://caml.inria.fr/pub/docs/manual-ocaml/libref/Obj.html

I'm very interested in getting (write) access to GC-information on
ocaml values.

Thanks,
Matt

On Mon, Oct 24, 2005 at 05:51:54PM +0900, Keiko Nakata wrote:
> Hello.
> 
> Why I cannot have *any types* in signatures of functor arguments?
> Concretely, the following F is not typable.
> 
> module F(X:sig type t = [`A of _ ] val f : t -> int end) = 
>   struct
>     let f = function `A x as a -> X.f a | `B -> 0
>   end
> 
> The above F could be made typable as in
> 
> module F(X:sig type s type t = [`A of s ] val f : t -> int end) = 
>   struct
>     let f = function `A x as a -> X.f a | `B -> 0
>   end
> 
> However, this change requires me to add the type component s
> to every module to which F are going to be applied.
> This is not very nice...
> 
> Regards,
> Keiko Nakata
> 
> 
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-10-27 14:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030820104917.GB6782@linux-m68k.org>
2003-08-20 12:32 ` [Caml-list] Native compiler support for m68k? Xavier Leroy
2003-08-20 17:46   ` Gleb N. Semenov
2003-08-21 14:56     ` Xavier Leroy
2003-08-21 19:32       ` Daniel M. Albro
2003-08-24 20:05   ` Richard Zidlicky
2003-08-26 13:43     ` Xavier Leroy
2003-08-30  9:59   ` Richard Zidlicky
2003-09-05 21:58   ` Richard Zidlicky
2003-09-06  0:53     ` Byron Hale
2003-09-06 10:01     ` Benjamin Geer
2003-09-07 13:37     ` David MENTRE
2003-09-08  9:52     ` Damien Doligez
2003-09-08 20:36       ` [Caml-list] GC Question Christophe Raffalli
2003-09-09  9:32         ` Pierre Weis
2003-09-09 10:40           ` Christophe Raffalli
2003-09-11 15:04         ` Xavier Leroy
2005-07-05  7:59 GC question dmitry grebeniuk
2005-07-06  7:29 ` [Caml-list] " Jean-Christophe Filliatre
2005-10-24 17:53 MATTHEW HAMMER
2005-10-25 18:41 ` [Caml-list] " Damien Doligez
2005-10-25 19:20   ` MATTHEW HAMMER
2005-10-27 14:25     ` Damien Doligez

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).