src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/TestJMHWhitebox.java
changeset 58877 aec7bf35d6f5
parent 52910 583fd71c47d6
equal deleted inserted replaced
58876:1a8d65e71a66 58877:aec7bf35d6f5
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, 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.
    34 @Measurement(iterations = 1)
    34 @Measurement(iterations = 1)
    35 @Fork(1)
    35 @Fork(1)
    36 /**
    36 /**
    37  * This dummy class is used to verify that the JMH microbenchmarking environment is set up properly.
    37  * This dummy class is used to verify that the JMH microbenchmarking environment is set up properly.
    38  */
    38  */
    39 public class TestJMHWhitebox {
    39 public class TestJMHWhitebox extends GraalBenchmark {
    40 
    40 
    41     @Benchmark
    41     @Benchmark
    42     public void testJMH(@SuppressWarnings("unused") GraalState s) {
    42     public void testJMH(@SuppressWarnings("unused") GraalState s) {
    43         // This method was intentionally left blank.
    43         // This method was intentionally left blank.
    44     }
    44     }