diff --git a/test/micro/org/openjdk/bench/java/io/DataOutputStreamTest.java b/test/micro/org/openjdk/bench/java/io/DataOutputStreamTest.java index a654739e3da..a93ca7b1b3b 100644 --- a/test/micro/org/openjdk/bench/java/io/DataOutputStreamTest.java +++ b/test/micro/org/openjdk/bench/java/io/DataOutputStreamTest.java @@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit; @Fork(2) @Measurement(iterations = 6, time = 1) @Warmup(iterations=4, time = 2) -@State(Scope.Benchmark) +@State(Scope.Thread) public class DataOutputStreamTest { public enum BasicType {CHAR, SHORT, INT, STRING} diff --git a/test/micro/org/openjdk/bench/java/lang/ArrayCopyObject.java b/test/micro/org/openjdk/bench/java/lang/ArrayCopyObject.java index 3a31331127c..9b6ab1dd525 100644 --- a/test/micro/org/openjdk/bench/java/lang/ArrayCopyObject.java +++ b/test/micro/org/openjdk/bench/java/lang/ArrayCopyObject.java @@ -61,7 +61,7 @@ class MyClass { } } -@State(Scope.Benchmark) +@State(Scope.Thread) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) @Warmup(iterations = 10, time = 1) diff --git a/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java b/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java index b95fc2788c6..79a60ffd388 100644 --- a/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java +++ b/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java @@ -60,7 +60,7 @@ import java.util.concurrent.TimeUnit; @Measurement(iterations = 5, time = 2) @Fork(3) @OutputTimeUnit(TimeUnit.NANOSECONDS) -@State(Scope.Benchmark) +@State(Scope.Thread) public class ArrayFiddle { @Param("999") public int size; diff --git a/test/micro/org/openjdk/bench/java/time/format/DateTimeFormatterBench.java b/test/micro/org/openjdk/bench/java/time/format/DateTimeFormatterBench.java index f9418999a44..66485684524 100644 --- a/test/micro/org/openjdk/bench/java/time/format/DateTimeFormatterBench.java +++ b/test/micro/org/openjdk/bench/java/time/format/DateTimeFormatterBench.java @@ -53,7 +53,7 @@ import org.openjdk.jmh.infra.Blackhole; @Warmup(iterations = 5, time = 1) @Measurement(iterations = 5, time = 1) @Fork(3) -@State(Scope.Benchmark) +@State(Scope.Thread) public class DateTimeFormatterBench { private static final TimeZone TIME_ZONE = TimeZone.getTimeZone("UTC"); diff --git a/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexInRangeBenchmark.java b/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexInRangeBenchmark.java index da4842bc34a..66a9b3fc522 100644 --- a/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexInRangeBenchmark.java +++ b/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexInRangeBenchmark.java @@ -29,7 +29,7 @@ import org.openjdk.jmh.annotations.*; @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) -@State(Scope.Benchmark) +@State(Scope.Thread) @Warmup(iterations = 3, time = 1) @Measurement(iterations = 5, time = 1) @Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"}) diff --git a/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexVectorBenchmark.java b/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexVectorBenchmark.java index 186e998bc65..120ae94bd06 100644 --- a/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexVectorBenchmark.java +++ b/test/micro/org/openjdk/bench/jdk/incubator/vector/IndexVectorBenchmark.java @@ -29,7 +29,7 @@ import org.openjdk.jmh.annotations.*; @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) -@State(Scope.Benchmark) +@State(Scope.Thread) @Warmup(iterations = 3, time = 1) @Measurement(iterations = 5, time = 1) @Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"}) diff --git a/test/micro/org/openjdk/bench/jdk/incubator/vector/MemorySegmentVectorAccess.java b/test/micro/org/openjdk/bench/jdk/incubator/vector/MemorySegmentVectorAccess.java index 65b2ccb5165..7ee14cbaee3 100644 --- a/test/micro/org/openjdk/bench/jdk/incubator/vector/MemorySegmentVectorAccess.java +++ b/test/micro/org/openjdk/bench/jdk/incubator/vector/MemorySegmentVectorAccess.java @@ -46,7 +46,7 @@ import org.openjdk.jmh.annotations.Warmup; @BenchmarkMode(Mode.AverageTime) @Warmup(iterations = 5, time = 500, timeUnit = TimeUnit.MILLISECONDS) @Measurement(iterations = 10, time = 500, timeUnit = TimeUnit.MILLISECONDS) -@State(org.openjdk.jmh.annotations.Scope.Benchmark) +@State(org.openjdk.jmh.annotations.Scope.Thread) @OutputTimeUnit(TimeUnit.NANOSECONDS) @Fork(value = 1, jvmArgsAppend = { "--add-modules=jdk.incubator.vector", diff --git a/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedBenchmark.java b/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedBenchmark.java index 9e7796994a3..e5c21527e4a 100644 --- a/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedBenchmark.java +++ b/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedBenchmark.java @@ -29,7 +29,7 @@ import org.openjdk.jmh.annotations.*; @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) -@State(Scope.Benchmark) +@State(Scope.Thread) @Warmup(iterations = 3, time = 1) @Measurement(iterations = 5, time = 1) @Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"}) diff --git a/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedIOOBEBenchmark.java b/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedIOOBEBenchmark.java index 1794e4f9a24..1855338552e 100644 --- a/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedIOOBEBenchmark.java +++ b/test/micro/org/openjdk/bench/jdk/incubator/vector/StoreMaskedIOOBEBenchmark.java @@ -28,7 +28,7 @@ import org.openjdk.jmh.annotations.*; @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) -@State(Scope.Benchmark) +@State(Scope.Thread) @Warmup(iterations = 3, time = 1) @Measurement(iterations = 5, time = 1) @Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"}) diff --git a/test/micro/org/openjdk/bench/jdk/incubator/vector/VectorFPtoIntCastOperations.java b/test/micro/org/openjdk/bench/jdk/incubator/vector/VectorFPtoIntCastOperations.java index 0318971ffef..b66fc9646a0 100644 --- a/test/micro/org/openjdk/bench/jdk/incubator/vector/VectorFPtoIntCastOperations.java +++ b/test/micro/org/openjdk/bench/jdk/incubator/vector/VectorFPtoIntCastOperations.java @@ -52,17 +52,17 @@ public class VectorFPtoIntCastOperations { -0.0 }; - static float [] float_arr; + private float [] float_arr; - static double [] double_arr; + private double [] double_arr; - static long [] long_res; + private long [] long_res; - static int [] int_res; + private int [] int_res; - static short [] short_res; + private short [] short_res; - static byte [] byte_res; + private byte [] byte_res; @Setup(Level.Trial) public void BmSetup() { diff --git a/test/micro/org/openjdk/bench/vm/compiler/ArrayFill.java b/test/micro/org/openjdk/bench/vm/compiler/ArrayFill.java index 08f0f65b3b8..c86894a6ee5 100644 --- a/test/micro/org/openjdk/bench/vm/compiler/ArrayFill.java +++ b/test/micro/org/openjdk/bench/vm/compiler/ArrayFill.java @@ -39,7 +39,7 @@ import org.openjdk.jmh.annotations.Warmup; import java.util.concurrent.TimeUnit; import java.util.Arrays; -@State(Scope.Benchmark) +@State(Scope.Thread) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.NANOSECONDS) @Warmup(iterations = 4, time = 2, timeUnit = TimeUnit.SECONDS) diff --git a/test/micro/org/openjdk/bench/vm/compiler/IndexVector.java b/test/micro/org/openjdk/bench/vm/compiler/IndexVector.java index 5b7a4b75a66..124dd38d6a8 100644 --- a/test/micro/org/openjdk/bench/vm/compiler/IndexVector.java +++ b/test/micro/org/openjdk/bench/vm/compiler/IndexVector.java @@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.*; -@State(Scope.Benchmark) +@State(Scope.Thread) @Warmup(iterations = 4, time = 2, timeUnit = TimeUnit.SECONDS) @Measurement(iterations = 4, time = 2, timeUnit = TimeUnit.SECONDS) @Fork(value = 3)