Oleg Yukhnevich
08/11/2024, 2:22 PMEdoardo Luppi
08/12/2024, 2:23 PMOleg Yukhnevich
08/12/2024, 2:31 PMpublic and marked with InternalSweetSpiApi annotation - but, they will probably stay forever due compatibility, as they are used by KSP plugin 🙃
Probably you can call registerInternalServiceModule (source) somewhere. But you need to be sure, that it's called before any calls to ServiceLoader.load
Reloading/Unloading of existing instances is not supported nowEdoardo Luppi
08/12/2024, 2:34 PMEagerInitialization gets stabilized at some point, because it's pretty useful.Oleg Yukhnevich
08/12/2024, 2:34 PMServiceLoader-like mechanism?Edoardo Luppi
08/12/2024, 2:37 PMEagerInitialization you mean?
I have quite a lot of top-level properties, and EagerInitialization (or globally setting -Xir-property-lazy-initialization=false) avoids the lazy initialization checks (x === VOID). If the properties are accessed in loops, the check adds unnecessary overhead.