提交 b08d45f1 编写于 作者: Y ysuenaga

8213015: Inconsistent settings between JFR.configure and -XX:FlightRecorderOptions

Reviewed-by: mgronlun, egahlin
上级 ef6664a9
......@@ -99,9 +99,7 @@ public class TestJcmdConfigure {
private static void testNegative(String configName, Object value) {
try {
// Syntactically invalid arguments are catched by the JCMD framework where an error code of 1 is returned.
// Syntactically valid arguments that are semantically invalid (invalid value ranges for example) are handled by JFR code, it will always return a value of 0.
JcmdHelper.jcmd(configName.equals(UNSUPPORTED_OPTION) ? 1 : 0, "JFR.configure", configName + "=" + value);
JcmdHelper.jcmd(1, "JFR.configure", configName + "=" + value);
} catch(Exception e) {
testExceptions.add(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册