Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.cpp Thu May 10 11:27:10 2012 +0200 +++ b/src/share/vm/runtime/globals.cpp Thu May 10 14:16:34 2012 +0200 @@ -148,6 +148,8 @@ 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();