java.util.LinkedList clear() improvement

Guy Korland gkorland at gmail.com
Thu Aug 27 19:54:14 UTC 2009


I understand the advantage and as you wrote there are cases where this
is a disadvantage.
The thing is one can't even extend this class according the needed
functionality, since header is defined as private.

Guy

On Thu, Aug 27, 2009 at 8:27 PM, Martin Buchholz<martinrb at google.com> wrote:
> On Thu, Aug 27, 2009 at 10:23, Guy Korland<gkorland at gmail.com> wrote:
>> First I don't think this is the same issue, in the clear case, there's
>> no reference from the root to any of the entries.
>> Second as I know any MarkAndSweep GC should not suffer from such issue.
>> Since the sweep phase should collect any unreachable entry no matter
>> how many dead references point to it.
>
> See my just posted email - unlinking dead older possibly tenured nodes
> has been known to speedup real apps by a factor of two by
> changing full gcs into young gen gcs.
>
> Martin
>



-- 
Guy Korland



More information about the core-libs-dev mailing list