67
68 # Need double \n to get new lines and no trailing spaces
69 MICROBENCHMARK_MANIFEST := Build: $(FULL_VERSION)\n\
70 \nJMH-Version: $(JMH_VERSION)\n\
71 \nName: OpenJDK Microbenchmark Suite
72
73 #### Compile Targets
74
75 # Building microbenchmark requires the jdk.unsupported and java.management modules.
76 # sun.security.util is required to compile Cache benchmark.
77 # jmh uses annotation processors to generate the benchmark jar and thus
78 # requires the use of -processor option during benchmark compilation.
79
80 # Build microbenchmark suite for the current JDK
81 $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
82 TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
83 SMALL_JAVA := false, \
84 CLASSPATH := $(JMH_COMPILE_JARS), \
85 CREATE_API_DIGEST := true, \
86 DISABLED_WARNINGS := restricted this-escape processing rawtypes removal cast \
87 serial preview dangling-doc-comments, \
88 SRC := $(MICROBENCHMARK_SRC), \
89 BIN := $(MICROBENCHMARK_CLASSES), \
90 JAVAC_FLAGS := \
91 --add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED \
92 --add-exports java.base/jdk.internal.event=ALL-UNNAMED \
93 --add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \
94 --add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
95 --add-exports java.base/jdk.internal.util=ALL-UNNAMED \
96 --add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
97 --add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
98 --add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
99 --add-exports java.base/sun.invoke.util=ALL-UNNAMED \
100 --add-exports java.base/sun.security.util=ALL-UNNAMED \
101 --add-exports java.base/sun.security.util.math=ALL-UNNAMED \
102 --add-exports java.base/sun.security.util.math.intpoly=ALL-UNNAMED \
103 --enable-preview \
104 -XDsuppressNotes \
105 -processor org.openjdk.jmh.generators.BenchmarkProcessor, \
106 JAVA_FLAGS := \
107 --add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
|
67
68 # Need double \n to get new lines and no trailing spaces
69 MICROBENCHMARK_MANIFEST := Build: $(FULL_VERSION)\n\
70 \nJMH-Version: $(JMH_VERSION)\n\
71 \nName: OpenJDK Microbenchmark Suite
72
73 #### Compile Targets
74
75 # Building microbenchmark requires the jdk.unsupported and java.management modules.
76 # sun.security.util is required to compile Cache benchmark.
77 # jmh uses annotation processors to generate the benchmark jar and thus
78 # requires the use of -processor option during benchmark compilation.
79
80 # Build microbenchmark suite for the current JDK
81 $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
82 TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
83 SMALL_JAVA := false, \
84 CLASSPATH := $(JMH_COMPILE_JARS), \
85 CREATE_API_DIGEST := true, \
86 DISABLED_WARNINGS := restricted this-escape processing rawtypes removal cast \
87 serial preview unchecked deprecation dangling-doc-comments, \
88 SRC := $(MICROBENCHMARK_SRC), \
89 BIN := $(MICROBENCHMARK_CLASSES), \
90 JAVAC_FLAGS := \
91 --add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED \
92 --add-exports java.base/jdk.internal.event=ALL-UNNAMED \
93 --add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \
94 --add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
95 --add-exports java.base/jdk.internal.util=ALL-UNNAMED \
96 --add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
97 --add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
98 --add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
99 --add-exports java.base/sun.invoke.util=ALL-UNNAMED \
100 --add-exports java.base/sun.security.util=ALL-UNNAMED \
101 --add-exports java.base/sun.security.util.math=ALL-UNNAMED \
102 --add-exports java.base/sun.security.util.math.intpoly=ALL-UNNAMED \
103 --enable-preview \
104 -XDsuppressNotes \
105 -processor org.openjdk.jmh.generators.BenchmarkProcessor, \
106 JAVA_FLAGS := \
107 --add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
|