hotspot/src/share/vm/runtime/arguments.cpp
changeset 6961 a32b2fc66321
parent 6475 ce4e3065a20c
child 6964 6e45ffa3bccf
equal deleted inserted replaced
6477:5a4b9e39ce51 6961:a32b2fc66321
   117 void Arguments::init_system_properties() {
   117 void Arguments::init_system_properties() {
   118 
   118 
   119   PropertyList_add(&_system_properties, new SystemProperty("java.vm.specification.version", "1.0", false));
   119   PropertyList_add(&_system_properties, new SystemProperty("java.vm.specification.version", "1.0", false));
   120   PropertyList_add(&_system_properties, new SystemProperty("java.vm.specification.name",
   120   PropertyList_add(&_system_properties, new SystemProperty("java.vm.specification.name",
   121                                                                  "Java Virtual Machine Specification",  false));
   121                                                                  "Java Virtual Machine Specification",  false));
   122   PropertyList_add(&_system_properties, new SystemProperty("java.vm.specification.vendor",
       
   123         JDK_Version::is_gte_jdk17x_version() ? "Oracle Corporation" : "Sun Microsystems Inc.", false));
       
   124   PropertyList_add(&_system_properties, new SystemProperty("java.vm.version", VM_Version::vm_release(),  false));
   122   PropertyList_add(&_system_properties, new SystemProperty("java.vm.version", VM_Version::vm_release(),  false));
   125   PropertyList_add(&_system_properties, new SystemProperty("java.vm.name", VM_Version::vm_name(),  false));
   123   PropertyList_add(&_system_properties, new SystemProperty("java.vm.name", VM_Version::vm_name(),  false));
   126   PropertyList_add(&_system_properties, new SystemProperty("java.vm.vendor", VM_Version::vm_vendor(),  false));
       
   127   PropertyList_add(&_system_properties, new SystemProperty("java.vm.info", VM_Version::vm_info_string(),  true));
   124   PropertyList_add(&_system_properties, new SystemProperty("java.vm.info", VM_Version::vm_info_string(),  true));
   128 
   125 
   129   // following are JVMTI agent writeable properties.
   126   // following are JVMTI agent writeable properties.
   130   // Properties values are set to NULL and they are
   127   // Properties values are set to NULL and they are
   131   // os specific they are initialized in os::init_system_properties_values().
   128   // os specific they are initialized in os::init_system_properties_values().
   147   PropertyList_add(&_system_properties, _java_class_path);
   144   PropertyList_add(&_system_properties, _java_class_path);
   148   PropertyList_add(&_system_properties, _sun_boot_class_path);
   145   PropertyList_add(&_system_properties, _sun_boot_class_path);
   149 
   146 
   150   // Set OS specific system properties values
   147   // Set OS specific system properties values
   151   os::init_system_properties_values();
   148   os::init_system_properties_values();
       
   149 }
       
   150 
       
   151 
       
   152   // Update/Initialize System properties after JDK version number is known
       
   153 void Arguments::init_version_specific_system_properties() {
       
   154   PropertyList_add(&_system_properties, new SystemProperty("java.vm.specification.vendor",
       
   155         JDK_Version::is_gte_jdk17x_version() ? "Oracle Corporation" : "Sun Microsystems Inc.", false));
       
   156   PropertyList_add(&_system_properties, new SystemProperty("java.vm.vendor", VM_Version::vm_vendor(),  false));
   152 }
   157 }
   153 
   158 
   154 /**
   159 /**
   155  * Provide a slightly more user-friendly way of eliminating -XX flags.
   160  * Provide a slightly more user-friendly way of eliminating -XX flags.
   156  * When a flag is eliminated, it can be added to this list in order to
   161  * When a flag is eliminated, it can be added to this list in order to