RFR 9: 8165641 : Deprecate Object.finalize
kim.barrett at oracle.com
Sat Mar 11 01:36:55 UTC 2017
> On Mar 10, 2017, at 4:40 PM, Roger Riggs <roger.riggs at oracle.com> wrote:
> Finalizers are inherently problematic and their use can lead to performance issues,
> deadlocks, hangs, and other problematic behavior.
> The problems have been accumulating for many years and the first step to
> deprecate Object.finalize and the overrides in the JDK to communicate the
> issues, recommend alternatives, and motivate changes where finalization is currently used.
> The behavior of finalization nor any uses of finalize are not modified by this change.
> Most of the changes are to suppress compilation warnings within the JDK.
> Please review and comment.
> Thanks, Roger
More information about the core-libs-dev