< prev index next >

make/test/BuildMicrobenchmark.gmk

Print this page

 77     SRC := $(TOPDIR)/test/jdk/java/lang/invoke, \
 78     INCLUDE_FILES := indify/Indify.java, \
 79     DISABLED_WARNINGS := rawtypes serial options, \
 80     BIN := $(MICROBENCHMARK_TOOLS_CLASSES), \
 81     JAVAC_FLAGS := -XDstringConcat=inline -Xprefer:newer, \
 82 ))
 83 
 84 #### Compile Targets
 85 
 86 # Building microbenchmark requires the jdk.unsupported and java.management modules.
 87 # sun.security.util is required to compile Cache benchmark
 88 
 89 # Build microbenchmark suite for the current JDK
 90 $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
 91     TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
 92     SMALL_JAVA := false, \
 93     CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
 94     DISABLED_WARNINGS := processing rawtypes cast serial, \
 95     SRC := $(MICROBENCHMARK_SRC), \
 96     BIN := $(MICROBENCHMARK_CLASSES), \
 97     JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED, \
 98     JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management, \
 99 ))
100 
101 $(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS)
102 
103 # Run Indify
104 $(MICROBENCHMARK_INDIFY_DONE): $(BUILD_INDIFY) $(BUILD_JDK_MICROBENCHMARK)
105 	$(call LogWarn, Running Indify on microbenchmark classes)
106 	$(JAVA_SMALL) -cp $(MICROBENCHMARK_TOOLS_CLASSES) \
107 	    indify.Indify --overwrite $(MICROBENCHMARK_CLASSES) \
108 	    $(LOG_DEBUG) 2>&1
109 	$(TOUCH) $@
110 
111 # Unpacking dependencies for inclusion in the benchmark JARs
112 $(JMH_UNPACKED_JARS_DONE): $(JMH_RUNTIME_JARS)
113 	$(RM) -r $(JMH_UNPACKED_DIR)
114 	$(MKDIR) -p $(JMH_UNPACKED_DIR)
115 	$(foreach jar, $(JMH_RUNTIME_JARS), \
116             $$($(UNZIP) -oq $(jar) -d $(JMH_UNPACKED_DIR)))
117 	$(RM) -r $(JMH_UNPACKED_DIR)/META-INF
118 	$(RM) $(JMH_UNPACKED_DIR)/*.xml

 77     SRC := $(TOPDIR)/test/jdk/java/lang/invoke, \
 78     INCLUDE_FILES := indify/Indify.java, \
 79     DISABLED_WARNINGS := rawtypes serial options, \
 80     BIN := $(MICROBENCHMARK_TOOLS_CLASSES), \
 81     JAVAC_FLAGS := -XDstringConcat=inline -Xprefer:newer, \
 82 ))
 83 
 84 #### Compile Targets
 85 
 86 # Building microbenchmark requires the jdk.unsupported and java.management modules.
 87 # sun.security.util is required to compile Cache benchmark
 88 
 89 # Build microbenchmark suite for the current JDK
 90 $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
 91     TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
 92     SMALL_JAVA := false, \
 93     CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
 94     DISABLED_WARNINGS := processing rawtypes cast serial, \
 95     SRC := $(MICROBENCHMARK_SRC), \
 96     BIN := $(MICROBENCHMARK_CLASSES), \
 97     JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED --add-exports java.base/jdk.internal.vm=ALL-UNNAMED --enable-preview, \
 98     JAVA_FLAGS := --add-modules jdk.unsupported --add-exports java.base/jdk.internal.vm=ALL-UNNAMED --limit-modules java.management --enable-preview, \
 99 ))
100 
101 $(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS)
102 
103 # Run Indify
104 $(MICROBENCHMARK_INDIFY_DONE): $(BUILD_INDIFY) $(BUILD_JDK_MICROBENCHMARK)
105 	$(call LogWarn, Running Indify on microbenchmark classes)
106 	$(JAVA_SMALL) -cp $(MICROBENCHMARK_TOOLS_CLASSES) \
107 	    indify.Indify --overwrite $(MICROBENCHMARK_CLASSES) \
108 	    $(LOG_DEBUG) 2>&1
109 	$(TOUCH) $@
110 
111 # Unpacking dependencies for inclusion in the benchmark JARs
112 $(JMH_UNPACKED_JARS_DONE): $(JMH_RUNTIME_JARS)
113 	$(RM) -r $(JMH_UNPACKED_DIR)
114 	$(MKDIR) -p $(JMH_UNPACKED_DIR)
115 	$(foreach jar, $(JMH_RUNTIME_JARS), \
116             $$($(UNZIP) -oq $(jar) -d $(JMH_UNPACKED_DIR)))
117 	$(RM) -r $(JMH_UNPACKED_DIR)/META-INF
118 	$(RM) $(JMH_UNPACKED_DIR)/*.xml
< prev index next >