From: Goswin von Brederlow <goswin-v-b@web.de>
To: DS <ds.caml@sol42.com>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] OCaml memory leak issue
Date: Thu, 25 Nov 2010 14:27:48 +0100 [thread overview]
Message-ID: <87ipzlednv.fsf@frosties.localnet> (raw)
In-Reply-To: <9C5FD85D-4AA0-443B-A626-BC4401712709@sol42.com> (DS's message of "Thu, 25 Nov 2010 00:41:04 +0100")
DS <ds.caml@sol42.com> writes:
> On 24 Nov 2010, at 23:40, Goswin von Brederlow wrote:
>> In case of custom blocks and finalize function I believe this to be an
>> error. Managing resources that the OS does not free (IPC tokens,
>> tempfiles, ...) is made much harder due to this.
> But you can force a final GC run with Pervasives.at_exit Gc.full_major.
> Regards.
> -DS
But you can't force global variables to be freeed. Imho it would be nice
to have a GC setting where one could tell the runtime to free
everything, including global variables, before it exits.
MfG
Goswin
next prev parent reply other threads:[~2010-11-25 13:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 3:54 Kecheng
2010-11-24 4:06 ` [Caml-list] " Edgar Friendly
2010-11-24 7:30 ` Török Edwin
2010-11-24 22:40 ` Goswin von Brederlow
2010-11-24 23:41 ` DS
2010-11-25 13:27 ` Goswin von Brederlow [this message]
2010-11-25 7:42 ` Christophe TROESTLER
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ipzlednv.fsf@frosties.localnet \
--to=goswin-v-b@web.de \
--cc=caml-list@yquem.inria.fr \
--cc=ds.caml@sol42.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox