< prev index next >

hotspot/src/share/vm/runtime/arguments.cpp

Print this page




 203   _sun_boot_class_path = new SystemProperty("sun.boot.class.path", NULL,  true);
 204 
 205   _java_class_path = new SystemProperty("java.class.path", "",  true);
 206 
 207   // Add to System Property list.
 208   PropertyList_add(&_system_properties, _sun_boot_library_path);
 209   PropertyList_add(&_system_properties, _java_library_path);
 210   PropertyList_add(&_system_properties, _java_home);
 211   PropertyList_add(&_system_properties, _java_class_path);
 212   PropertyList_add(&_system_properties, _sun_boot_class_path);
 213 
 214   // Set OS specific system properties values
 215   os::init_system_properties_values();
 216 }
 217 
 218 
 219   // Update/Initialize System properties after JDK version number is known
 220 void Arguments::init_version_specific_system_properties() {
 221   enum { bufsz = 16 };
 222   char buffer[bufsz];
 223   const char* spec_vendor = "Sun Microsystems Inc.";
 224   uint32_t spec_version = 0;
 225 
 226   spec_vendor = "Oracle Corporation";
 227   spec_version = JDK_Version::current().major_version();
 228   jio_snprintf(buffer, bufsz, "1." UINT32_FORMAT, spec_version);
 229 
 230   PropertyList_add(&_system_properties,
 231       new SystemProperty("java.vm.specification.vendor",  spec_vendor, false));
 232   PropertyList_add(&_system_properties,
 233       new SystemProperty("java.vm.specification.version", buffer, false));
 234   PropertyList_add(&_system_properties,
 235       new SystemProperty("java.vm.vendor", VM_Version::vm_vendor(),  false));
 236 }
 237 
 238 /**
 239  * Provide a slightly more user-friendly way of eliminating -XX flags.
 240  * When a flag is eliminated, it can be added to this list in order to
 241  * continue accepting this flag on the command-line, while issuing a warning
 242  * and ignoring the value.  Once the JDK version reaches the 'accept_until'
 243  * limit, we flatly refuse to admit the existence of the flag.  This allows
 244  * a flag to die correctly over JDK releases using HSX.
 245  * But now that HSX is no longer supported only options with a future
 246  * accept_until value need to be listed, and the list can be pruned
 247  * on each major release.
 248  */




 203   _sun_boot_class_path = new SystemProperty("sun.boot.class.path", NULL,  true);
 204 
 205   _java_class_path = new SystemProperty("java.class.path", "",  true);
 206 
 207   // Add to System Property list.
 208   PropertyList_add(&_system_properties, _sun_boot_library_path);
 209   PropertyList_add(&_system_properties, _java_library_path);
 210   PropertyList_add(&_system_properties, _java_home);
 211   PropertyList_add(&_system_properties, _java_class_path);
 212   PropertyList_add(&_system_properties, _sun_boot_class_path);
 213 
 214   // Set OS specific system properties values
 215   os::init_system_properties_values();
 216 }
 217 
 218 
 219   // Update/Initialize System properties after JDK version number is known
 220 void Arguments::init_version_specific_system_properties() {
 221   enum { bufsz = 16 };
 222   char buffer[bufsz];
 223   const char* spec_vendor = "Oracle Corporation";
 224   uint32_t spec_version_major = 0;
 225 
 226   spec_version_major = JDK_Version::current().major_version();
 227   jio_snprintf(buffer, bufsz, UINT32_FORMAT, spec_version_major);

 228 
 229   PropertyList_add(&_system_properties,
 230       new SystemProperty("java.vm.specification.vendor",  spec_vendor, false));
 231   PropertyList_add(&_system_properties,
 232       new SystemProperty("java.vm.specification.version", buffer, false));
 233   PropertyList_add(&_system_properties,
 234       new SystemProperty("java.vm.vendor", VM_Version::vm_vendor(),  false));
 235 }
 236 
 237 /**
 238  * Provide a slightly more user-friendly way of eliminating -XX flags.
 239  * When a flag is eliminated, it can be added to this list in order to
 240  * continue accepting this flag on the command-line, while issuing a warning
 241  * and ignoring the value.  Once the JDK version reaches the 'accept_until'
 242  * limit, we flatly refuse to admit the existence of the flag.  This allows
 243  * a flag to die correctly over JDK releases using HSX.
 244  * But now that HSX is no longer supported only options with a future
 245  * accept_until value need to be listed, and the list can be pruned
 246  * on each major release.
 247  */


< prev index next >