caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Sylvain Kerjean <skerjean@irisa.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [OCaml 3.00] stat_alloc
Date: Tue, 15 Jan 2002 17:09:19 +0100	[thread overview]
Message-ID: <20020115170919.A12220@pauillac.inria.fr> (raw)
In-Reply-To: <3C42E5F6.1C105448@irisa.fr>; from skerjean@irisa.fr on Mon, Jan 14, 2002 at 03:06:46PM +0100

> en verifiant check_primitives (byterun/interp.c) qui alloue de la
> memoire par stat_alloc
> je me suis apercu qu'on a un petit "memory_leak" lorsque la taille du
> tableau des primitives n'est pas un multiple de la taille des word (la
> mienne est de 8661).
> Est-ce grave ?

J'ai un peu de mal à comprendre votre message, car
1- ce code a complètement changé dans la version courante d'OCaml;
2- check_primitives était dans byterun/startup.c, pas interp.c;
3- check_primitives fait "malloc" d'une certaine taille, puis "free"
   du bloc ainsi alloué.
Bref, je vois mal où une fuite pourrait se produire, sauf bug dans
l'implémentation de malloc() et free(), ou dans votre détecteur de fuites.

- Xavier Leroy

PS.  Merci de répondre à caml@inria.fr; inutile de déranger la liste
pour si peu.

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2002-01-15 16:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-14 14:06 Sylvain Kerjean
2002-01-15 16:09 ` Xavier Leroy [this message]

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=20020115170919.A12220@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=caml@inria.fr \
    --cc=skerjean@irisa.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;
as well as URLs for NNTP newsgroup(s).