On Tue, 20 Aug 2024 04:53:18 GMT, Chen Liang <li...@openjdk.org> wrote:
> StackCounter was adding return type slots before deducting receiver slot, so > code like > > int b() { return this.hashCode(); } > > will be counted as having a max stack of 2. Avoid this problem by only > calling `addStackSlot` once for each instruction. Looks good to me. ------------- Marked as reviewed by asotona (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/20637#pullrequestreview-2247735326