Skip to content

Commit 2b172fc

Browse files
author
duke
committed
Backport 3ebed78328bd64d2e18369d63d6ea323b87a7b24
1 parent ec34f8b commit 2b172fc

File tree

9 files changed

+20
-18
lines changed

9 files changed

+20
-18
lines changed

test/micro/org/openjdk/bench/java/lang/foreign/CallByRefHighArity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -35,7 +35,7 @@
3535
@Measurement(iterations = 10, time = 500, timeUnit = TimeUnit.MILLISECONDS)
3636
@State(org.openjdk.jmh.annotations.Scope.Thread)
3737
@OutputTimeUnit(TimeUnit.NANOSECONDS)
38-
@Fork(value = 3, jvmArgsAppend = { "--enable-native-access=ALL-UNNAMED", "-Djava.library.path=micro/native" })
38+
@Fork(value = 3, jvmArgs = { "--enable-native-access=ALL-UNNAMED", "-Djava.library.path=micro/native" })
3939
public class CallByRefHighArity {
4040

4141
static {

test/micro/org/openjdk/bench/java/lang/foreign/LoopOverRandom.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -46,7 +46,7 @@
4646
@Measurement(iterations = 10, time = 500, timeUnit = TimeUnit.MILLISECONDS)
4747
@State(org.openjdk.jmh.annotations.Scope.Thread)
4848
@OutputTimeUnit(TimeUnit.MICROSECONDS)
49-
@Fork(value = 3, jvmArgsAppend = { "--enable-native-access=ALL-UNNAMED", "--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"})
49+
@Fork(value = 3, jvmArgs = { "--enable-native-access=ALL-UNNAMED", "--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"})
5050
public class LoopOverRandom extends JavaLayouts {
5151
static final int SEED = 0;
5252

test/micro/org/openjdk/bench/java/lang/foreign/SegmentOfBuffer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -57,13 +57,13 @@ public long ofBuffer() {
5757
}
5858

5959
@Benchmark
60-
@Fork(value = 3, jvmArgsAppend = "-XX:CompileCommand=inline,jdk.internal.foreign.AbstractMemorySegmentImpl::ofBuffer,false")
60+
@Fork(value = 3, jvmArgs = "-XX:CompileCommand=inline,jdk.internal.foreign.AbstractMemorySegmentImpl::ofBuffer,false")
6161
public long ofBufferInlineFalse() {
6262
return MemorySegment.ofBuffer(buffer).address();
6363
}
6464

6565
@Benchmark
66-
@Fork(value = 3, jvmArgsAppend = "-XX:CompileCommand=inline,jdk.internal.foreign.AbstractMemorySegmentImpl::ofBuffer,true")
66+
@Fork(value = 3, jvmArgs = "-XX:CompileCommand=inline,jdk.internal.foreign.AbstractMemorySegmentImpl::ofBuffer,true")
6767
public long ofBufferInlineTrue() {
6868
return MemorySegment.ofBuffer(buffer).address();
6969
}

test/micro/org/openjdk/bench/java/security/MLDSA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
@State(Scope.Thread)
5757
@Warmup(iterations = 5, time = 1)
5858
@Measurement(iterations = 5, time = 1)
59-
@Fork(value = 3, jvmArgsAppend = {"--add-opens", "java.base/sun.security.provider=ALL-UNNAMED"})
59+
@Fork(value = 3, jvmArgs = {"--add-opens", "java.base/sun.security.provider=ALL-UNNAMED"})
6060

6161
public class MLDSA {
6262
@Param({"ML-DSA-44", "ML-DSA-65", "ML-DSA-87"} )

test/micro/org/openjdk/bench/java/security/MLKEMBench.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@State(Scope.Thread)
5656
@Warmup(iterations = 5, time = 1)
5757
@Measurement(iterations = 5, time = 1)
58-
@Fork(value = 3, jvmArgsAppend = {"--add-opens", "java.base/com.sun.crypto.provider=ALL-UNNAMED"})
58+
@Fork(value = 3, jvmArgs = {"--add-opens", "java.base/com.sun.crypto.provider=ALL-UNNAMED"})
5959

6060
public class MLKEMBench {
6161
@Param({"ML-KEM-512", "ML-KEM-768", "ML-KEM-1024"} )

test/micro/org/openjdk/bench/javax/crypto/full/AESBench.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,7 @@
3939
import java.security.NoSuchAlgorithmException;
4040
import java.security.spec.InvalidParameterSpecException;
4141

42-
@Fork(jvmArgsAppend = {"-Xms20g", "-Xmx20g", "-XX:+UseZGC"})
42+
@Fork(jvmArgs = {"-Xms20g", "-Xmx20g", "-XX:+UseZGC"})
4343
public class AESBench extends CryptoBase {
4444

4545
public static final int SET_SIZE = 8;

test/micro/org/openjdk/bench/jdk/incubator/vector/VectorMultiplyOptBenchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@
3232
@State(Scope.Benchmark)
3333
@Warmup(iterations = 3, time = 1)
3434
@Measurement(iterations = 5, time = 1)
35-
@Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"})
35+
@Fork(value = 1, jvmArgs = {"--add-modules=jdk.incubator.vector"})
3636
public class VectorMultiplyOptBenchmark {
3737
@Param({"1024", "2048", "4096"})
3838
private int SIZE;

test/micro/org/openjdk/bench/jdk/incubator/vector/VectorXXH3HashingBenchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@
3232
@State(Scope.Benchmark)
3333
@Warmup(iterations = 3, time = 1)
3434
@Measurement(iterations = 5, time = 1)
35-
@Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"})
35+
@Fork(value = 1, jvmArgs = {"--add-modules=jdk.incubator.vector"})
3636
public class VectorXXH3HashingBenchmark {
3737
@Param({"1024", "2048", "4096", "8192"})
3838
private int SIZE;

test/micro/org/openjdk/bench/vm/compiler/MergeStores.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -743,8 +743,10 @@ public void store_unsafe_native_B8_L_offs_noalloc_unsafe() {
743743
UNSAFE.putLongUnaligned(null, native_adr + offset + 0, vL);
744744
}
745745

746-
@Fork(value = 1, jvmArgsPrepend = {
747-
"-XX:+UnlockDiagnosticVMOptions", "-XX:-MergeStores"
746+
@Fork(value = 1, jvmArgs = {
747+
"-XX:+UnlockDiagnosticVMOptions", "-XX:-MergeStores",
748+
"--add-exports", "java.base/jdk.internal.misc=ALL-UNNAMED",
749+
"--add-exports", "java.base/jdk.internal.util=ALL-UNNAMED"
748750
})
749751
public static class MergeStoresDisabled extends MergeStores {}
750752
}

0 commit comments

Comments
 (0)