comparison src/share/vm/runtime/globals.cpp @ 6049:f47478089efc

7167069: 6 VM flags crash the VM when queried via jinfo Summary: Added missing double format to Flag::print_as_flag() Reviewed-by: dholmes, stefank, coleenp
author brutisso
date Thu, 10 May 2012 14:16:34 +0200
parents 80fe40862b02
children d2a62e0f25eb
comparison
equal deleted inserted replaced
6048:a05a695ea044 6049:f47478089efc
146 st->print("-XX:%s=" INTX_FORMAT, name, get_intx()); 146 st->print("-XX:%s=" INTX_FORMAT, name, get_intx());
147 } else if (is_uintx()) { 147 } else if (is_uintx()) {
148 st->print("-XX:%s=" UINTX_FORMAT, name, get_uintx()); 148 st->print("-XX:%s=" UINTX_FORMAT, name, get_uintx());
149 } else if (is_uint64_t()) { 149 } else if (is_uint64_t()) {
150 st->print("-XX:%s=" UINT64_FORMAT, name, get_uint64_t()); 150 st->print("-XX:%s=" UINT64_FORMAT, name, get_uint64_t());
151 } else if (is_double()) {
152 st->print("-XX:%s=%f", name, get_double());
151 } else if (is_ccstr()) { 153 } else if (is_ccstr()) {
152 st->print("-XX:%s=", name); 154 st->print("-XX:%s=", name);
153 const char* cp = get_ccstr(); 155 const char* cp = get_ccstr();
154 if (cp != NULL) { 156 if (cp != NULL) {
155 // Need to turn embedded '\n's back into separate arguments 157 // Need to turn embedded '\n's back into separate arguments