Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Garbage collector and memory fragmentation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <raffalli@u...>
Subject: Re: [Caml-list] Garbage collector and memory fragmentation
Le lun 27/05/2002 à 10:19, Xavier Leroy a écrit :
> > <This question is not specific to OCaml, but rather to garbage
> > collection.>
> > 

> > My question is : does a garbage collector (for instance the one in
> > OCaml) deal with this kind of issues ( defragmentation of the memory )
> > in a situation similar to mine : many small lists of elements ?


Another point: the standard allocation (malloc) works in general with
pages: a page will really be freed if nothing in the page is used and
very often (always ?) malloc is bad at reusing pieces of a page that
have been deallocated.

Laguage with GC always deals with that issue (never perfectly, except
for stop&copy or other copacting GC) ! Otherwise, they will fail exactly
on the situation you describe which are very common in functionnal
programs.

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners