--- old/make/CompileJavaModules.gmk 2015-09-16 15:11:11.000000000 -0700 +++ new/make/CompileJavaModules.gmk 2015-09-16 15:11:11.000000000 -0700 @@ -52,6 +52,17 @@ # data files and shouldn't go in the product java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java +# Some JVMCI excludes. +java.base_EXCLUDE_FILES += \ + jdk/internal/jvmci/options/processor/OptionProcessor.java \ + jdk/internal/jvmci/service/processor/ServiceProviderProcessor.java \ + # + +java.base_EXCLUDES += \ + META-INF/jvmci.options \ + META-INF/jvmci.providers \ + # + ifeq ($(OPENJDK_TARGET_OS), macosx) java.base_EXCLUDE_FILES += sun/nio/fs/GnomeFileTypeDetector.java endif @@ -486,6 +497,7 @@ endif SHARE_SRC_DIRS += \ + $(HOTSPOT_TOPDIR)/src/$1/share/classes \ $(JDK_TOPDIR)/src/$1/share/classes \ $(LANGTOOLS_TOPDIR)/src/$1/share/classes \ $(CORBA_TOPDIR)/src/$1/share/classes \ @@ -539,7 +551,7 @@ $$(eval $$(call SetupJavaCompilation,$1, \ SETUP := $$(if $$($1_SETUP), $$($1_SETUP), GENERATE_JDKBYTECODE), \ - SRC := $$(wildcard $$(call ALL_SRC_DIRS,$1)), \ + SRC := $$(if $$($1_SRC), $$($1_SRC), $$(wildcard $$(call ALL_SRC_DIRS,$1))), \ INCLUDES := $(JDK_USER_DEFINED_FILTER),\ BIN := $$(if $$($1_BIN), $$($1_BIN), $(JDK_OUTPUTDIR)/modules/$1), \ HEADERS := $(SUPPORT_OUTPUTDIR)/headers/$1, \ --- old/make/Main.gmk 2015-09-16 15:11:11.000000000 -0700 +++ new/make/Main.gmk 2015-09-16 15:11:11.000000000 -0700 @@ -110,6 +110,7 @@ JDK_GENSRC_TARGETS := $(filter %-gensrc-jdk, $(GENSRC_TARGETS)) LANGTOOLS_GENSRC_TARGETS := $(filter %-gensrc-langtools, $(GENSRC_TARGETS)) CORBA_GENSRC_TARGETS := $(filter %-gensrc-corba, $(GENSRC_TARGETS)) +HOTSPOT_GENSRC_TARGETS := $(filter %-gensrc-hotspot, $(GENSRC_TARGETS)) ALL_TARGETS += $(GENSRC_TARGETS) @@ -131,7 +132,8 @@ FILE_PREFIX := Copy, \ MAKE_SUBDIR := copy, \ CHECK_MODULES := $(ALL_MODULES), \ - USE_WRAPPER := true)) + USE_WRAPPER := true, \ + MULTIPLE_MAKEFILES := true)) ALL_TARGETS += $(COPY_TARGETS) @@ -352,6 +354,8 @@ $(CORBA_GENSRC_TARGETS): interim-langtools + $(HOTSPOT_GENSRC_TARGETS): interim-langtools + $(JDK_GENSRC_TARGETS): interim-langtools buildtools-jdk interim-corba: $(CORBA_GENSRC_TARGETS) @@ -417,6 +421,9 @@ # Explicitly add dependencies for special targets java.base-java: unpack-sec + # The copy target copies files generated by gensrc + java.base-copy-hotspot: java.base-gensrc-hotspot + jdk.jdeps-gendata: java rmic zip-security: java.base-java java.security.jgss-java java.security.jgss-libs \ --- old/make/MainSupport.gmk 2015-09-16 15:11:12.000000000 -0700 +++ new/make/MainSupport.gmk 2015-09-16 15:11:12.000000000 -0700 @@ -108,7 +108,8 @@ ################################################################################ -MAKE_TOPDIR_LIST := $(JDK_TOPDIR) $(CORBA_TOPDIR) $(LANGTOOLS_TOPDIR) +MAKE_TOPDIR_LIST := $(JDK_TOPDIR) $(CORBA_TOPDIR) $(LANGTOOLS_TOPDIR) \ + $(HOTSPOT_TOPDIR) MAKE_MAKEDIR_LIST := make # Helper macro for DeclareRecipesForPhase @@ -179,7 +180,7 @@ # FILE_PREFIX : File prefix for this build phase # USE_WRAPPER : Set to true to use ModuleWrapper.gmk # CHECK_MODULES : List of modules to try -# MULTIPLE_MAKEFILES : Set to true to handle makefils for the same module in +# MULTIPLE_MAKEFILES : Set to true to handle makefiles for the same module and # phase in multiple repos # Exported variables: # $1_MODULES : All modules that had rules generated --- old/make/common/MakeBase.gmk 2015-09-16 15:11:13.000000000 -0700 +++ new/make/common/MakeBase.gmk 2015-09-16 15:11:13.000000000 -0700 @@ -780,6 +780,14 @@ endif ################################################################################ +# Return a string suitable for use after a -classpath option. It will correct and safe to use +# on all platforms. Arguments are given as space separate classpath entries. +# param 1 : A space separated list of classpath entries +# The surrounding strip is needed to keep additional whitespace out +PathList = \ + "$(subst $(SPACE),$(PATH_SEP),$(strip $1))" + +################################################################################ # Hook to include the corresponding custom file, if present. $(eval $(call IncludeCustomExtension, , common/MakeBase.gmk)) --- old/make/common/Modules.gmk 2015-09-16 15:11:13.000000000 -0700 +++ new/make/common/Modules.gmk 2015-09-16 15:11:13.000000000 -0700 @@ -33,6 +33,7 @@ # Module list macros ALL_TOP_SRC_DIRS := \ + $(HOTSPOT_TOPDIR)/src \ $(JDK_TOPDIR)/src \ $(LANGTOOLS_TOPDIR)/src \ $(CORBA_TOPDIR)/src \ --- old/./modules.xml 2015-09-16 15:11:14.000000000 -0700 +++ new/./modules.xml 2015-09-16 15:11:14.000000000 -0700 @@ -254,6 +254,14 @@ jdk.jfr + jdk.internal.jvmci.hotspot + jdk.jfr + + + jdk.internal.jvmci.hotspot.events + jdk.jfr + + sun.misc java.corba java.desktop