Skip to content

Commit 54861df

Browse files
committedOct 11, 2023
8317802: jmh tests fail with Unable to find the resource: /META-INF/BenchmarkList after JDK-8306819
Reviewed-by: erikj, ihse
1 parent f40ea51 commit 54861df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎make/test/BuildMicrobenchmark.gmk

+5-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ $(eval $(call SetupJavaCompilation, BUILD_INDIFY, \
8484
#### Compile Targets
8585

8686
# Building microbenchmark requires the jdk.unsupported and java.management modules.
87-
# sun.security.util is required to compile Cache benchmark
87+
# sun.security.util is required to compile Cache benchmark.
88+
# jmh uses annotation processors to generate the benchmark jar and thus
89+
# requires the use of -processor option during benchmark compilation.
8890

8991
# Build microbenchmark suite for the current JDK
9092
$(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
@@ -106,7 +108,8 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
106108
--add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
107109
--add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
108110
--add-exports java.base/jdk.internal.event=ALL-UNNAMED \
109-
--enable-preview, \
111+
--enable-preview \
112+
-processor org.openjdk.jmh.generators.BenchmarkProcessor, \
110113
JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management \
111114
--add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
112115
--enable-preview, \

0 commit comments

Comments
 (0)
Please sign in to comment.