* [Caml-list] [OCaml 3.00] stat_alloc
@ 2002-01-14 14:06 Sylvain Kerjean
2002-01-15 16:09 ` Xavier Leroy
0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Kerjean @ 2002-01-14 14:06 UTC (permalink / raw)
To: caml-list
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 ?
--
Sylvain Kerjean
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 75 99, Fax: +33 (0) 2 99 84 71 71
-------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] [OCaml 3.00] stat_alloc
2002-01-14 14:06 [Caml-list] [OCaml 3.00] stat_alloc Sylvain Kerjean
@ 2002-01-15 16:09 ` Xavier Leroy
0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2002-01-15 16:09 UTC (permalink / raw)
To: Sylvain Kerjean; +Cc: caml-list
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-15 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-14 14:06 [Caml-list] [OCaml 3.00] stat_alloc Sylvain Kerjean
2002-01-15 16:09 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox