test/compiler/whitebox/CompilerWhiteBoxTest.java

changeset 9479
b4ee249eb1c4
parent 7321
f5f752e74840
child 9572
624a0741915c
child 9689
89dcef434423
equal deleted inserted replaced
9478:f3108e56b502 9479:b4ee249eb1c4
1 /* 1 /*
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
82 static { 82 static {
83 if (TIERED_COMPILATION) { 83 if (TIERED_COMPILATION) {
84 BACKEDGE_THRESHOLD = THRESHOLD = 150000; 84 BACKEDGE_THRESHOLD = THRESHOLD = 150000;
85 } else { 85 } else {
86 THRESHOLD = COMPILE_THRESHOLD; 86 THRESHOLD = COMPILE_THRESHOLD;
87 BACKEDGE_THRESHOLD = COMPILE_THRESHOLD * Long.parseLong(getVMOption( 87 BACKEDGE_THRESHOLD = Math.max(10000, COMPILE_THRESHOLD *
88 "OnStackReplacePercentage")); 88 Long.parseLong(getVMOption("OnStackReplacePercentage")));
89 } 89 }
90 } 90 }
91 91
92 /** 92 /**
93 * Returns value of VM option. 93 * Returns value of VM option.

mercurial