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

SUN Guoyun duke at openjdk.org
Mon Aug 22 03:26:11 UTC 2022


On Sat, 20 Aug 2022 08:36:00 GMT, Andrew Haley <aph at openjdk.org> wrote:

> I'm not at all sure about this one. It may be a bug. Before committing this patch we should find out why AArch64 and LoongArch are consuming more stack than others. 10M of stack is huge.

I do not have a particularly good idear to locate this problem `find out why AArch64 and LoongArch are consuming more stack than others` at present. From the test results, AArch64 require more stack space than X86_64. And  on the same platform, tier3 `-XX:TieredStopAtLevel=3` consumes more stack space than tier4`-XX:TieredStopAtLevel=4`. 

On the x64 platform, tier4 needs at least set `-Xss700k` and tier3 needs at least set `-Xss1m`. On the aarch64 platform, tier4 needs at least set `-Xss900k` and tier3 needs at least set `-Xss1228k`. 

For safety, I set to `-Xss10m`. Maybe it's more reasonable to change it to `-Xss2m`?

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

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


More information about the compiler-dev mailing list