7167069: 6 VM flags crash the VM when queried via jinfo

Added missing double format to Flag::print_as_flag()

Reviewed-by: dholmes, stefank, coleenp
This commit is contained in:
Bengt Rutisson 2012-05-10 14:16:34 +02:00
parent efb4e7d77d
commit 831d61ffee
2 changed files with 40 additions and 0 deletions

View file

@ -148,6 +148,8 @@ void Flag::print_as_flag(outputStream* st) {
st->print("-XX:%s=" UINTX_FORMAT, name, get_uintx());
} else if (is_uint64_t()) {
st->print("-XX:%s=" UINT64_FORMAT, name, get_uint64_t());
} else if (is_double()) {
st->print("-XX:%s=%f", name, get_double());
} else if (is_ccstr()) {
st->print("-XX:%s=", name);
const char* cp = get_ccstr();