On Fri, 27 Jun 2025 14:32:11 GMT, Andrew Haley <a...@openjdk.org> wrote:

> Scoped values cannot be used early in the JDK boot process because of some 
> dependencies on System.getProperty().

Just a bit more context here. There are several places where a class 
initializer may create a ScopedValue. This must be very cheap and allow for 
uses in classes that are used early in VM startup, e.g. Charset. Right now we 
can work round it with StableValue<ScopedValue>> but that is excessive.

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

PR Comment: https://git.openjdk.org/jdk/pull/26019#issuecomment-3015041962

Reply via email to