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.

This pull request has now been integrated.

Changeset: b4420030
Author:    Chen Liang <li...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/b442003048559fc35cafddb62885d3ba75b70838
Stats:     34 lines in 2 files changed: 29 ins; 1 del; 4 mod

8338623: StackCounter adding extraneous slots for receiver invoke instructions

Reviewed-by: asotona

-------------

PR: https://git.openjdk.org/jdk/pull/20637

Reply via email to