<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>On 2025-03-22 01:55, Bingwu Zhang wrote:</p>
    <blockquote type="cite" cite="mid:4641863.LvFx2qVVIh@xtex1">
      <pre class="moz-quote-pre" wrap="">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:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">java.lang.StackOverflowError
        at jdk.compiler.interim/
[...]
</pre>
      </blockquote>
      <span style="white-space: pre-wrap">
</span><span style="white-space: pre-wrap">
</span>
      <pre class="moz-quote-pre" wrap="">
What should I try next? Is this a bug or a even larger stack is required?</pre>
    </blockquote>
    <p>Is this reproducible? Did it started happening recently? If so,
      can you bisect to which commit introduced the problem?</p>
    <p>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 :-)).</p>
    <p>If you try running without the javac server, does it change
      anything? ("configure --disable-javac-server")</p>
    <p>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.</p>
    <p>Is the default stack size different on mips64 than other
      platforms? Maybe that default value should be changed if so.</p>
    <p>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.</p>
    <p>/Magnus<br>
    </p>
  </body>
</html>