Project

General

Profile

Actions

Feature #3372

closed

java: add finalize() for users that don't do explicit clean-up

Added by Noah Watkins over 11 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Hadoop/Java
Labels (FS):
Java/Hadoop
Pull request ID:

Description

The JVM will run finalize() before GC, but is not guaranteed to ever do so. Still, it is good to do this in case users decide to not do explicit clean-up.

Note: clean-up can only be used once, so synchronize with explicit clean-up.

Actions

Also available in: Atom PDF