<div dir="ltr">Is this pushed to master? I still experience these errors on multiple test cases.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 30. Okt. 2024 um 10:19 Uhr schrieb Adam Sotona <<a href="mailto:adam.sotona@oracle.com">adam.sotona@oracle.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-4229465549680019841">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-4229465549680019841WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hi Rafael,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Please update to the latest codebase, maxstack of the provided test case is correctly calculated now.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Adam<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_-4229465549680019841mail-editor-reference-message-container">
<div>
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="color:black">From:
</span></b><span style="color:black">classfile-api-dev <<a href="mailto:classfile-api-dev-retn@openjdk.org" target="_blank">classfile-api-dev-retn@openjdk.org</a>> on behalf of Rafael Winterhalter <<a href="mailto:rafael.wth@gmail.com" target="_blank">rafael.wth@gmail.com</a>><br>
<b>Date: </b>Thursday, 24 October 2024 at 8:33<br>
<b>To: </b>classfile-api-dev <<a href="mailto:classfile-api-dev@openjdk.org" target="_blank">classfile-api-dev@openjdk.org</a>><br>
<b>Subject: </b>Stack size miscalculated with try-catch blocks<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">when testing a recent build of the JDK with my bridge to ASM, I encountered some test failures. This is related to the stack size of a method being calculated with an additional, unnecessary slot. This can be reproduced using
<a href="https://github.com/raphw/asm-jdk-bridge" target="_blank">https://github.com/raphw/asm-jdk-bridge</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This can also be reproduced by inspecting the computed stack for:<u></u><u></u></p>
</div>
<div>
<div>
<pre style="background:rgb(30,31,34)"><span style="color:rgb(207,142,109)">void </span><span style="color:rgb(86,168,245)">c</span><span style="color:rgb(188,190,196)">() {<br>    </span><span style="color:rgb(207,142,109)">try </span><span style="color:rgb(188,190,196)">{<br>        </span><span style="color:rgb(207,142,109)">throw new </span><span style="color:rgb(188,190,196)">RuntimeException();<br>    } </span><span style="color:rgb(207,142,109)">catch </span><span style="color:rgb(188,190,196)">(RuntimeException e) {<br>    }<br>}<u></u><u></u></span></pre>
</div>
</div>
<div>
<p class="MsoNormal">which will be computed as 3 and not 2.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards, Rafael<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</div></blockquote></div>