RFR: 8292647: javac/lambda/T8031967.java fails with StackOverflowError when use -XX:TieredStopAtLevel=3 on aarch64 and LoongArch
Nick Gasson
ngasson at openjdk.org
Mon Aug 22 08:33:34 UTC 2022
On Fri, 19 Aug 2022 03:08:31 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.
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
-------------
PR: https://git.openjdk.org/jdk/pull/9934
More information about the compiler-dev
mailing list