<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
On 03/10/2022 13:59, John Platts wrote:<br>
<blockquote type="cite" cite="mid:SN6PR05MB5837EB65FBB7AB567CF926559D5B9@SN6PR05MB5837.namprd05.prod.outlook.com">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
I have discovered a bug in the Direct$Type$Buffer$RW$(int cap)
constructor if the allocation of the cleaner fails as memory
will be leaked if an Exception or Error is thrown by the
allocation of the Deallocator or the creation of the cleaner.</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<br>
</div>
<br>
</blockquote>
<br>
This mail was stuck, awaiting moderation as it was sent from a mail
account that is not subscribed to the list. Thank you for the
report. If allocating of the Cleaner were to fail with OOME or
something else then it would leak. It is tracked by JDK-8294717 [1]
and has been fixed in the main line for JDK 20.<br>
<br>
-Alan<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8294717">https://bugs.openjdk.org/browse/JDK-8294717</a>
</body>
</html>