< prev index next >

test/hotspot/jtreg/compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java

Print this page




   8  *
   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 TestOverloadCompileQueues
  26  * @bug 8163511
  27  * @summary Test overloading the C1 and C2 compile queues with tasks.

  28  * @run main/othervm -XX:-TieredCompilation -XX:CompileThreshold=2 -XX:CICompilerCount=1
  29  *                   compiler.classUnloading.methodUnloading.TestOverloadCompileQueues
  30  * @run main/othervm -XX:TieredCompileTaskTimeout=1000 -XX:CompileThresholdScaling=0.001 -XX:CICompilerCount=2
  31  *                   compiler.classUnloading.methodUnloading.TestOverloadCompileQueues
  32  */
  33 
  34 package compiler.classUnloading.methodUnloading;
  35 
  36 import java.lang.reflect.Method;
  37 import java.net.URL;
  38 import java.net.URLClassLoader;
  39 
  40 public class TestOverloadCompileQueues {
  41     public static final int ITERS = 500; // Increase for longer stress testing
  42 
  43     // Some methods to fill up the compile queue
  44     public static void test0() { }
  45     public static void test1() { }
  46     public static void test2() { }
  47     public static void test3() { }




   8  *
   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 TestOverloadCompileQueues
  26  * @bug 8163511
  27  * @summary Test overloading the C1 and C2 compile queues with tasks.
  28  * @requires !vm.graal.enabled
  29  * @run main/othervm -XX:-TieredCompilation -XX:CompileThreshold=2 -XX:CICompilerCount=1
  30  *                   compiler.classUnloading.methodUnloading.TestOverloadCompileQueues
  31  * @run main/othervm -XX:TieredCompileTaskTimeout=1000 -XX:CompileThresholdScaling=0.001 -XX:CICompilerCount=2
  32  *                   compiler.classUnloading.methodUnloading.TestOverloadCompileQueues
  33  */
  34 
  35 package compiler.classUnloading.methodUnloading;
  36 
  37 import java.lang.reflect.Method;
  38 import java.net.URL;
  39 import java.net.URLClassLoader;
  40 
  41 public class TestOverloadCompileQueues {
  42     public static final int ITERS = 500; // Increase for longer stress testing
  43 
  44     // Some methods to fill up the compile queue
  45     public static void test0() { }
  46     public static void test1() { }
  47     public static void test2() { }
  48     public static void test3() { }


< prev index next >