RFR: 8360884: Better scoped values
Alan Bateman
alanb at openjdk.org
Sat Jun 28 07:08:42 UTC 2025
On Fri, 27 Jun 2025 14:32:11 GMT, Andrew Haley <aph at 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
More information about the core-libs-dev
mailing list