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

SUN Guoyun duke at openjdk.org
Tue Aug 23 03:06:32 UTC 2022


On Mon, 22 Aug 2022 08:29:48 GMT, Nick Gasson <ngasson at openjdk.org> wrote:

> Have you tried with `-XX:+AdjustStackSizeForTLS` to see how that affects it? Glibc will subtract an unknown amount of memory from your thread's stack to use for static TLS so the usable stack size will actually be slightly less than the `-Xss` value, and that amount varies between platforms. See here https://bugs.openjdk.org/browse/JDK-8227417 and here https://sourceware.org/bugzilla/show_bug.cgi?id=11787

Thanks. I had tried with `-XX:+AdjustStackSizeForTLS`, but test result is FAILED also. As theRealAph said,it may be necessary to find out why aarch64 needs more stack space than x64.

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

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


More information about the compiler-dev mailing list