JDK-8330780 : MetalTexture should use newBufferWithBytes allocation in autoreleasepool block
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2024-04-22
  • Updated: 2024-04-22
  • Resolved: 2024-04-22
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
Description
MetalTexture.m file has 3 buffer allocations that use newBufferWithBytes API and are marked as autorelease. These allocations should be put under @autoreleasepool block.

CircleRH Renderperf test leaks memory if above change is not implemented.
Comments
Changeset: a168736b Author: aghaisas <ajitgh@gmail.com> Date: 2024-04-22 14:19:15 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/a168736bc6e9b8d8cbfee274a0676b45b2652b73
22-04-2024