java.util.LinkedList clear() improvement
gkorland at gmail.com
Thu Aug 27 12:54:14 PDT 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.
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.
More information about the core-libs-dev