-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b20
The initialization of the system properties in System.initPhase1 is very inefficient due to the number of upcalls to Properties set/get/remove methods. In addition, it merges the properties from the VM which also invokes Properties methods.
[Potential improveoments to property upcalls will be addressed with issue 4947890. ]
Additionally, there are properties that are initialized to empty or default values in native. That causes extra processing of each property before the value is needed. The properties should be left uninitialized and defaults applied when they are first used.
For example, sun.cpu.isalist, sun.os.patch.level, user.timezone.
Also, there redundant values in java_props_md.c for:
sprops.display_language = sprops.language;
sprops.display_script = sprops.script;
sprops.display_country = sprops.country;
sprops.display_variant = sprops.variant;
[Potential improveoments to property upcalls will be addressed with issue 4947890. ]
Additionally, there are properties that are initialized to empty or default values in native. That causes extra processing of each property before the value is needed. The properties should be left uninitialized and defaults applied when they are first used.
For example, sun.cpu.isalist, sun.os.patch.level, user.timezone.
Also, there redundant values in java_props_md.c for:
sprops.display_language = sprops.language;
sprops.display_script = sprops.script;
sprops.display_country = sprops.country;
sprops.display_variant = sprops.variant;
- csr for
-
JDK-8213551 Initial value of user.timezone system property change
-
- Closed
-
- relates to
-
JDK-7016814 Refactor sun.misc.VM that a list of private internal properties can be shared by other code
-
- Open
-
-
JDK-8066709 Make some JDK system properties read only
-
- Resolved
-
-
JDK-8189319 Add a java.util.Properties constructor that takes an initial capacity
-
- Resolved
-
-
JDK-8213424 VersionProps duplicate and skipped initialization
-
- Resolved
-
-
JDK-4947890 Minimize JNI upcalls in system-properties initialization
-
- Resolved
-
(1 relates to)
There are no Sub-Tasks for this issue.