harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santiago Gala <sg...@apache.org>
Subject Re: Re: [rant] Memory options in VM -- why is the default not 'unlimited'
Date Sun, 30 Jul 2006 17:58:08 GMT
El dom, 30-07-2006 a las 00:16 +0100, Alex Blewitt escribió:

(...)

> However, if the GC is generational, why does it need to be contiguous?

Some (most?) implementations of write barriers for generational GC
assume that all old memory is below or above all nurseries, so that the
old->new test can be done with a simple address comparison.

So, while they are not fully contiguous, they make some assumptions on
memory layout, even if it is just for efficiency.

Testing if a pointer is inside any of a number of memory areas for each
assignment is a fairly expensive operation.

Regards
Santiago
-- 
VP and Chair, Apache Portals (http://portals.apache.org)
Apache Software Foundation

Mime
View raw message