caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Structural avoidance of memory leaks?
@ 2011-02-09  8:47 David MENTRE
  2011-02-09  9:28 ` xclerc
  2011-02-09 23:50 ` Raoul Duke
  0 siblings, 2 replies; 4+ messages in thread
From: David MENTRE @ 2011-02-09  8:47 UTC (permalink / raw)
  To: Jacques Garrigue; +Cc: orbitz, caml-list

Hello Mr. Garrigue,

2011/2/9 Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>:
> * Memory leaks: have to be careful that you are not referencing dead data, preventing the GC from freeing it.

I thought for a long time that having a GC would avoid any memory
leak. It appears that this is not the case. Java programmers are well
aware of the issue and apparently Haskell and OCaml programmers also.

Is there a documentation/paper/blog post/other somewhere that:
  * Explains where those memory leaks are coming from (i.e. more
precisely that "not referencing dead data")? Is there a taxonomy? Are
they tied to a specific language or are they generic to any language?
For example, in OCaml are memory leaks linked to imperative aspects or
can I have memory leaks using only purely functional aspects of the
language?

 * Tells me, as a practitioner, how to *structurally* avoid those
memory leaks? For example by avoiding some data structures or certain
kind of expressions.

Sincerely yours,
david

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-10 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-09  8:47 [Caml-list] Structural avoidance of memory leaks? David MENTRE
2011-02-09  9:28 ` xclerc
2011-02-09 23:50 ` Raoul Duke
2011-02-10 14:04   ` David Baelde

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).