More radical ideas about gc and reference counting

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Sat May 10 02:28:06 PDT 2014


On 5/10/2014 6:05 AM, Wyatt wrote:
> On Friday, 9 May 2014 at 16:12:00 UTC, Manu via Digitalmars-d wrote:
>>
>> Let's also bear in mind that Java's GC is worlds ahead of D's.
>>
> Is Sun/Oracle reference implementation actually any good?
>

Yes. Given all the man hours that have gone into it over the years, it 
would be surprising if it weren't. Actually, though, there isn't really 
one collector that ships with the JRE anymore. There are different 
implementations, each using a different strategy, that can be selected 
at JVM startup. Furthermore, each collector is tunable so if you aren't 
satisfied with the default collector out of the box, you can use the 
JVM's instrumentation to find the most optimal match for your app's 
usage patterns. See [1] for some details.

[1] http://www.infoq.com/articles/Java_Garbage_Collection_Distilled



More information about the Digitalmars-d mailing list