dev@grizzly.java.net

Grizzly's 2.0 Slab.finalize() ?

From: charlie hunt <charlie.hunt_at_sun.com>
Date: Thu, 12 Feb 2009 06:13:44 -0600

I haven't had a chance to look in detail at the implementation details
of the SlabMemoryManager and how it's used. But, I did notice in the
object diagram for Slab, a finalize() method. Depending on how Slab and
the classes that inherit Slab are used, we might consider looking into
the possibility of migrating to using a "ReferenceQueue" approach to
clean things up rather than using finalize().

finalize() can be problematic in that it may take several gc events for
an object with a finalize() method to get collected.

charlie ...