Summary
The initial value of the system property user.timezone is changed from the empty string to undefined.
Problem
The initial value used for the default timezone is unnecessarily split between native code and the java.util.TimeZone implementation.
The split has a very small maintenance cost and very small performance impact.
Solution
Removing the initialization of user.timezone to the empty string enables some code cleanup and avoids the overhead of processing the property value when it is the default value.
This change does not change the ability to set user.timezone property on the command line using -Duser.timezone=xxx.
Specification
This is a behavior change only, there is no specification of the initial value of the user.timezone property.
The user.timezone system property will be undefined unless set using a command line argument -Duser.timezone=xxx.
- csr of
-
JDK-8185496 Improve performance of system properties initialization in initPhase1
-
- Resolved
-