[m-dev.] the compiler can't bootstrap in Java

Zoltan Somogyi zoltan.somogyi at runbox.com
Fri Jul 12 18:01:10 AEST 2024



On Fri, 12 Jul 2024 17:52:20 +1000, Peter Wang <novalazy at gmail.com> wrote:
> > Presumably, Peter means the one that starts on around line 789,
> 
> That's the one. I forgot what it's called, it's a
> "static initialization block".

I am looking into the code that generates that. The contents
of that block is a list of SCCs of global var definitions, with two
global vars in the same SCCs if they directly or indirectly refer
to each other.

Since Peter did it, I know you can split the block. Could we split that block
at any boundary between SCCs we wanted to pick? In other words, are there
limits, on e.g. the number of static initialization blocks themselves,
that would make that a non-viable approach for fixing this problem?

Zoltan.





More information about the developers mailing list