diff --git a/.hgtags b/.hgtags index 5ab0b72ea45c49da761b3a23741ac4f50be8d738..dbeb53c93e0b1ded7433391da9a434c2cbcd5d09 100644 --- a/.hgtags +++ b/.hgtags @@ -33,3 +33,4 @@ d1c43d1f5676a24ba86221ac7cad5694f3a9afda jdk7-b54 7fd3bc37afe36f8f6165ba679db1229716db822a jdk7-b56 d5a1223e961891564de25c39fba6f2442d0fb045 jdk7-b57 9ba256e2e5c161b89e638390f998baa175ec9abe jdk7-b58 +2a5a1b269e89f27ebe419ef4cf6e66a3face0df1 jdk7-b59 diff --git a/make/common/Defs-linux.gmk b/make/common/Defs-linux.gmk index 591b6ccae31ffb39559f9aea7f33621cfb701975..672affde32b6fbb7cb17e0d4a94f145c187187fa 100644 --- a/make/common/Defs-linux.gmk +++ b/make/common/Defs-linux.gmk @@ -165,6 +165,12 @@ ifeq ($(FASTDEBUG), true) 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 @@ AUTOMATIC_PCH_OPTION = # 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 diff --git a/make/common/shared/Defs-windows.gmk b/make/common/shared/Defs-windows.gmk index abaa6a1807e6d5d2cd076e1e61346d3d1f6d45d1..ceaa61e665e35ce833ef49064a74cb49fd521160 100644 --- a/make/common/shared/Defs-windows.gmk +++ b/make/common/shared/Defs-windows.gmk @@ -277,9 +277,9 @@ ifeq ($(ARCH_DATA_MODEL), 32) # 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 diff --git a/make/common/shared/Sanity.gmk b/make/common/shared/Sanity.gmk index 84d5e2201a0b18e42108858f671c704b491a27d3..9c6a81ff3d97eafe23575b7a5b2b1488a40f44cf 100644 --- a/make/common/shared/Sanity.gmk +++ b/make/common/shared/Sanity.gmk @@ -1502,6 +1502,9 @@ endif # 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 @@ sane-jibx: " 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 diff --git a/make/docs/Makefile b/make/docs/Makefile index 301acde0826ad5fe0192489b686fa56b94ff89c2..d20b9774a1ba26ce2fe70fe4a429dbd1a7960a8f 100644 --- a/make/docs/Makefile +++ b/make/docs/Makefile @@ -323,6 +323,30 @@ HTTPSERVER_DOCTITLE = "Java$(TRADEMARK) HTTP Server" HTTPSERVER_JAVADOCHEADER = "Java HTTP Server" # 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 = 'Report a bug or request a feature.
Copyright $(THIS_YEAR) Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
' +# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk + # # Variables used by jvmti target # @@ -451,6 +475,7 @@ ALL_OTHER_TARGETS = \ smartcardiodocs \ tracingdocs \ httpserverdocs \ + sctpdocs \ mgmtdocs \ attachdocs \ jconsoledocs \ @@ -631,6 +656,14 @@ httpserverdocs: $(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 ############################ diff --git a/make/javax/swing/plaf/Makefile b/make/javax/swing/plaf/Makefile index aea88f2f7ff11aef3bb2785a085d11d6de192713..cf3bf0aa2745470ee0a647f95759237a961381d5 100644 --- a/make/javax/swing/plaf/Makefile +++ b/make/javax/swing/plaf/Makefile @@ -34,7 +34,9 @@ include $(BUILDDIR)/common/Defs.gmk # 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 diff --git a/make/jprt.properties b/make/jprt.properties index 5e21dba1408d27af255ec1baa363a71de7ca7e52..9535e7361e626ba1a41b6c977b6bdba67b86b160 100644 --- a/make/jprt.properties +++ b/make/jprt.properties @@ -53,19 +53,19 @@ jprt.solaris_x64.build.platform.match32=solaris_i586_5.10 # 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 diff --git a/make/sun/awt/mawt.gmk b/make/sun/awt/mawt.gmk index c7d1b41d02bab79e35b22c9a14d6a45bff03b3b7..d7c251a052e26d39c0c0d6fd8d5969317fd91ac8 100644 --- a/make/sun/awt/mawt.gmk +++ b/make/sun/awt/mawt.gmk @@ -108,7 +108,9 @@ vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/robot_child # -#CFLAGS += -g +ifeq ($(DEBUG_BINARIES), true) + CFLAGS += -g +endif ifeq ($(HEADLESS),true) CFLAGS += -DHEADLESS=$(HEADLESS) CPPFLAGS += -DHEADLESS=$(HEADLESS) diff --git a/make/tools/Makefile b/make/tools/Makefile index a927209f3304a497b8ac72da965d1b8ba7c6ffb2..badfa687a31bf5d44ab515ce7cd4badb73e68c82 100644 --- a/make/tools/Makefile +++ b/make/tools/Makefile @@ -51,9 +51,12 @@ SUBDIRS = \ makeclasslist \ strip_properties \ spp \ - swing-nimbus \ CharsetMapping +ifndef DISABLE_NIMBUS + SUBDIRS += swing-nimbus +endif + all build clean clobber:: $(SUBDIRS-loop) diff --git a/src/share/native/sun/java2d/cmm/lcms/LCMS.c b/src/share/native/sun/java2d/cmm/lcms/LCMS.c index 42a5cc23f302b22d6c73eb03c6c7d3caab0c4d9b..3478e2ed08119dedea269421c0d5c0c961188706 100644 --- a/src/share/native/sun/java2d/cmm/lcms/LCMS.c +++ b/src/share/native/sun/java2d/cmm/lcms/LCMS.c @@ -610,14 +610,19 @@ LCMSBOOL _cmsModifyTagData(cmsHPROFILE hProfile, icTagSignature sig, 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 @@ LCMSBOOL _cmsModifyTagData(cmsHPROFILE hProfile, icTagSignature sig, 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 diff --git a/src/windows/native/sun/windows/awt_Window.cpp b/src/windows/native/sun/windows/awt_Window.cpp index 3b0b1d3c2603b851662eb6f7174615328f097c9d..7bd7888949e41cfde6d0993cd38981a91779a346 100644 --- a/src/windows/native/sun/windows/awt_Window.cpp +++ b/src/windows/native/sun/windows/awt_Window.cpp @@ -464,7 +464,8 @@ void AwtWindow::CreateHWnd(JNIEnv *env, LPCWSTR title, size_t length = env->GetStringLength(javaWarningString) + 1; warningString = new WCHAR[length]; env->GetStringRegion(javaWarningString, 0, - static_cast(length - 1), warningString); + static_cast(length - 1), + reinterpret_cast(warningString)); warningString[length-1] = L'\0'; env->DeleteLocalRef(javaWarningString); diff --git a/test/Makefile b/test/Makefile index 775e7cbc91367fbd162fbf6ab331140071386771..418a824d2b37c6be842a2f9053fc8e2e2ba5d21c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -189,6 +189,7 @@ jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG) $(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 \ diff --git a/test/java/lang/ThreadGroup/NullThreadName.java b/test/java/lang/ThreadGroup/NullThreadName.java index 844fd93e2d815903b4994540027c76c95d0711cc..fe498371852ce469174ffa505d7feb77ed291cdf 100644 --- a/test/java/lang/ThreadGroup/NullThreadName.java +++ b/test/java/lang/ThreadGroup/NullThreadName.java @@ -24,6 +24,7 @@ /* * @test * @bug 6576763 + * @ignore until hotspot 6776144 bug is resolved * @summary (thread) Thread constructors throw undocumented NPE for null name */ diff --git a/test/java/util/ResourceBundle/RestrictedBundleTest.java b/test/java/util/ResourceBundle/RestrictedBundleTest.java index dc8244f7c4ea8558be55913c2ba73351c6d7951a..4cd3763e8214d5edae81ce9075f06e1f824d3757 100644 --- a/test/java/util/ResourceBundle/RestrictedBundleTest.java +++ b/test/java/util/ResourceBundle/RestrictedBundleTest.java @@ -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, diff --git a/test/java/util/WeakHashMap/GCDuringIteration.java b/test/java/util/WeakHashMap/GCDuringIteration.java index c5597c431376642064d9fc282d859364b789e06f..a52bc313fa184602ccaafbbd82e9aefc33ae1a88 100644 --- a/test/java/util/WeakHashMap/GCDuringIteration.java +++ b/test/java/util/WeakHashMap/GCDuringIteration.java @@ -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. */