RFR: 8284956: Potential leak awtImageData/color_data when initializes X11GraphicsEnvironment [v2]

Zhengyu Gu zgu at openjdk.java.net
Thu Apr 28 14:58:28 UTC 2022


> During initializing native data of `X11GraphicsEnvironment`, a single `AwtGraphicsConfigData` is used/reused, not only failed cases, but also succeeded cases. So `AwtGraphicsConfigData` internal states need to be cleanup properly to avoid memory leaks.
> 
> Test:
> - [x] jdk_awt

Zhengyu Gu has updated the pull request incrementally with one additional commit since the last revision:

  Aleksey and Andrew's comments

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8317/files
  - new: https://git.openjdk.java.net/jdk/pull/8317/files/e6838cf0..64a74f3e

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8317&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8317&range=00-01

  Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8317.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8317/head:pull/8317

PR: https://git.openjdk.java.net/jdk/pull/8317



More information about the client-libs-dev mailing list