[8u] RFR 8269594: assert(_handle_mark_nesting > 1) failed: memory leak: allocating handle outside HandleMark

Zhengyu Gu zgu at redhat.com
Fri Aug 6 17:44:25 UTC 2021


Thanks, Paul.

Tagged for approval.

-Zhengyu

On 8/6/21 1:37 PM, Hohensee, Paul wrote:
> Lgtm.
> 
> Thanks,
> Paul
> 
> -----Original Message-----
> From: jdk8u-dev <jdk8u-dev-retn at openjdk.java.net> on behalf of Zhengyu Gu <zgu at redhat.com>
> Date: Tuesday, July 6, 2021 at 6:29 AM
> To: jdk8u-dev <jdk8u-dev at openjdk.java.net>
> Subject: [8u] RFR 8269594: assert(_handle_mark_nesting > 1) failed: memory leak: allocating handle outside HandleMark
> 
> I would like to backport this low risk and single line patch to 8u to
> fix potential hard-to-find memory leak.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8269594
> Patch:
> https://github.com/openjdk/jdk17/commit/4b4bef4e1e06c8efbfeb2c28e0658ce91ee9ad66
> 
> The original patch does not apply cleanly, due to undefined "self"
> variable, changed to "thread()" instead.
> 
> 8u webrev: http://cr.openjdk.java.net/~zgu/JDK-8269594-8u/webrev.00/
> 
> 
> Thanks,
> 
> -Zhengyu
> 
> 



More information about the jdk8u-dev mailing list