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

Aleksey Shipilev shade at openjdk.java.net
Fri May 13 12:55:46 UTC 2022


On Thu, 28 Apr 2022 14:58:28 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

>> 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

Marked as reviewed by shade (Reviewer).

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

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



More information about the client-libs-dev mailing list