JDK-8078654 : CloseTTFontFileFunc callback should be removed
  • Type: Bug
  • Component: client-libs
  • Affected Version: 7,8,9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-04-27
  • Updated: 2015-09-29
  • Resolved: 2015-04-29
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.
JDK 8 JDK 9
8u60Fixed 9 b65Fixed
Description
The close function used by class sun.font.FreetypeFontScaler is redundant and should be removed.

Comments
I support this change, but I'm not a 2d-developer. It seems likely that there is an even better improvement of the code. The primary motivation for this change is crashes in the apparently useless function CloseTTFontFileFunc, seen by both Red Hat and Google. Sorry, no simple repro recipe. See discussion: http://markmail.org/search/?q=CloseTTFontFileFunc%20list%3A2d-dev
28-04-2015

Patch for review at http://cr.openjdk.java.net/~adinn/8078654/webrev.00/
28-04-2015