JDK-4947890 : Minimize JNI upcalls in system-properties initialization
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-11-03
  • Updated: 2025-04-03
  • Resolved: 2018-11-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b23Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The code that initializes system properties, which is partly in the libraries
(src/share/native/java/lang/System.c and the various java_props*.[ch] files)
and partly in HotSpot, does (almost) one JNI upcall for each system property
defined.  Since JNI upcalls are relatively expensive we should explore ways of
reorganizing the code in order to reduce them.  The native code could, e.g.,
pass a single big byte array up to the Java level, which could then decode that
array in one operation.

-- ###@###.### 2003/11/3

Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/0bdbf854472f User: rriggs Date: 2018-11-28 21:00:44 +0000
28-11-2018

JDK-8185496 is retarget not to change the native implementation. So keep this issue open.
14-10-2017

Minimizing JNI upcalls to Properties::put, Properties::get and other methods will be covered by JDK-8185496 to improve the startup performance of system properties initialization.
26-09-2017