# HG changeset patch # User duke # Date 1499286088 -7200 # Node ID 715ad31438844d5b3d3ba3ca67cf934c4a1151b5 # Parent 9d611e487d3e8b9a42ed2e55a4d486252a5f2f02# Parent 81d196a50ed93550b52163fb77bf3cd0d0215544 Merge diff -r 9d611e487d3e -r 715ad3143884 .hgtags-top-repo --- a/.hgtags-top-repo Thu Oct 20 20:01:43 2016 +0000 +++ b/.hgtags-top-repo Wed Jul 05 22:21:28 2017 +0200 @@ -383,3 +383,4 @@ 67c4388142bdf58aec8fefa4475faaa8a5d7380c jdk-9+138 7dcf453eacae79ee86a6bcc75fd0b546fc99b48a jdk-9+139 a5815c6098a241d3a1df64d22b84b3524e4a77df jdk-9+140 +f64afae7f1a5608e438585bbf0bc23785e69cba0 jdk-9+141 diff -r 9d611e487d3e -r 715ad3143884 common/autoconf/flags.m4 --- a/common/autoconf/flags.m4 Thu Oct 20 20:01:43 2016 +0000 +++ b/common/autoconf/flags.m4 Wed Jul 05 22:21:28 2017 +0200 @@ -895,7 +895,7 @@ elif test "x$OPENJDK_$1_OS" = xsolaris; then $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DSOLARIS" $2JVM_CFLAGS="[$]$2JVM_CFLAGS -template=no%extdef -features=no%split_init \ - -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" + -D_Crun_inline_placement -library=%none -KPIC -mt -features=no%except" elif test "x$OPENJDK_$1_OS" = xmacosx; then $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" $2JVM_CFLAGS="[$]$2JVM_CFLAGS -D_ALLBSD_SOURCE" diff -r 9d611e487d3e -r 715ad3143884 common/autoconf/generated-configure.sh --- a/common/autoconf/generated-configure.sh Thu Oct 20 20:01:43 2016 +0000 +++ b/common/autoconf/generated-configure.sh Wed Jul 05 22:21:28 2017 +0200 @@ -5093,7 +5093,7 @@ #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1476275292 +DATE_WHEN_GENERATED=1477108079 ############################################################################### # @@ -50077,7 +50077,7 @@ elif test "x$OPENJDK_TARGET_OS" = xsolaris; then JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ - -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" + -D_Crun_inline_placement -library=%none -KPIC -mt -features=no%except" elif test "x$OPENJDK_TARGET_OS" = xmacosx; then COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" @@ -50892,7 +50892,7 @@ elif test "x$OPENJDK_BUILD_OS" = xsolaris; then OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ - -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" + -D_Crun_inline_placement -library=%none -KPIC -mt -features=no%except" elif test "x$OPENJDK_BUILD_OS" = xmacosx; then OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" diff -r 9d611e487d3e -r 715ad3143884 make/CreateJmods.gmk --- a/make/CreateJmods.gmk Thu Oct 20 20:01:43 2016 +0000 +++ b/make/CreateJmods.gmk Wed Jul 05 22:21:28 2017 +0200 @@ -44,6 +44,10 @@ CONF_DIR := $(firstword $(wildcard $(addsuffix /$(MODULE), \ $(SUPPORT_OUTPUTDIR)/modules_conf $(IMPORT_MODULES_CONF)))) CLASSES_DIR := $(wildcard $(JDK_OUTPUTDIR)/modules/$(MODULE)) +INCLUDE_HEADERS_DIR := $(firstword $(wildcard $(addsuffix /$(MODULE), \ + $(SUPPORT_OUTPUTDIR)/modules_include $(IMPORT_MODULES_INCLUDE_HEADERS)))) +MAN_DIR := $(firstword $(wildcard $(addsuffix /$(MODULE), \ + $(SUPPORT_OUTPUTDIR)/modules_man $(IMPORT_MODULES_MAN)))) $(eval $(call FillCacheFind, \ $(LIBS_DIR) $(CMDS_DIR) $(CONF_DIR) $(CLASSES_DIR) \ @@ -65,6 +69,14 @@ JMOD_FLAGS += --class-path $(CLASSES_DIR) DEPS += $(call CacheFind, $(CLASSES_DIR)) endif +ifneq ($(INCLUDE_HEADERS_DIR), ) + JMOD_FLAGS += --header-files $(INCLUDE_HEADERS_DIR) + DEPS += $(call CacheFind, $(INCLUDE_HEADERS_DIR)) +endif +ifneq ($(MAN_DIR), ) + JMOD_FLAGS += --man-pages $(MAN_DIR) + DEPS += $(call CacheFind, $(MAN_DIR)) +endif # Add dependencies on other jmod files. Only java.base needs access to other # jmods. @@ -103,7 +115,7 @@ --os-arch $(OPENJDK_TARGET_CPU_LEGACY) \ --os-version $(REQUIRED_OS_VERSION) \ --module-path $(JMODS_DIR) \ - --exclude '**{_the.*,*.diz,*.debuginfo,*.dSYM/**,*.dSYM,*.pdb,*.map}' \ + --exclude '**{_the.*,*.diz,*.debuginfo,*.dSYM/**,*.dSYM,*.pdb,*.map}' \ $(JMOD_FLAGS) $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@) $(MV) $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@) $@ diff -r 9d611e487d3e -r 715ad3143884 make/Images.gmk --- a/make/Images.gmk Thu Oct 20 20:01:43 2016 +0000 +++ b/make/Images.gmk Wed Jul 05 22:21:28 2017 +0200 @@ -131,35 +131,41 @@ $(JLINK_JLI_CLASSES) \ # +JLINK_JRE_EXTRA_OPTS := --no-man-pages --no-header-files + ifeq ($(JLINK_KEEP_PACKAGED_MODULES), true) - JLINK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods + JLINK_JDK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods endif $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ $(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE) $(ECHO) Creating jdk jimage $(RM) -r $(JDK_IMAGE_DIR) - $(JLINK_TOOL) --output $(JDK_IMAGE_DIR) \ - --add-modules $(JDK_MODULES_LIST) $(JLINK_EXTRA_OPTS) + $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \ + $(JLINK_JDK_EXTRA_OPTS) \ + --output $(JDK_IMAGE_DIR) $(TOUCH) $@ $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) $(ECHO) Creating jre jimage $(RM) -r $(JRE_IMAGE_DIR) - $(JLINK_TOOL) --output $(JRE_IMAGE_DIR) \ - --add-modules $(JRE_MODULES_LIST) + $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ + $(JLINK_JRE_EXTRA_OPTS) \ + --output $(JRE_IMAGE_DIR) $(TOUCH) $@ JRE_COMPACT1_IMAGE_DIR := $(JRE_IMAGE_DIR)-compact1 JRE_COMPACT2_IMAGE_DIR := $(JRE_IMAGE_DIR)-compact2 JRE_COMPACT3_IMAGE_DIR := $(JRE_IMAGE_DIR)-compact3 + $(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ $(call DependOnVariable, JRE_COMPACT1_MODULES_LIST) $(BASE_RELEASE_FILE) $(ECHO) Creating jre compact1 jimage $(RM) -r $(JRE_COMPACT1_IMAGE_DIR) $(JLINK_TOOL) --add-modules $(JRE_COMPACT1_MODULES_LIST) \ + $(JLINK_JRE_EXTRA_OPTS) \ --output $(JRE_COMPACT1_IMAGE_DIR) $(TOUCH) $@ @@ -168,6 +174,7 @@ $(ECHO) Creating jre compact2 jimage $(RM) -r $(JRE_COMPACT2_IMAGE_DIR) $(JLINK_TOOL) --add-modules $(JRE_COMPACT2_MODULES_LIST) \ + $(JLINK_JRE_EXTRA_OPTS) \ --output $(JRE_COMPACT2_IMAGE_DIR) $(TOUCH) $@ @@ -176,6 +183,7 @@ $(ECHO) Creating jre compact3 jimage $(RM) -r $(JRE_COMPACT3_IMAGE_DIR) $(JLINK_TOOL) --add-modules $(JRE_COMPACT3_MODULES_LIST) \ + $(JLINK_JRE_EXTRA_OPTS) \ --output $(JRE_COMPACT3_IMAGE_DIR) $(TOUCH) $@ @@ -313,16 +321,6 @@ endif # Windows ################################################################################ -# /include dir - -$(eval $(call SetupCopyFiles,COPY_INCLUDES, \ - SRC := $(JDK_OUTPUTDIR)/include, \ - DEST := $(JDK_IMAGE_DIR)/include, \ - FILES := $(call CacheFind,$(JDK_OUTPUTDIR)/include))) - -JDK_TARGETS += $(COPY_INCLUDES) - -################################################################################ # doc files JRE_DOC_FILES ?= LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README diff -r 9d611e487d3e -r 715ad3143884 make/common/SetupJavaCompilers.gmk --- a/make/common/SetupJavaCompilers.gmk Thu Oct 20 20:01:43 2016 +0000 +++ b/make/common/SetupJavaCompilers.gmk Wed Jul 05 22:21:28 2017 +0200 @@ -28,11 +28,11 @@ include JavaCompilation.gmk -DISABLE_WARNINGS := -Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally +DISABLE_WARNINGS := -Xlint:all,-deprecation,-removal,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally # If warnings needs to be non-fatal for testing purposes use a command like: # make JAVAC_WARNINGS="-Xlint:all -Xmaxwarns 10000" -JAVAC_WARNINGS := -Xlint:all -Werror +JAVAC_WARNINGS := -Xlint:all,-removal -Werror # The BOOT_JAVAC setup uses the boot jdk compiler to compile the tools # and the interim javac, to be run by the boot jdk. diff -r 9d611e487d3e -r 715ad3143884 test/failure_handler/src/share/conf/common.properties --- a/test/failure_handler/src/share/conf/common.properties Thu Oct 20 20:01:43 2016 +0000 +++ b/test/failure_handler/src/share/conf/common.properties Wed Jul 05 22:21:28 2017 +0200 @@ -34,9 +34,8 @@ jcmd.vm.classloader_stats jcmd.vm.stringtable \ jcmd.vm.symboltable jcmd.vm.uptime jcmd.vm.dynlibs \ jcmd.vm.system_properties \ - jcmd.gc.class_stats jcmd.gc.class_histogram \ - jstack \ - jmap.heap jmap.histo jmap.clstats jmap.finalizerinfo + jcmd.gc.heap_info jcmd.gc.class_stats jcmd.gc.class_histogram jcmd.gc.finalizer_info \ + jstack jinfo.app=jinfo @@ -55,16 +54,12 @@ jcmd.gc.class_stats.args=%p GC.class_stats jcmd.gc.class_histogram.args=%p GC.class_histogram +jcmd.gc.finalizer_info.args=%p GC.finalizer_info +jcmd.gc.heap_info.args=%p GC.heap_info jstack.app=jstack jstack.params.repeat=6 -jmap.app=jmap -jmap.heap.args=-heap %p -jmap.histo.args=-histo %p -jmap.clstats.args=-clstats %p -jmap.finalizerinfo.args=-finalizerinfo %p - ################################################################################ # environment info to gather ################################################################################ diff -r 9d611e487d3e -r 715ad3143884 test/lib/jdk/test/lib/cli/predicate/NotPredicate.java --- a/test/lib/jdk/test/lib/cli/predicate/NotPredicate.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/jdk/test/lib/cli/predicate/NotPredicate.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package jdk.test.lib.cli.predicate; diff -r 9d611e487d3e -r 715ad3143884 test/lib/jdk/test/lib/cli/predicate/OrPredicate.java --- a/test/lib/jdk/test/lib/cli/predicate/OrPredicate.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/jdk/test/lib/cli/predicate/OrPredicate.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package jdk.test.lib.cli.predicate; diff -r 9d611e487d3e -r 715ad3143884 test/lib/sun/hotspot/WhiteBox.java --- a/test/lib/sun/hotspot/WhiteBox.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/sun/hotspot/WhiteBox.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package sun.hotspot; diff -r 9d611e487d3e -r 715ad3143884 test/lib/sun/hotspot/code/BlobType.java --- a/test/lib/sun/hotspot/code/BlobType.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/sun/hotspot/code/BlobType.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package sun.hotspot.code; diff -r 9d611e487d3e -r 715ad3143884 test/lib/sun/hotspot/code/CodeBlob.java --- a/test/lib/sun/hotspot/code/CodeBlob.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/sun/hotspot/code/CodeBlob.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package sun.hotspot.code; diff -r 9d611e487d3e -r 715ad3143884 test/lib/sun/hotspot/code/NMethod.java --- a/test/lib/sun/hotspot/code/NMethod.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/sun/hotspot/code/NMethod.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package sun.hotspot.code; diff -r 9d611e487d3e -r 715ad3143884 test/lib/sun/hotspot/cpuinfo/CPUInfo.java --- a/test/lib/sun/hotspot/cpuinfo/CPUInfo.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/sun/hotspot/cpuinfo/CPUInfo.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package sun.hotspot.cpuinfo; diff -r 9d611e487d3e -r 715ad3143884 test/lib/sun/hotspot/gc/GC.java --- a/test/lib/sun/hotspot/gc/GC.java Thu Oct 20 20:01:43 2016 +0000 +++ b/test/lib/sun/hotspot/gc/GC.java Wed Jul 05 22:21:28 2017 +0200 @@ -19,7 +19,6 @@ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. - * */ package sun.hotspot.gc;