RFR: 8292647: javac/lambda/T8031967.java fails with StackOverflowError when use -XX:TieredStopAtLevel=3 on aarch64 and LoongArch [v3]

Nick Gasson ngasson at openjdk.org
Fri Feb 10 10:09:53 UTC 2023


On Wed, 8 Feb 2023 09:21:30 GMT, SUN Guoyun <duke at openjdk.org> wrote:

>> make images run-test TEST=tools/javac/lambda/T8031967.java will fails with StackOverflowError when I use args JTREG="VM_OPTIONS=-XX:TieredStopAtLevel=3" on aarch64 and LoongArch. So the stack size `-Xss10m` needs to be increased to improve the robustness of the testcase.
>
> SUN Guoyun has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into 8292647
>  - 8292647: javac/lambda/T8031967.java fails with StackOverflowError when use -XX:TieredStopAtLevel=3 on aarch64 and LoongArch
>  - 8292647: javac/lambda/T8031967.java fails with StackOverflowError when use -XX:TieredStopAtLevel=3 on aarch64 and LoongArch

I think the `- (2*VMRegImpl::slots_per_word)` in the x86 version is accounting for the stack space consumed by `push %rbp` and the `call` instruction which pushes the return address to the stack. So in both cases the stack frame is 0x40 bytes in total.

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

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


More information about the compiler-dev mailing list