Runtime code implementing lazy val should not use sun.misc.Unsafe on Java 9+ (JEP-471) · Issue #9013 · scala/scala3

Currently, any usage of a lazy val requires getitng an instance of sun.misc.Unsafe at runtime: https://github.com/lampepfl/dotty/blob/43e4bfa5598e9cdbebb1dc56ed25a319d5aa8fbe/library/src/dotty/runt...