Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Fork-friendly GC
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Thomas <david_hd@y...>
Subject: Re: [Caml-list] Fork-friendly GC
It seems to me that an incomplete but simple solution
is to stop garbage collection on the shared heaps, and
allocate new objects on fresh pages, unique to each
process.  This does, of course, mean that some objects
which should be freed don't get freed, but this seems
a price worth paying - we're only wasting some of the
memory instead of all of the memory, and we're not
taking nearly as much time.

Perhaps it's even possible to detect when we've
written to one of these pages, and re-add them to the
heap when the OS has already copied them for us, but
that's getting more complicated than necessary for a
first pass...

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.