Re: [cp-patches] FYI: Add Enum.finalize()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 21, 2006 at 02:09:13PM +0100, Mark Wielaard wrote:
> I hope the optimization is actually worth it. It occurred to me that
> enums are of course by design singletons. So in that case you might not
> actually find so many instances of them anyway. If someone implements
> this 'empty-finalizer-erasure' it might be interesting to have a
> statistic of how many empty finalizers there actually are in the wild
> (say by running some bigger programs like eclipse or tomcat to see
> whether or not it actually occurs for real users, or only is an issue in
> case of contrived benchmarks).

Current GNU Classpath head has:

7121 classes
53   classes have a finalizer
8    of them are empty

(w/o java.lang.Object)

An eclipse-3.2.1 startup-and-shutdown:

3808 class loads
10   classes have a finalizer
4    of them are empty

Make your own decision :-)

- twisti


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux