< prev index next >

src/java.base/windows/native/libjava/java_props_md.c

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

*** 659,674 **** if (PRIMARYLANGID(LANGIDFROMLCID(userDefaultLCID)) == PRIMARYLANGID(LANGIDFROMLCID(userDefaultUILang))) { userDefaultUILang = userDefaultLCID; } - SetupI18nProps(userDefaultUILang, - &sprops.language, - &sprops.script, - &sprops.country, - &sprops.variant, - &display_encoding); SetupI18nProps(userDefaultLCID, &sprops.format_language, &sprops.format_script, &sprops.format_country, &sprops.format_variant, --- 659,668 ----
*** 708,728 **** } } } sprops.unicode_encoding = "UnicodeLittle"; ! /* User TIMEZONE */ ! { ! /* * We defer setting up timezone until it's actually necessary. ! * Refer to TimeZone.getDefault(). However, the system ! * property is necessary to be able to be set by the command ! * line interface -D. Here temporarily set a null string to ! * timezone. */ - sprops.timezone = ""; - } /* Current directory */ { WCHAR buf[MAX_PATH]; if (GetCurrentDirectoryW(sizeof(buf)/sizeof(WCHAR), buf) != 0) --- 702,717 ---- } } } sprops.unicode_encoding = "UnicodeLittle"; ! ! /* User TIMEZONE * We defer setting up timezone until it's actually necessary. ! * Refer to TimeZone.getDefault(). The system property ! * is able to be set by the command line interface -Duser.timezone. */ /* Current directory */ { WCHAR buf[MAX_PATH]; if (GetCurrentDirectoryW(sizeof(buf)/sizeof(WCHAR), buf) != 0)
< prev index next >