Question on locals allocation in BlockCodeBuilder
Adam Sotona
adam.sotona at oracle.com
Tue Sep 13 13:06:43 UTC 2022
Hi,
I have a question related to an older fragment of code in BlockCodeBuilderImpl, that actively prohibits allocation of locals in BlockCodeBuilder:
public void end() {
terminal.with((LabelTarget) endLabel);
if (terminalMaxLocals != topLocal(terminal)) {
throw new IllegalStateException("Interference in local variable slot management");
}
}
Do we really want to prevent locals allocated and valid in the context of BlockCodeBuilder only?
Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20220913/e07c6a85/attachment-0001.htm>
More information about the classfile-api-dev
mailing list