--- a/jdk/.hgtags Sat May 23 08:35:37 2009 +0400
+++ b/jdk/.hgtags Mon Jun 08 13:56:45 2009 -0700
@@ -33,3 +33,4 @@
7fd3bc37afe36f8f6165ba679db1229716db822a jdk7-b56
d5a1223e961891564de25c39fba6f2442d0fb045 jdk7-b57
9ba256e2e5c161b89e638390f998baa175ec9abe jdk7-b58
+2a5a1b269e89f27ebe419ef4cf6e66a3face0df1 jdk7-b59
--- a/jdk/make/common/Defs-linux.gmk Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/common/Defs-linux.gmk Mon Jun 08 13:56:45 2009 -0700
@@ -165,6 +165,12 @@
endif
endif
+# DEBUG_BINARIES overrides everything, use full -g debug information
+ifeq ($(DEBUG_BINARIES), true)
+ DEBUG_FLAG = -g
+ CFLAGS_REQUIRED += $(DEBUG_FLAG)
+endif
+
CFLAGS_OPT = $(CC_OPT)
CFLAGS_DBG = $(DEBUG_FLAG)
CFLAGS_COMMON += $(CFLAGS_REQUIRED)
@@ -240,8 +246,11 @@
#
ifeq ($(VARIANT), OPT)
ifneq ($(NO_STRIP), true)
- # Debug 'strip -g' leaves local function Elf symbols (better stack traces)
- POST_STRIP_PROCESS = $(STRIP) -g
+ ifneq ($(DEBUG_BINARIES), true)
+ # Debug 'strip -g' leaves local function Elf symbols (better stack
+ # traces)
+ POST_STRIP_PROCESS = $(STRIP) -g
+ endif
endif
endif
--- a/jdk/make/common/shared/Defs-windows.gmk Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/common/shared/Defs-windows.gmk Mon Jun 08 13:56:45 2009 -0700
@@ -277,9 +277,9 @@
# Assume PlatformSDK is in VS71 (will be empty if VS90)
_ms_sdk :=$(call FullPath,$(_msvc_dir)/PlatformSDK)
# Assume VS90, then VS80, then VS71
- _redist_sdk :=$(call FullPath,$(_msvc_dir)/../SDK/v3.5/Bin)
+ _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC90.CRT)
ifeq ($(_redist_sdk),)
- _redist_sdk :=$(call FullPath,$(_msvc_dir)/../SDK/v2.0/Bin)
+ _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC80.CRT)
ifeq ($(_redist_sdk),)
_redist_sdk :=$(call FullPath,$(_msvc_dir)/../SDK/v1.1/Bin)
endif
--- a/jdk/make/common/shared/Sanity.gmk Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/common/shared/Sanity.gmk Mon Jun 08 13:56:45 2009 -0700
@@ -1502,6 +1502,9 @@
# JIBX_LIBS_PATH must be valid
######################################################
sane-jibx:
+ifdef DISABLE_NIMBUS
+ $(call SanityWarning,Disabling Nimbus will remove public API in javax.swing.plaf.nimbus.)
+else
@if [ ! -r $(subst \,/,$(JIBX_LIBS_PATH))/jibx-run.jar ]; then \
$(ECHO) "ERROR: You do not have access to valid JIBX library files. \n" \
" Please check your access to \n" \
@@ -1509,6 +1512,7 @@
" and/or check your value of ALT_JDK_DEVTOOLS_DIR, ALT_JIBX_LIBS_PATH \n" \
"" >> $(ERROR_FILE) ; \
fi
+endif
######################################################
# MOZILLA_HEADERS_PATH must be valid
--- a/jdk/make/docs/Makefile Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/docs/Makefile Mon Jun 08 13:56:45 2009 -0700
@@ -324,6 +324,30 @@
# HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
#
+# Variables used by sctp target
+#
+
+SCTPAPI_SOURCEPATH = $(TOPDIR)/src/share/classes
+SCTPAPI_DOCDIR = $(DOCSDIR)/jre/api/nio/sctp/spec
+
+SCTPAPI_JAVADOCFLAGS = $(COMMON_JAVADOCFLAGS) \
+ -encoding ascii \
+ -nodeprecatedlist \
+ -d $(SCTPAPI_DOCDIR) \
+ -sourcepath $(SCTPAPI_SOURCEPATH) \
+ -windowtitle $(SCTPAPI_WINDOWTITLE) \
+ -doctitle $(SCTPAPI_DOCTITLE) \
+ -header $(SCTPAPI_JAVADOCHEADER) \
+ -bottom $(SCTPAPI_JAVADOCBOTTOM) \
+ -linkoffline ../../../../../api $(DOCSDIR)/api/
+
+SCTPAPI_WINDOWTITLE = "SCTP API"
+SCTPAPI_DOCTITLE = "SCTP API"
+SCTPAPI_JAVADOCHEADER = "SCTP API"
+SCTPAPI_JAVADOCBOTTOM = '<font size="-1"><a href="http://bugs.sun.com/services/bugreport/index.jsp">Report a bug or request a feature.</a><br>Copyright $(THIS_YEAR) Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.</font>'
+# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
+
+#
# Variables used by jvmti target
#
JVMTI_DOCS_SUBDIR = platform/jvmti
@@ -451,6 +475,7 @@
smartcardiodocs \
tracingdocs \
httpserverdocs \
+ sctpdocs \
mgmtdocs \
attachdocs \
jconsoledocs \
@@ -631,6 +656,14 @@
$(JAVADOC_CMD) $(HTTPSERVER_JAVADOCFLAGS) \
$(HTTPSERVER_PKGS)
+.PHONY: sctpdocs
+sctpdocs:
+ @# ######## api-sctp #######################
+ $(RM) -r $(SCTPAPI_DOCDIR)
+ $(MKDIR) -p $(SCTPAPI_DOCDIR)
+ $(JAVADOC_CMD) $(SCTPAPI_JAVADOCFLAGS) \
+ $(SCTPAPI_PKGS)
+
.PHONY: mgmtdocs
mgmtdocs: $(COPY-MIB-TARGET)
@# ######## api-management ############################
--- a/jdk/make/javax/swing/plaf/Makefile Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/javax/swing/plaf/Makefile Mon Jun 08 13:56:45 2009 -0700
@@ -34,7 +34,9 @@
#
include FILES.gmk
AUTO_FILES_JAVA_DIRS = javax/swing/plaf sun/swing com/sun/java/swing/plaf
-SUBDIRS = nimbus
+ifndef DISABLE_NIMBUS
+ SUBDIRS = nimbus
+endif
# Nimbus is handled in its own directory
AUTO_JAVA_PRUNE = nimbus
--- a/jdk/make/jprt.properties Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/jprt.properties Mon Jun 08 13:56:45 2009 -0700
@@ -53,19 +53,19 @@
# Standard list of jprt test targets for this workspace
jprt.test.targets=*-*-*-jvm98
-jprt.regression.test.targets= \
- *-*-*-java/lang, \
- *-*-*-java/security, \
- *-*-*-java/text, \
- *-*-*-java/util
+jprt.regression.test.targets= \
+ *-product-*-java/lang, \
+ *-product-*-java/security, \
+ *-product-*-java/text, \
+ *-product-*-java/util
#jprt.regression.test.targets= \
-# *-*-*-java/awt, \
-# *-*-*-java/beans, \
-# *-*-*-java/io, \
-# *-*-*-java/net, \
-# *-*-*-java/nio, \
-# *-*-*-java/rmi, \
+# *-product-*-java/awt, \
+# *-product-*-java/beans, \
+# *-product-*-java/io, \
+# *-product-*-java/net, \
+# *-product-*-java/nio, \
+# *-product-*-java/rmi, \
# Directories needed to build
jprt.bundle.exclude.src.dirs=build
--- a/jdk/make/sun/awt/mawt.gmk Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/sun/awt/mawt.gmk Mon Jun 08 13:56:45 2009 -0700
@@ -108,7 +108,9 @@
#
-#CFLAGS += -g
+ifeq ($(DEBUG_BINARIES), true)
+ CFLAGS += -g
+endif
ifeq ($(HEADLESS),true)
CFLAGS += -DHEADLESS=$(HEADLESS)
CPPFLAGS += -DHEADLESS=$(HEADLESS)
--- a/jdk/make/tools/Makefile Sat May 23 08:35:37 2009 +0400
+++ b/jdk/make/tools/Makefile Mon Jun 08 13:56:45 2009 -0700
@@ -51,9 +51,12 @@
makeclasslist \
strip_properties \
spp \
- swing-nimbus \
CharsetMapping
+ifndef DISABLE_NIMBUS
+ SUBDIRS += swing-nimbus
+endif
+
all build clean clobber::
$(SUBDIRS-loop)
--- a/jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c Sat May 23 08:35:37 2009 +0400
+++ b/jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c Mon Jun 08 13:56:45 2009 -0700
@@ -610,14 +610,19 @@
return FALSE;
}
- if (!Icc->Grow(Icc, delta)) {
- free(ptr);
- if(isNew) {
- Icc->TagCount--;
+ /* We change the size of Icc here only if we know it'll actually
+ * grow: if Icc is about to shrink we must wait until we've read
+ * the previous data. */
+ if (delta > 0) {
+ if (!Icc->Grow(Icc, delta)) {
+ free(ptr);
+ if(isNew) {
+ Icc->TagCount--;
+ }
+ J2dRlsTraceLn(J2D_TRACE_ERROR,
+ "_cmsModifyTagData: Icc->Grow() == FALSE");
+ return FALSE;
}
- J2dRlsTraceLn(J2D_TRACE_ERROR,
- "_cmsModifyTagData: Icc->Grow() == FALSE");
- return FALSE;
}
/* Compute size of tag data before/after the modified tag */
@@ -680,6 +685,18 @@
temp = TransportValue32(profileSize);
Icc->Write(Icc, sizeof(icUInt32Number), &temp);
+ /* Shrink Icc, if needed. */
+ if (delta < 0) {
+ if (!Icc->Grow(Icc, delta)) {
+ free(ptr);
+ if(isNew) {
+ Icc->TagCount--;
+ }
+ J2dRlsTraceLn(J2D_TRACE_ERROR,
+ "_cmsModifyTagData: Icc->Grow() == FALSE");
+ return FALSE;
+ }
+ }
/* Adjust tag offsets: if the tag is new, we must account
for the new tag table entry; otherwise, only those tags after
--- a/jdk/src/windows/native/sun/windows/awt_Window.cpp Sat May 23 08:35:37 2009 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Window.cpp Mon Jun 08 13:56:45 2009 -0700
@@ -464,7 +464,8 @@
size_t length = env->GetStringLength(javaWarningString) + 1;
warningString = new WCHAR[length];
env->GetStringRegion(javaWarningString, 0,
- static_cast<jsize>(length - 1), warningString);
+ static_cast<jsize>(length - 1),
+ reinterpret_cast<jchar*>(warningString));
warningString[length-1] = L'\0';
env->DeleteLocalRef(javaWarningString);
--- a/jdk/test/Makefile Sat May 23 08:35:37 2009 +0400
+++ b/jdk/test/Makefile Mon Jun 08 13:56:45 2009 -0700
@@ -189,6 +189,7 @@
$(shell $(GETMIXEDPATH) "$(JTREG)") \
-a -v:fail,error \
-ignore:quiet \
+ -timeoutFactor:2 \
$(EXTRA_JTREG_OPTIONS) \
-r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
-w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
--- a/jdk/test/java/lang/ThreadGroup/NullThreadName.java Sat May 23 08:35:37 2009 +0400
+++ b/jdk/test/java/lang/ThreadGroup/NullThreadName.java Mon Jun 08 13:56:45 2009 -0700
@@ -24,6 +24,7 @@
/*
* @test
* @bug 6576763
+ * @ignore until hotspot 6776144 bug is resolved
* @summary (thread) Thread constructors throw undocumented NPE for null name
*/
--- a/jdk/test/java/util/ResourceBundle/RestrictedBundleTest.java Sat May 23 08:35:37 2009 +0400
+++ b/jdk/test/java/util/ResourceBundle/RestrictedBundleTest.java Mon Jun 08 13:56:45 2009 -0700
@@ -23,6 +23,7 @@
/**
* @test
* @bug 4126805
+ * @ignore until 6842022 is resolved
* @run applet RestrictedBundleTest.html
* @summary I was able to reproduce this bug with 1.2b2, but not with the current 1.2
* build. It appears that it was fixed by changes to the class-loading mechanism,
--- a/jdk/test/java/util/WeakHashMap/GCDuringIteration.java Sat May 23 08:35:37 2009 +0400
+++ b/jdk/test/java/util/WeakHashMap/GCDuringIteration.java Mon Jun 08 13:56:45 2009 -0700
@@ -24,6 +24,7 @@
/*
* @test
* @bug 6499848
+ * @ignore until 6842353 is resolved
* @summary Check that iterators work properly in the presence of
* concurrent finalization and removal of elements.
*/