1306 // the sun.java.launcher property is passed on to the java application |
1306 // the sun.java.launcher property is passed on to the java application |
1307 } else if (strcmp(key, "sun.boot.library.path") == 0) { |
1307 } else if (strcmp(key, "sun.boot.library.path") == 0) { |
1308 PropertyList_unique_add(&_system_properties, key, value, true); |
1308 PropertyList_unique_add(&_system_properties, key, value, true); |
1309 } else { |
1309 } else { |
1310 if (strcmp(key, "sun.java.command") == 0) { |
1310 if (strcmp(key, "sun.java.command") == 0) { |
1311 if (_java_command != NULL) { |
1311 char *old_java_command = _java_command; |
1312 os::free(_java_command); |
|
1313 } |
|
1314 _java_command = os::strdup_check_oom(value, mtInternal); |
1312 _java_command = os::strdup_check_oom(value, mtInternal); |
|
1313 if (old_java_command != NULL) { |
|
1314 os::free(old_java_command); |
|
1315 } |
1315 } else if (strcmp(key, "java.vendor.url.bug") == 0) { |
1316 } else if (strcmp(key, "java.vendor.url.bug") == 0) { |
1316 if (_java_vendor_url_bug != DEFAULT_VENDOR_URL_BUG) { |
1317 const char* old_java_vendor_url_bug = _java_vendor_url_bug; |
1317 assert(_java_vendor_url_bug != NULL, "_java_vendor_url_bug is NULL"); |
|
1318 os::free((void *)_java_vendor_url_bug); |
|
1319 } |
|
1320 // save it in _java_vendor_url_bug, so JVM fatal error handler can access |
1318 // save it in _java_vendor_url_bug, so JVM fatal error handler can access |
1321 // its value without going through the property list or making a Java call. |
1319 // its value without going through the property list or making a Java call. |
1322 _java_vendor_url_bug = os::strdup_check_oom(value, mtInternal); |
1320 _java_vendor_url_bug = os::strdup_check_oom(value, mtInternal); |
|
1321 if (old_java_vendor_url_bug != DEFAULT_VENDOR_URL_BUG) { |
|
1322 assert(old_java_vendor_url_bug != NULL, "_java_vendor_url_bug is NULL"); |
|
1323 os::free((void *)old_java_vendor_url_bug); |
|
1324 } |
1323 } |
1325 } |
1324 |
1326 |
1325 // Create new property and add at the end of the list |
1327 // Create new property and add at the end of the list |
1326 PropertyList_unique_add(&_system_properties, key, value); |
1328 PropertyList_unique_add(&_system_properties, key, value); |
1327 } |
1329 } |