JDK-8305835 : ImagePool incorrectly creates new textures instead of reusing reusable textures
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-04-11
  • Updated: 2023-05-17
  • Resolved: 2023-04-11
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
internalFixed
Related Reports
Duplicate :  
Description
With the metal rendering pipeline, the ImagePool incorrectly creates new textures instead of reusing reusable textures. This results in excessive Texture allocations and eventually causes application hang.
This task fixes the above incorrect behavior.

Also -
1) A workaround for clearing RT texture content is introduced.
2) Native method MetalTexture.getPixelBuffer() logic is corrected to avoid - "Context leak detected, CoreAnalytics returned false" message on terminal.

Comments
Changeset: c610be48 Author: aghaisas <ajitgh@gmail.com> Date: 2023-04-11 15:42:18 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/c610be4866769d31d7f27554383a19fbfccba936
11-04-2023