< prev index next >

src/java.base/share/classes/java/lang/System.java

Print this page
rev 52426 : 8185496: Improve performance of system properties initialization in initPhase1
8213424: VersionProps duplicate and skipped initialization

*** 800,809 **** --- 800,810 ---- sm.checkPropertiesAccess(); } if (props == null) { props = new Properties(); initProperties(props); + VersionProps.init(props); } System.props = props; } /**
*** 1971,1980 **** --- 1972,1982 ---- // initialization. So make sure the "props" is available at the // very beginning of the initialization and all system properties to // be put into it directly. props = new Properties(84); initProperties(props); // initialized by the VM + VersionProps.init(props); // There are certain system configurations that may be controlled by // VM options such as the maximum amount of direct memory and // Integer cache size used to support the object identity semantics // of autoboxing. Typically, the library will obtain these values
*** 1990,2000 **** // certain system properties that are not intended for public access. VM.saveAndRemoveProperties(props); lineSeparator = props.getProperty("line.separator"); StaticProperty.javaHome(); // Load StaticProperty to cache the property values - VersionProps.init(); FileInputStream fdIn = new FileInputStream(FileDescriptor.in); FileOutputStream fdOut = new FileOutputStream(FileDescriptor.out); FileOutputStream fdErr = new FileOutputStream(FileDescriptor.err); setIn0(new BufferedInputStream(fdIn)); --- 1992,2001 ----
< prev index next >