This commit is contained in:
Phil Race 2016-07-08 09:35:14 -07:00
commit c616682454
13 changed files with 52781 additions and 27524 deletions

View File

@ -368,3 +368,4 @@ cae471d3b87783e0a3deea658e1e1c84b2485b6c jdk-9+121
405d811c0d7b9b48ff718ae6c240b732f098c028 jdk-9+123 405d811c0d7b9b48ff718ae6c240b732f098c028 jdk-9+123
f80c841ae2545eaf9acd2724bccc305d98cefbe2 jdk-9+124 f80c841ae2545eaf9acd2724bccc305d98cefbe2 jdk-9+124
9aa7d40f3a453f51e47f4c1b19eff5740a74a9f8 jdk-9+125 9aa7d40f3a453f51e47f4c1b19eff5740a74a9f8 jdk-9+125
3a58466296d36944454756ef01e7513ac5e14a16 jdk-9+126

View File

@ -976,7 +976,6 @@ JVM_VARIANTS
DEBUG_LEVEL DEBUG_LEVEL
HOTSPOT_DEBUG_LEVEL HOTSPOT_DEBUG_LEVEL
JDK_VARIANT JDK_VARIANT
SET_OPENJDK
USERNAME USERNAME
CANONICAL_TOPDIR CANONICAL_TOPDIR
ORIGINAL_TOPDIR ORIGINAL_TOPDIR
@ -5095,7 +5094,7 @@ VS_SDK_PLATFORM_NAME_2013=
#CUSTOM_AUTOCONF_INCLUDE #CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks: # Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1467223237 DATE_WHEN_GENERATED=1467960715
############################################################################### ###############################################################################
# #
@ -16592,41 +16591,17 @@ else
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
$as_echo_n "checking for presence of closed sources... " >&6; } $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
if test -d "$SRC_ROOT/jdk/src/closed"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
CLOSED_SOURCE_PRESENT=yes $as_echo "$enable_openjdk_only" >&6; }
if test "x$enable_openjdk_only" = "xyes"; then
SUPPRESS_CUSTOM_EXTENSIONS="true"
elif test "x$enable_openjdk_only" = "xno"; then
SUPPRESS_CUSTOM_EXTENSIONS="false"
else else
CLOSED_SOURCE_PRESENT=no as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
$as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
$as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
$as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
if test "x$CLOSED_SOURCE_PRESENT" = xno; then
OPENJDK=true
if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
$as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
fi
else
if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
OPENJDK=true
else
OPENJDK=false
fi
fi
if test "x$OPENJDK" = "xtrue"; then
SET_OPENJDK="OPENJDK=true"
fi
# custom-make-dir is deprecated. Please use your custom-hook.m4 to override # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
# the IncludeCustomExtension macro. # the IncludeCustomExtension macro.
@ -53313,11 +53288,7 @@ $as_echo "yes, forced" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
$as_echo "no, forced" >&6; } $as_echo "no, forced" >&6; }
elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK" != "xtrue"; then if test "x$DTRACE_DEP_MISSING" = "xtrue"; then
INCLUDE_DTRACE=false
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, non-open linux build" >&5
$as_echo "no, non-open linux build" >&6; }
elif test "x$DTRACE_DEP_MISSING" = "xtrue"; then
INCLUDE_DTRACE=false INCLUDE_DTRACE=false
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
$as_echo "no, missing dependencies" >&6; } $as_echo "no, missing dependencies" >&6; }
@ -53596,11 +53567,9 @@ $as_echo "yes" >&6; }
NEEDS_LIB_CUPS=true NEEDS_LIB_CUPS=true
fi fi
# Check if freetype is needed # A custom hook may have set this already
if test "x$OPENJDK" = "xtrue"; then if test "x$NEEDS_LIB_FREETYPE" = "x"; then
NEEDS_LIB_FREETYPE=true NEEDS_LIB_FREETYPE=true
else
NEEDS_LIB_FREETYPE=false
fi fi
# Check if alsa is needed # Check if alsa is needed

View File

@ -161,10 +161,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_DTRACE],
INCLUDE_DTRACE=false INCLUDE_DTRACE=false
AC_MSG_RESULT([no, forced]) AC_MSG_RESULT([no, forced])
elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK" != "xtrue"; then if test "x$DTRACE_DEP_MISSING" = "xtrue"; then
INCLUDE_DTRACE=false
AC_MSG_RESULT([no, non-open linux build])
elif test "x$DTRACE_DEP_MISSING" = "xtrue"; then
INCLUDE_DTRACE=false INCLUDE_DTRACE=false
AC_MSG_RESULT([no, missing dependencies]) AC_MSG_RESULT([no, missing dependencies])
else else

View File

@ -117,36 +117,15 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM],
AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only],
[suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) [suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"])
AC_MSG_CHECKING([for presence of closed sources]) AC_MSG_CHECKING([if custom source is suppressed (openjdk-only)])
if test -d "$SRC_ROOT/jdk/src/closed"; then AC_MSG_RESULT([$enable_openjdk_only])
CLOSED_SOURCE_PRESENT=yes if test "x$enable_openjdk_only" = "xyes"; then
SUPPRESS_CUSTOM_EXTENSIONS="true"
elif test "x$enable_openjdk_only" = "xno"; then
SUPPRESS_CUSTOM_EXTENSIONS="false"
else else
CLOSED_SOURCE_PRESENT=no AC_MSG_ERROR([Invalid value for --enable-openjdk-only: $enable_openjdk_only])
fi fi
AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT])
AC_MSG_CHECKING([if closed source is suppressed (openjdk-only)])
SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
AC_MSG_RESULT([$SUPPRESS_CLOSED_SOURCE])
if test "x$CLOSED_SOURCE_PRESENT" = xno; then
OPENJDK=true
if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense])
fi
else
if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
OPENJDK=true
else
OPENJDK=false
fi
fi
if test "x$OPENJDK" = "xtrue"; then
SET_OPENJDK="OPENJDK=true"
fi
AC_SUBST(SET_OPENJDK)
# custom-make-dir is deprecated. Please use your custom-hook.m4 to override # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
# the IncludeCustomExtension macro. # the IncludeCustomExtension macro.

View File

@ -59,11 +59,9 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
NEEDS_LIB_CUPS=true NEEDS_LIB_CUPS=true
fi fi
# Check if freetype is needed # A custom hook may have set this already
if test "x$OPENJDK" = "xtrue"; then if test "x$NEEDS_LIB_FREETYPE" = "x"; then
NEEDS_LIB_FREETYPE=true NEEDS_LIB_FREETYPE=true
else
NEEDS_LIB_FREETYPE=false
fi fi
# Check if alsa is needed # Check if alsa is needed

View File

@ -108,7 +108,6 @@ OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@ REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
@SET_OPENJDK@
LIBM:=@LIBM@ LIBM:=@LIBM@
LIBDL:=@LIBDL@ LIBDL:=@LIBDL@

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
<name>OpenJDK (Native)</name> <name>OpenJDK (Native)</name>
<c-extensions>c,m</c-extensions> <c-extensions>c,m</c-extensions>
<cpp-extensions>cc,cpp</cpp-extensions> <cpp-extensions>cc,cpp</cpp-extensions>
<header-extensions>ad,h,hpp,in_out</header-extensions> <header-extensions>ad,h,hh,hpp,in_out,map,txt</header-extensions>
<sourceEncoding>UTF-8</sourceEncoding> <sourceEncoding>UTF-8</sourceEncoding>
<make-dep-projects/> <make-dep-projects/>
<sourceRootList> <sourceRootList>
@ -26,6 +26,9 @@
<type>0</type> <type>0</type>
</confElem> </confElem>
</confList> </confList>
<formatting>
<project-formatting-style>false</project-formatting-style>
</formatting>
</data> </data>
</configuration> </configuration>
</project> </project>

View File

@ -205,11 +205,6 @@ ifdef BUILD_HEADLESS_ONLY
java.desktop_EXCLUDES += sun/applet java.desktop_EXCLUDES += sun/applet
endif endif
# Why is this in the open source tree?
ifdef OPENJDK
java.desktop_EXCLUDES += sun/dc
endif
# Used on windows and macosx # Used on windows and macosx
ifeq ($(filter $(OPENJDK_TARGET_OS), windows macosx), ) ifeq ($(filter $(OPENJDK_TARGET_OS), windows macosx), )
java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java

View File

@ -207,12 +207,6 @@ ifneq ($(OPENJDK_TARGET_OS), windows)
tnameserv.1 \ tnameserv.1 \
unpack200.1 unpack200.1
ifndef OPENJDK
ifneq ($(OPENJDK_TARGET_OS), solaris)
JRE_MAN_PAGES += javaws.1
endif
endif
JDK_MAN_PAGES += \ JDK_MAN_PAGES += \
$(JRE_MAN_PAGES) \ $(JRE_MAN_PAGES) \
appletviewer.1 \ appletviewer.1 \

View File

@ -290,19 +290,15 @@ $(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
# Common javadoc options used by all bundles # Common javadoc options used by all bundles
ifdef OPENJDK # This flag may be overridden from a custom makefile
ADDITIONAL_JAVADOCFLAGS = \ DOCROOTPARENT_FLAG = -Xdocrootparent $(DOCS_BASE_URL)
-Xdocrootparent $(DOCS_BASE_URL)
else
ADDITIONAL_JAVADOCFLAGS =
endif
define COMMON_JAVADOCFLAGS define COMMON_JAVADOCFLAGS
$(call OptionOnly,-XDignore.symbol.file=true) ; \ $(call OptionOnly,-XDignore.symbol.file=true) ; \
$(call OptionOnly,-quiet) ; \ $(call OptionOnly,-quiet) ; \
$(call OptionOnly,-use) ; \ $(call OptionOnly,-use) ; \
$(call OptionOnly,-keywords) ; \ $(call OptionOnly,-keywords) ; \
$(call OptionOnly,$(ADDITIONAL_JAVADOCFLAGS)) $(call OptionOnly,$(DOCROOTPARENT_FLAG))
endef endef
# Common javadoc tags used by all bundles # Common javadoc tags used by all bundles
@ -1038,8 +1034,6 @@ ALL_OTHER_TARGETS += mgmtdocs
MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension
MGMT2COREAPI := ../../$(JDKJRE2COREAPI) MGMT2COREAPI := ../../$(JDKJRE2COREAPI)
JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib
JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/jdk.snmp/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
MGMT_HEADER := <strong>Monitoring and Management Interface for the Java Platform</strong> MGMT_HEADER := <strong>Monitoring and Management Interface for the Java Platform</strong>
@ -1063,11 +1057,6 @@ $(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
# Run javadoc if the index file is out of date or missing # Run javadoc if the index file is out of date or missing
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) $(COREAPI_INDEX_FILE) $(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
$(prep-javadoc) $(prep-javadoc)
@if [ -f $(JVM_MIB_SRC) ] ; then \
$(CP) $(JVM_MIB_SRC) $(@D)/.. ; \
else \
$(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; \
fi
$(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE)) $(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
$(JAVADOC_CMD_SMALL) -d $(@D) \ $(JAVADOC_CMD_SMALL) -d $(@D) \
@$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE) @$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
@ -1223,8 +1212,7 @@ JSHELLAPI_DOCTITLE := JShell API
JSHELLAPI_WINDOWTITLE := JShell API JSHELLAPI_WINDOWTITLE := JShell API
JSHELLAPI_HEADER := <strong>JSHELL API</strong> JSHELLAPI_HEADER := <strong>JSHELL API</strong>
JSHELLAPI_BOTTOM := $(call CommonBottom,$(JSHELLAPI_FIRST_COPYRIGHT_YEAR)) JSHELLAPI_BOTTOM := $(call CommonBottom,$(JSHELLAPI_FIRST_COPYRIGHT_YEAR))
JSHELLAPI_GROUPNAME := Packages JSHELLAPI_OVERVIEW := $(LANGTOOLS_TOPDIR)/src/jdk.jshell/share/classes/jdk/jshell/overview.html
JSHELLAPI_REGEXP := jdk.jshell.*
# JSHELLAPI_PKGS is located in NON_CORE_PKGS.gmk # JSHELLAPI_PKGS is located in NON_CORE_PKGS.gmk
JSHELLAPI_INDEX_HTML = $(JSHELLAPI_DOCDIR)/index.html JSHELLAPI_INDEX_HTML = $(JSHELLAPI_DOCDIR)/index.html
@ -1256,11 +1244,11 @@ $(JSHELLAPI_OPTIONS_FILE):
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \ $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
$(call OptionPair,-addmods,$(JSHELLAPI_MODULES)) ; \ $(call OptionPair,-addmods,$(JSHELLAPI_MODULES)) ; \
$(call OptionPair,-encoding,ascii) ; \ $(call OptionPair,-encoding,ascii) ; \
$(call OptionPair,-overview,$(JSHELLAPI_OVERVIEW)) ; \
$(call OptionPair,-doctitle,$(JSHELLAPI_DOCTITLE)) ; \ $(call OptionPair,-doctitle,$(JSHELLAPI_DOCTITLE)) ; \
$(call OptionPair,-windowtitle,$(JSHELLAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ $(call OptionPair,-windowtitle,$(JSHELLAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
$(call OptionPair,-header,$(JSHELLAPI_HEADER)$(DRAFT_HEADER)) ; \ $(call OptionPair,-header,$(JSHELLAPI_HEADER)$(DRAFT_HEADER)) ; \
$(call OptionPair,-bottom,$(JSHELLAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ $(call OptionPair,-bottom,$(JSHELLAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
$(call OptionTrip,-group,$(JSHELLAPI_GROUPNAME),$(JSHELLAPI_REGEXP)); \
$(call OptionTrip,-linkoffline,$(JSHELLAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ $(call OptionTrip,-linkoffline,$(JSHELLAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
) >> $@ ) >> $@
@ -1705,3 +1693,7 @@ $(JAVADOC_ARCHIVE): $(COREAPI_INDEX_FILE)
############################################################# #############################################################
.PHONY: all docs coredocs otherdocs \ .PHONY: all docs coredocs otherdocs \
$(ALL_OTHER_TARGETS) zip-docs $(ALL_OTHER_TARGETS) zip-docs
################################################################################
$(eval $(call IncludeCustomExtension, , Javadoc-post.gmk))

View File

@ -81,7 +81,9 @@ ATTACH_PKGS = com.sun.tools.attach \
JCONSOLE_PKGS = com.sun.tools.jconsole JCONSOLE_PKGS = com.sun.tools.jconsole
JSHELLAPI_PKGS = jdk.jshell JSHELLAPI_PKGS = jdk.jshell \
jdk.jshell.spi \
jdk.jshell.execution
TREEAPI_PKGS = com.sun.source.doctree \ TREEAPI_PKGS = com.sun.source.doctree \
com.sun.source.tree \ com.sun.source.tree \

View File

@ -34,6 +34,7 @@ import java.util.Map;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import sun.hotspot.gc.GC;
/** /**
* The Class to be invoked by jtreg prior Test Suite execution to * The Class to be invoked by jtreg prior Test Suite execution to
@ -56,11 +57,12 @@ public class VMProps implements Callable<Map<String, String>> {
map.put("vm.bits", vmBits()); map.put("vm.bits", vmBits());
map.put("vm.flightRecorder", vmFlightRecorder()); map.put("vm.flightRecorder", vmFlightRecorder());
map.put("vm.simpleArch", vmArch()); map.put("vm.simpleArch", vmArch());
vmGC(map); // vm.gc.X = true/false
dump(map); dump(map);
return map; return map;
} }
/** /**
* @return vm.simpleArch value of "os.simpleArch" property of tested JDK. * @return vm.simpleArch value of "os.simpleArch" property of tested JDK.
*/ */
@ -146,6 +148,24 @@ public class VMProps implements Callable<Map<String, String>> {
return "false"; return "false";
} }
/**
* For all existing GC sets vm.gc.X property.
* Example vm.gc.G1=true means:
* VM supports G1
* User either set G1 explicitely (-XX:+UseG1GC) or did not set any GC
* @param map - property-value pairs
*/
protected void vmGC(Map<String, String> map){
GC currentGC = GC.current();
boolean isByErgo = GC.currentSetByErgo();
List<GC> supportedGC = GC.allSupported();
for (GC gc: GC.values()) {
boolean isSupported = supportedGC.contains(gc);
boolean isAcceptable = isSupported && (gc == currentGC || isByErgo);
map.put("vm.gc." + gc.name(), "" + isAcceptable);
}
}
/** /**
* Dumps the map to the file if the file name is given as the property. * Dumps the map to the file if the file name is given as the property.
* This functionality could be helpful to know context in the real * This functionality could be helpful to know context in the real