提交 3e5b4adf 编写于 作者: D dbuck

8204966: [TESTBUG] hotspot/test/compiler/whitebox/IsMethodCompilableTest.java...

8204966: [TESTBUG] hotspot/test/compiler/whitebox/IsMethodCompilableTest.java test fails with -XX:CompileThreshold=1
Summary: enforce lower bound on number of loop iterations used to trigger OSR
Reviewed-by: kvn, iignatyev
上级 7c81fe5c
/*
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -84,8 +84,8 @@ public abstract class CompilerWhiteBoxTest {
BACKEDGE_THRESHOLD = THRESHOLD = 150000;
} else {
THRESHOLD = COMPILE_THRESHOLD;
BACKEDGE_THRESHOLD = COMPILE_THRESHOLD * Long.parseLong(getVMOption(
"OnStackReplacePercentage"));
BACKEDGE_THRESHOLD = Math.max(10000, COMPILE_THRESHOLD *
Long.parseLong(getVMOption("OnStackReplacePercentage")));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册