diff -r 483d23cdc9e5 -r a846e7bbcdfa src/hotspot/share/runtime/arguments.cpp --- a/src/hotspot/share/runtime/arguments.cpp Wed Jun 06 10:32:59 2018 +0200 +++ b/src/hotspot/share/runtime/arguments.cpp Mon Jun 11 09:29:44 2018 +0200 @@ -4447,6 +4447,18 @@ PropertyList_add(plist, k, v, writeable == WriteableProperty, internal == InternalProperty); } +// Update existing property with new value. +void Arguments::PropertyList_update_value(SystemProperty* plist, const char* k, const char* v) { + SystemProperty* prop; + for (prop = plist; prop != NULL; prop = prop->next()) { + if (strcmp(k, prop->key()) == 0) { + prop->set_value(v); + return; + } + } + assert(false, "invalid property"); +} + // Copies src into buf, replacing "%%" with "%" and "%p" with pid // Returns true if all of the source pointed by src has been copied over to // the destination buffer pointed by buf. Otherwise, returns false.