From: "Török Edwin" <edwintorok@gmail.com>
To: "Kecheng" <kecheng@cecs.pdx.edu>
Cc: "caml-list" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] OCaml memory leak issue
Date: Wed, 24 Nov 2010 09:30:35 +0200 [thread overview]
Message-ID: <20101124093035.473bd2e5@deb0> (raw)
In-Reply-To: <201011231954241577004@cecs.pdx.edu>
On Tue, 23 Nov 2010 19:54:24 -0800
"Kecheng" <kecheng@cecs.pdx.edu> wrote:
> Hi,
>
> I used valgrind to check the memory usage of my OCaml byte code, but
> I found that a memory leak. I'm very confused what the problem is. I
> tried a very simple code as following, and compileed it.
>
> +++++++++++++++++++++++
> let test =
> let a = 1 in
> let b = a + 5 in
> printf "%d\n" b;
> ;;
> test;;
> +++++++++++++++++++++++
I think you need to call the GC on exit explicitly, its not done by
default.
Best regards,
--Edwin
next prev parent reply other threads:[~2010-11-24 7:31 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 [this message]
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=20101124093035.473bd2e5@deb0 \
--to=edwintorok@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=kecheng@cecs.pdx.edu \
/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