Browse thread
OCaml memory leak issue
-
Kecheng
- Edgar Friendly
-
Török Edwin
-
Goswin von Brederlow
-
DS
- Goswin von Brederlow
- Christophe TROESTLER
-
DS
-
Goswin von Brederlow
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Goswin von Brederlow <goswin-v-b@w...> |
| Subject: | Re: [Caml-list] OCaml memory leak issue |
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