< prev index next >
src/share/vm/utilities/ostream.cpp
Print this page
rev 11609 : imported patch bug_8136930.hs2.patch
*** 701,718 ****
xs->head("properties");
// Print it as a java-style property list.
// System properties don't generally contain newlines, so don't bother with unparsing.
outputStream *text = xs->text();
for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
// Print in two stages to avoid problems with long
// keys/values.
- assert(p->key() != NULL, "p->key() is NULL");
text->print_raw(p->key());
text->put('=');
assert(p->value() != NULL, "p->value() is NULL");
text->print_raw_cr(p->value());
}
xs->tail("properties");
}
xs->tail("vm_arguments");
// tty output per se is grouped under the <tty>...</tty> element.
xs->head("tty");
--- 701,720 ----
xs->head("properties");
// Print it as a java-style property list.
// System properties don't generally contain newlines, so don't bother with unparsing.
outputStream *text = xs->text();
for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
+ assert(p->key() != NULL, "p->key() is NULL");
+ if (p->is_readable()) {
// Print in two stages to avoid problems with long
// keys/values.
text->print_raw(p->key());
text->put('=');
assert(p->value() != NULL, "p->value() is NULL");
text->print_raw_cr(p->value());
}
+ }
xs->tail("properties");
}
xs->tail("vm_arguments");
// tty output per se is grouped under the <tty>...</tty> element.
xs->head("tty");
< prev index next >