RFR: 8320220: Compilation of cyclic hierarchy causes infinite recursion

Archie Cobbs acobbs at openjdk.org
Mon Feb 24 17:46:58 UTC 2025


On Mon, 24 Feb 2025 17:33:24 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> It is difficult to estimate if there will be an impact from making the errors for the whole cycle erroneous, but we'll see.

Thanks for taking a look. My hope is that (other than the minor performance hit) this change can only help avoid problems, because when you have a loop, the choice of starting class is fundamentally arbitrary. So if we assume the previous code, which only marked the first class in the loop as erroneous, was correct, then it must have been correct if it started with any other class in the loop (i.e., there is no "order"). Therefore, it must be correct to mark every class in the loop as erroneous 🤞

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

PR Comment: https://git.openjdk.org/jdk/pull/23704#issuecomment-2679211904


More information about the compiler-dev mailing list