Skip to content

Commit 9d866d6

Browse files
authored
Add jdk.incubator.vector during benchmark testing. (#138167)
This commit add jdk.incubator.vector during benchmark testing. A number of the benchmarking tests now assert implementations of bench scenarios that leverage the Panama Vector API, so just like in other places we can add the vector module during test.
1 parent 0b3b48a commit 9d866d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

benchmarks/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ tasks.named("run").configure {
9191
systemProperty 'es.nativelibs.path', TestUtil.getTestLibraryPath(file("../libs/native/libraries/build/platform/").toString())
9292
}
9393

94+
tasks.named('test').configure {
95+
if (buildParams.getRuntimeJavaVersion().map{ it.majorVersion.toInteger() }.get() >= 21) {
96+
jvmArgs '--add-modules=jdk.incubator.vector'
97+
}
98+
}
99+
94100
spotless {
95101
java {
96102
// IDEs can sometimes run annotation processors that leave files in

0 commit comments

Comments
 (0)