From: Edgar Friendly <thelema314@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OCaml memory leak issue
Date: Tue, 23 Nov 2010 20:06:07 -0800 [thread overview]
Message-ID: <4CEC8F2F.8010800@gmail.com> (raw)
In-Reply-To: <201011231954241577004@cecs.pdx.edu>
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
On 11/23/2010 07:54 PM, Kecheng wrote:
> let test =
> let a = 1 in
> let b = a + 5 in
> printf "%d\n" b;
> ;;
> test;;
This will finish with a bunch of allocated memory missing pointers to
it. But that's not a problem, because OCaml's GC is capable of freeing
this memory, as opposed to a C program, which would need a pointer to
the memory to free() it.
E.
[-- Attachment #2: Type: text/html, Size: 1085 bytes --]
next prev parent reply other threads:[~2010-11-24 4:06 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 ` Edgar Friendly [this message]
2010-11-24 7:30 ` [Caml-list] " 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
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=4CEC8F2F.8010800@gmail.com \
--to=thelema314@gmail.com \
--cc=caml-list@yquem.inria.fr \
/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