Stack size miscalculated with try-catch blocks
Rafael Winterhalter
rafael.wth at gmail.com
Thu Oct 24 06:33:20 UTC 2024
Hello,
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 https://github.com/raphw/asm-jdk-bridge
This can also be reproduced by inspecting the computed stack for:
void c() {
try {
throw new RuntimeException();
} catch (RuntimeException e) {
}
}
which will be computed as 3 and not 2.
Best regards, Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20241024/8e3e2ab4/attachment.htm>
More information about the classfile-api-dev
mailing list