harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Gray <chris.g...@kiffer.be>
Subject Re: [rant] Memory options in VM -- why is the default not 'unlimited'
Date Mon, 07 Aug 2006 20:44:57 GMT
On Friday 04 August 2006 15:32, Guilhem Lavaux wrote:

> Dalibor pointed me to this thread on harmony-dev. I can answer that kaffe
> does not yet make a difference between weak references and soft references.
> They are both cleared when the GC detects that the object is not anymore
> strongly referenced. It generally happens when someone ask for more memory
> and the GC tries to first clear the existing allocated memory. As the GC is
> not trying to clear any weak references in the meanwhile this behaviour is
> justified. An improvement would be to make a quick small clean each time an
> allocation is requested. The problem is in the "small" because we do not
> have yet any way of parsing the heap by small pieces probably some
> heuristic is needed there.

Wonka will sometimes make a garbage collection before memory is exhausted, and 
in this case strong references will survive while weak ones are collected. It 
is of course open to question whether these extra GC passes are a bug or a 
feature.

Chris

-- 
Chris Gray        /k/ Embedded Java Solutions      BE0503765045
Embedded & Mobile Java, OSGi    http://www.k-embedded-java.com/
chris.gray@kiffer.be                             +32 3 216 0369


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message