11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "compiler/compileBroker.hpp"
27 #include "compiler/compilerOracle.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "runtime/arguments.hpp"
30 #include "runtime/handles.inline.hpp"
31 #include "runtime/safepoint.hpp"
32 #include "runtime/safepointVerifiers.hpp"
33 #include "runtime/tieredThresholdPolicy.hpp"
34 #include "code/scopeDesc.hpp"
35 #include "oops/method.inline.hpp"
36 #if INCLUDE_JVMCI
37 #include "jvmci/jvmci.hpp"
38 #endif
39
40 #ifdef TIERED
41
42 #include "c1/c1_Compiler.hpp"
43 #include "opto/c2compiler.hpp"
44
45 template<CompLevel level>
46 bool TieredThresholdPolicy::call_predicate_helper(int i, int b, double scale, Method* method) {
47 double threshold_scaling;
48 if (CompilerOracle::has_option_value(method, "CompileThresholdScaling", threshold_scaling)) {
49 scale *= threshold_scaling;
50 }
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "compiler/compileBroker.hpp"
27 #include "compiler/compilerOracle.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "runtime/arguments.hpp"
30 #include "runtime/handles.inline.hpp"
31 #include "runtime/mutexLocker.inline.hpp"
32 #include "runtime/safepoint.hpp"
33 #include "runtime/safepointVerifiers.hpp"
34 #include "runtime/tieredThresholdPolicy.hpp"
35 #include "code/scopeDesc.hpp"
36 #include "oops/method.inline.hpp"
37 #if INCLUDE_JVMCI
38 #include "jvmci/jvmci.hpp"
39 #endif
40
41 #ifdef TIERED
42
43 #include "c1/c1_Compiler.hpp"
44 #include "opto/c2compiler.hpp"
45
46 template<CompLevel level>
47 bool TieredThresholdPolicy::call_predicate_helper(int i, int b, double scale, Method* method) {
48 double threshold_scaling;
49 if (CompilerOracle::has_option_value(method, "CompileThresholdScaling", threshold_scaling)) {
50 scale *= threshold_scaling;
51 }
|