Что делает финализаторы такими дорогостоящими?

Из эффективной Java:

Oh, and one more thing: there is a severe performance penalty for using finalizers. On my machine, the time to create and destroy a simple object is about 5.6 ns. Adding a finalizer increases the time to 2,400 ns. In other words, it is about 430 times slower to create and destroy objects with finalizers.

Что делает финализаторы такими дорогими?

5
задан Geek 17 July 2012 в 14:01
поделиться