9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 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 * @test IsMethodCompilableTest 26 * @bug 8007270 8006683 8007288 8022832 27 * @summary testing of WB::isMethodCompilable() 28 * @requires vm.flavor == "server" 29 * @library /testlibrary /test/lib / 30 * @modules java.base/jdk.internal.misc 31 * java.management 32 * 33 * @build jdk.test.lib.* 34 * sun.hotspot.WhiteBox 35 * @build compiler.whitebox.IsMethodCompilableTest 36 * @run driver ClassFileInstaller sun.hotspot.WhiteBox 37 * sun.hotspot.WhiteBox$WhiteBoxPermission 38 * jdk.test.lib.Platform 39 * @run main/othervm/timeout=2400 -XX:-TieredCompilation -Xmixed 40 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 41 * -XX:PerMethodRecompilationCutoff=3 -XX:-UseCounterDecay 42 * -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCaseHelper::* 43 * compiler.whitebox.IsMethodCompilableTest 44 */ 45 46 package compiler.whitebox; 47 48 import jdk.test.lib.Platform; 49 50 public class IsMethodCompilableTest extends CompilerWhiteBoxTest { 51 /** 52 * Value of {@code -XX:PerMethodRecompilationCutoff} 53 */ 54 protected static final long PER_METHOD_RECOMPILATION_CUTOFF; 55 56 static { 57 long tmp = Long.parseLong( 58 getVMOption("PerMethodRecompilationCutoff", "400")); | 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 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 * @test IsMethodCompilableTest 26 * @bug 8007270 8006683 8007288 8022832 27 * @summary testing of WB::isMethodCompilable() 28 * @requires vm.flavor == "server" 29 * @library /test/lib / 30 * @modules java.base/jdk.internal.misc 31 * java.management 32 * 33 * @build sun.hotspot.WhiteBox 34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox 35 * sun.hotspot.WhiteBox$WhiteBoxPermission 36 * @run main/othervm/timeout=2400 -XX:-TieredCompilation -Xmixed 37 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 38 * -XX:PerMethodRecompilationCutoff=3 -XX:-UseCounterDecay 39 * -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCaseHelper::* 40 * compiler.whitebox.IsMethodCompilableTest 41 */ 42 43 package compiler.whitebox; 44 45 import jdk.test.lib.Platform; 46 47 public class IsMethodCompilableTest extends CompilerWhiteBoxTest { 48 /** 49 * Value of {@code -XX:PerMethodRecompilationCutoff} 50 */ 51 protected static final long PER_METHOD_RECOMPILATION_CUTOFF; 52 53 static { 54 long tmp = Long.parseLong( 55 getVMOption("PerMethodRecompilationCutoff", "400")); |