JDK-6353493 : replace IndexColorModel.finalize() with Disposer mechanism
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: generic
  • Submitted: 2005-11-21
  • Updated: 2020-04-07
  • Resolved: 2020-04-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Description
As mentioned in 6299405, we still have a non-empty finalize() method in
IndexColorModel.  It would be fairly trivial to remove this method and replace it
with a more prompt mechanism, specifically the Java2D Disposer thread.  This may
help reduce overhead in creating and disposing small indexed images.

Another minor point: ColorModel has an empty finalize() method.  I'm not sure why
we can't just remove that method altogether (it would not be considered an incompatible
spec change since it's just overriding an existing method on Object).

Comments
This was already fixed - in two steps First the finalize() method in IndexColorModel was emptied out and replaced with finalize in a small nested class ICMColorData nested in BufImgSurfaceData. That was done in JDK-6925710. Then JDK-8201240 implemented the proposed change from finalize() to the 2D Disposer mechanism - removing finalize from its new home in ICMColorData.
07-04-2020