caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Disabling the OCaml garbage collector
@ 2007-11-27 16:28 Raj Bandyopadhyay
  2007-11-27 16:41 ` [Caml-list] " Basile STARYNKEVITCH
  2007-11-27 17:05 ` [Caml-list] Python and Caml (was: Disabling the OCaml garbage collector) Thomas Fischbacher
  0 siblings, 2 replies; 15+ messages in thread
From: Raj Bandyopadhyay @ 2007-11-27 16:28 UTC (permalink / raw)
  To: caml-list

Dear all

I am writing a foreign function interface between OCaml and another  
language (Python) which works via C. Since I have some memory issues  
currently, I would like to be able to disable the OCaml Garbage  
collector before jumping into C/Python, and re-enable it when I  
return to OCaml.

I am using the OCaml/C interface and the macros that it provides to  
manage values (CAMLlocal and CAMLparam), but I would like to be able  
to disable the GC entirely for short periods.

What facilities does OCaml provide to disable/enable the garbage  
collector? I looked at the GC module and didn't see anything obvious.  
It's fine if it is something at the C level rather than the OCaml level.

Thanks for your help!
Raj


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

end of thread, other threads:[~2011-08-04 13:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 16:28 Disabling the OCaml garbage collector Raj Bandyopadhyay
2007-11-27 16:41 ` [Caml-list] " Basile STARYNKEVITCH
2007-11-28 18:05   ` Raj
2007-11-28 18:15     ` Alain Frisch
2007-11-28 18:31       ` Thomas Fischbacher
2007-11-28 19:30         ` Raj
2007-11-28 18:25     ` Thomas Fischbacher
2007-11-28 18:32     ` Xavier Leroy
2007-11-28 19:33       ` Raj
2007-11-28 20:00         ` Thomas Fischbacher
2007-12-04 20:14           ` Raj Bandyopadhyay
2007-12-05  4:07             ` Jon Harrop
2007-11-29  8:54     ` Frédéric van der Plancke
2007-11-27 17:05 ` [Caml-list] Python and Caml (was: Disabling the OCaml garbage collector) Thomas Fischbacher
2011-08-04 13:10   ` [Caml-list] Python and Caml Stéphane Glondu

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