On 2025-03-22 01:55, Bingwu Zhang wrote:
Recently when packaging OpenJDK 24-ga for AOSC OS, I hit an compilation error
on loongson3 (which is a variant of mips64), saying that javac is running out
of stack space:
java.lang.StackOverflowError
at jdk.compiler.interim/
[...]
What should I try next? Is this a bug or a even larger stack is required?
Is this reproducible? Did it started happening recently? If so, can you
bisect to which commit introduced the problem?
From your configure command line, it does not look like you are
cross-compiling. Can you confirm that you are actually building natively
on mips64? (That's kind of exciting, I've never heard about it before :-)).
If you try running without the javac server, does it change anything?
("configure --disable-javac-server")
The stack trace in your log is extremely long. While it does not look
like an infinite recursive call, it looks suspicious. It does not seem
reasonable to me that javac should get a tree that deep in a normal
operation.
Is the default stack size different on mips64 than other platforms?
Maybe that default value should be changed if so.
I can't say straight out of my head what's the correct way to pass an
-Xss argument to the interim compiler, but if you want to try it out,
you can, as a hack, add it to INTERIM_LANGTOOLS_ARGS in spec.gmk.template.
/Magnus