# HG changeset patch
# User asaha
# Date 1303429326 25200
# Node ID b2295905901a3f22054e011b9bb908bb120b4e08
# Parent 67b71a8153884e20922ffd1dc9bb1a3a76d231ee# Parent dd06e8d3da912120e828b3392369b336b413b070
Merge
diff -r 67b71a815388 -r b2295905901a make/com/sun/java/pack/Makefile
--- a/make/com/sun/java/pack/Makefile Thu Apr 21 15:33:10 2011 -0700
+++ b/make/com/sun/java/pack/Makefile Thu Apr 21 16:42:06 2011 -0700
@@ -56,10 +56,6 @@
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)
-
-
-
-
ifeq ($(STANDALONE),true)
ZIPOBJDIR = $(OUTPUTDIR)/tmp/sun/java.util.zip/zip/$(OBJDIRNAME)
@@ -131,8 +127,9 @@
pack200-tool:
$(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack)
+# ignore mapfile for non-product binary
unpacker:
- $(MAKE) $(UNPACK_EXE) STANDALONE=true LDMAPFLAGS_OPT= LDMAPFLAGS_DBG=
+ $(MAKE) $(UNPACK_EXE) STANDALONE=true LDMAPFLAGS_DBG=
ifeq ($(PLATFORM), windows)
IMVERSIONVALUE=$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(JDK_UPDATE_VER).$(COOKED_BUILD_NUMBER)
@@ -147,8 +144,14 @@
$(ECHO) "Resource files not required for Unix"
endif
+# Mapfile-vers.gmk, does not copy over the mapfile-vers-unpack200, when
+# the make utiliy is re-invoked, as in this case. In order to workaround
+# this special case, the mapfile required for the unpack200 command, is
+# explicitly copied over to the expected location.
$(UNPACK_EXE): $(UNPACK_EXE_FILES_o) updatefiles winres
$(prep-target)
+ $(RM) $(TEMPDIR)/mapfile-vers
+ $(CP) mapfile-vers-unpack200 $(TEMPDIR)/mapfile-vers
$(LINKER) $(LDDFLAGS) $(UNPACK_EXE_FILES_o) $(RES) $(LIBCXX) $(LDOUTPUT)$(TEMPDIR)/unpack200$(EXE_SUFFIX)
ifdef MT
$(MT) /manifest $(OBJDIR)/unpack200$(EXE_SUFFIX).manifest /outputresource:$(TEMPDIR)/unpack200$(EXE_SUFFIX);#1
diff -r 67b71a815388 -r b2295905901a make/com/sun/java/pack/mapfile-vers-unpack200
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/make/com/sun/java/pack/mapfile-vers-unpack200 Thu Apr 21 16:42:06 2011 -0700
@@ -0,0 +1,31 @@
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation. Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# 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.
+#
+
+# Define library interface.
+
+SUNWprivate_1.1 {
+ local:
+ *;
+};
diff -r 67b71a815388 -r b2295905901a make/com/sun/tools/attach/Makefile
--- a/make/com/sun/tools/attach/Makefile Thu Apr 21 15:33:10 2011 -0700
+++ b/make/com/sun/tools/attach/Makefile Thu Apr 21 16:42:06 2011 -0700
@@ -48,6 +48,9 @@
ifeq ($(PLATFORM), solaris)
OTHER_LDLIBS += -ldoor
endif
+ifeq ($(PLATFORM), windows)
+EXTRA_LIBS += psapi.lib
+endif
vpath %.c $(PLATFORM_SRC)/native/sun/tools/attach
diff -r 67b71a815388 -r b2295905901a make/common/Mapfile-vers.gmk
--- a/make/common/Mapfile-vers.gmk Thu Apr 21 15:33:10 2011 -0700
+++ b/make/common/Mapfile-vers.gmk Thu Apr 21 16:42:06 2011 -0700
@@ -52,8 +52,8 @@
endif
# If we are re-ordering functions in this solaris library, we need to make
- # sure that -xF is added to the compile lines. This option is critical and
- # enables the functions to be reordered.
+ # sure that -xF is added to the compile lines. This option is critical and
+ # enables the functions to be reordered.
ifdef FILES_reorder
CFLAGS_OPT += -xF
CXXFLAGS_OPT += -xF
@@ -76,7 +76,6 @@
endif # PLATFORM
-
ifeq ($(PLATFORM), linux)
ifeq ($(VARIANT), OPT)
diff -r 67b71a815388 -r b2295905901a make/common/Program.gmk
--- a/make/common/Program.gmk Thu Apr 21 15:33:10 2011 -0700
+++ b/make/common/Program.gmk Thu Apr 21 16:42:06 2011 -0700
@@ -55,6 +55,11 @@
program: $(ACTUAL_PROGRAM)
+# reuse the mapfiles in the launcher's directory, the same should
+# be applicable to the tool launchers as well.
+FILES_m = $(BUILDDIR)/java/main/java/mapfile-$(ARCH)
+include $(BUILDDIR)/common/Mapfile-vers.gmk
+
include $(JDK_TOPDIR)/make/common/Rules.gmk
ifdef NEVER_ACT_AS_SERVER_CLASS_MACHINE
diff -r 67b71a815388 -r b2295905901a make/common/Release.gmk
--- a/make/common/Release.gmk Thu Apr 21 15:33:10 2011 -0700
+++ b/make/common/Release.gmk Thu Apr 21 16:42:06 2011 -0700
@@ -885,12 +885,18 @@
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db)
DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null)
+# Java DB image. Move the Java DB demo directory into the JDK's demo
+# dir and in the process, rename it to db. Also remove index.html,
+# since it presumes docs are co-located. Also remove register.html (no
+# longer relevant).
initial-image-jdk-db: $(DB_ZIP_LIST)
$(MKDIR) -p $(JDK_IMAGE_DIR)/db
for d in $(DB_ZIP_LIST); do \
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \
done
-
+ $(RM) -rf $(DEMODIR)/db
+ $(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db
+ $(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/register.html
endif
# Standard jdk image
diff -r 67b71a815388 -r b2295905901a make/docs/Makefile
--- a/make/docs/Makefile Thu Apr 21 15:33:10 2011 -0700
+++ b/make/docs/Makefile Thu Apr 21 16:42:06 2011 -0700
@@ -53,7 +53,7 @@
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
# Url to Java Language Spec
-JLS3_URL = http://java.sun.com/docs/books/jls/
+#JLS3_URL = http://java.sun.com/docs/books/jls/
# Common Java trademark line
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
@@ -293,8 +293,8 @@
Java$(TRADEMARK) Platform
Standard Ed. $(JDK_MINOR_VERSION)
# Java language specification cite
-TAG_JLS3 = jls3:a:See \
-The Java Language Specification, Third Edition:
+TAG_JLS = jls:a:See \
+The Java™ Language Specification:
# Overview file for core apis
COREAPI_OVERVIEW = $(SHARE_SRC)/classes/overview-core.html
@@ -329,7 +329,7 @@
$(call OptionPair,-tag,specdefault:X) ; \
$(call OptionPair,-tag,Note:X) ; \
$(call OptionPair,-tag,ToDo:X) ; \
- $(call OptionPair,-tag,$(TAG_JLS3)) ; \
+ $(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionOnly,-splitIndex) ; \
$(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
$(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
@@ -1081,6 +1081,7 @@
$(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
$(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
$(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
+ $(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
$(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
$(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
diff -r 67b71a815388 -r b2295905901a make/java/main/java/Makefile
--- a/make/java/main/java/Makefile Thu Apr 21 15:33:10 2011 -0700
+++ b/make/java/main/java/Makefile Thu Apr 21 16:42:06 2011 -0700
@@ -61,5 +61,4 @@
ifeq ($(PLATFORM), solaris)
LDFLAGS += -R$(OPENWIN_LIB)
-LDFLAGS += -M mapfile-$(ARCH)
endif
diff -r 67b71a815388 -r b2295905901a make/java/main/java/mapfile-amd64
--- a/make/java/main/java/mapfile-amd64 Thu Apr 21 15:33:10 2011 -0700
+++ b/make/java/main/java/mapfile-amd64 Thu Apr 21 16:42:06 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
# interested in declaring a version, simply scoping the file is sufficient.
#
-{
+SUNWprivate_1.1 {
global:
main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time
diff -r 67b71a815388 -r b2295905901a make/java/main/java/mapfile-i586
--- a/make/java/main/java/mapfile-i586 Thu Apr 21 15:33:10 2011 -0700
+++ b/make/java/main/java/mapfile-i586 Thu Apr 21 16:42:06 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
# interested in declaring a version, simply scoping the file is sufficient.
#
-{
+SUNWprivate_1.1 {
global:
main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time
diff -r 67b71a815388 -r b2295905901a make/java/main/java/mapfile-sparc
--- a/make/java/main/java/mapfile-sparc Thu Apr 21 15:33:10 2011 -0700
+++ b/make/java/main/java/mapfile-sparc Thu Apr 21 16:42:06 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
# interested in declaring a version, simply scoping the file is sufficient.
#
-{
+SUNWprivate_1.1 {
global:
main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time
diff -r 67b71a815388 -r b2295905901a make/java/main/java/mapfile-sparcv9
--- a/make/java/main/java/mapfile-sparcv9 Thu Apr 21 15:33:10 2011 -0700
+++ b/make/java/main/java/mapfile-sparcv9 Thu Apr 21 16:42:06 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
# interested in declaring a version, simply scoping the file is sufficient.
#
-{
+SUNWprivate_1.1 {
global:
main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time
diff -r 67b71a815388 -r b2295905901a make/javax/crypto/Defs-jce.gmk
--- a/make/javax/crypto/Defs-jce.gmk Thu Apr 21 15:33:10 2011 -0700
+++ b/make/javax/crypto/Defs-jce.gmk Thu Apr 21 16:42:06 2011 -0700
@@ -58,7 +58,7 @@
SIGNING_KEY_DIR = /security/ws/JCE-signing/src
SIGNING_KEYSTORE = $(SIGNING_KEY_DIR)/KeyStore.jks
SIGNING_PASSPHRASE = $(SIGNING_KEY_DIR)/passphrase.txt
-SIGNING_ALIAS = jce_rsa
+SIGNING_ALIAS = oracle_jce_rsa
#
# Defines for signing the various jar files.
diff -r 67b71a815388 -r b2295905901a make/jpda/jdwp/jdwp.spec
--- a/make/jpda/jdwp/jdwp.spec Thu Apr 21 15:33:10 2011 -0700
+++ b/make/jpda/jdwp/jdwp.spec Thu Apr 21 16:42:06 2011 -0700
@@ -519,9 +519,8 @@
"Both the JNI signature and the generic signature are "
"returned for each class. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
)
@@ -623,8 +622,8 @@
(referenceType refType "The reference type ID.")
)
(Reply
- (int modBits "Modifier bits as defined in the "
- "VM Specification")
+ (int modBits "Modifier bits as defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification")
)
(ErrorSet
(Error INVALID_CLASS "refType is not the ID of a reference "
@@ -651,8 +650,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"field declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000
bit identifies "
"the field as synthetic, if the synthetic attribute "
"capability is available.")
@@ -686,8 +685,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"method declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000
bit identifies "
"the method as synthetic, if the synthetic attribute "
"capability is available.")
@@ -773,8 +772,8 @@
(Command Status=9
"Returns the current status of the reference type. The status "
"indicates the extent to which the reference type has been "
- "initialized, as described in the "
- "VM specification. "
+ "initialized, as described in section 2.1.6 of "
+ "The Java™ Virtual Machine Specification. "
"If the class is linked the PREPARED and VERIFIED bits in the returned status bits "
"will be set. If the class is initialized the INITIALIZED bit in the returned "
"status bits will be set. If an error occured during initialization then the "
@@ -852,9 +851,8 @@
"Returns the JNI signature of a reference type along with the "
"generic signature if there is one. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
"
(Out
@@ -882,9 +880,8 @@
"by the compiler. "
"Fields are returned in the order they occur in the class file. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
(referenceType refType "The reference type ID.")
@@ -900,8 +897,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"field declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000
bit identifies "
"the field as synthetic, if the synthetic attribute "
"capability is available.")
@@ -925,9 +922,8 @@
"if present, and any synthetic methods created by the compiler. "
"Methods are returned in the order they occur in the class file. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
(referenceType refType "The reference type ID.")
@@ -943,8 +939,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"method declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000
bit identifies "
"the method as synthetic, if the synthetic attribute "
"capability is available.")
@@ -1006,8 +1002,8 @@
)
(Command ConstantPool=18
"Return the raw bytes of the constant pool in the format of the "
- "constant_pool item of the Class File Format in the "
- "Java Virtual Machine Specification. "
+ "constant_pool item of the Class File Format in "
+ "The Java™ Virtual Machine Specification. "
"
Since JDWP version 1.6. Requires canGetConstantPool capability - see " "CapabilitiesNew."" (Out @@ -1016,7 +1012,8 @@ (Reply (int count "Total number of constant pool entries plus one. This " "corresponds to the constant_pool_count item of the " - "Class File Format in the Java Virtual Machine Specification. ") + "Class File Format in " + "The Java™ Virtual Machine Specification. ") (Repeat bytes (byte cpbytes "Raw bytes of constant pool") ) @@ -1324,7 +1321,8 @@ ) ) (Command Bytecodes=3 - "Retrieve the method's bytecodes as defined in the JVM Specification." + "Retrieve the method's bytecodes as defined in " + "The Java™ Virtual Machine Specification. " "Requires canGetBytecodes capability - see " "CapabilitiesNew." (Out @@ -1379,9 +1377,8 @@ "instance methods, the \"this\" reference is included in the " "table. Also, synthetic variables may be present. " "Generic signatures are described in the signature attribute " - "section in the " - " - "Java Virtual Machine Specification, 3rd Edition. " + "section in " + "The Java™ Virtual Machine Specification. " "Since JDWP version 1.5." (Out (referenceType refType "The class.") @@ -1970,8 +1967,9 @@ "
" "The method which will return early is referred to as the " "called method. The called method is the current method (as " - "defined by the Frames section in the Java Virtual Machine " - "Specification) for the specified thread at the time this command " + "defined by the Frames section in " + "The Java™ Virtual Machine Specification) " + "for the specified thread at the time this command " "is received. " "
" "The specified thread must be suspended. " diff -r 67b71a815388 -r b2295905901a make/mksample/Makefile --- a/make/mksample/Makefile Thu Apr 21 15:33:10 2011 -0700 +++ b/make/mksample/Makefile Thu Apr 21 16:42:06 2011 -0700 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -38,7 +38,7 @@ endif SUBDIRS = -SUBDIRS_misc = nio scripting nbproject +SUBDIRS_misc = nio scripting nbproject forkjoin SUBDIRS_enterprise = $(WEBSERVICES_SUBDIR) SUBDIRS_management = jmx diff -r 67b71a815388 -r b2295905901a make/mksample/forkjoin/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/make/mksample/forkjoin/Makefile Thu Apr 21 16:42:06 2011 -0700 @@ -0,0 +1,41 @@ +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Oracle designates this +# particular file as subject to the "Classpath" exception as provided +# by Oracle in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# 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. +# + +# +# Makefile for building all the samples under the forkjoin subdirectory. +# + +BUILDDIR = ../.. +PRODUCT = java +include $(BUILDDIR)/common/Defs.gmk + +SUBDIRS = mergesort +include $(BUILDDIR)/common/Subdirs.gmk + +all build clean clobber:: + $(SUBDIRS-loop) + +clobber clean :: + $(RM) -r $(SAMPLEDIR)/forkjoin diff -r 67b71a815388 -r b2295905901a make/mksample/forkjoin/mergesort/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/make/mksample/forkjoin/mergesort/Makefile Thu Apr 21 16:42:06 2011 -0700 @@ -0,0 +1,51 @@ +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Oracle designates this +# particular file as subject to the "Classpath" exception as provided +# by Oracle in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# 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. +# + +# +# Makefile for the forkjoin/mergesort sample code +# + +BUILDDIR = ../../.. + +PRODUCT = java + +include $(BUILDDIR)/common/Defs.gmk + +SAMPLE_SRC_DIR = $(SHARE_SRC)/sample/forkjoin/mergesort +SAMPLE_DST_DIR = $(SAMPLEDIR)/forkjoin/mergesort + +SAMPLE_FILES = \ + $(SAMPLE_DST_DIR)/MergeDemo.java \ + $(SAMPLE_DST_DIR)/MergeSort.java + +all build: $(SAMPLE_FILES) + +$(SAMPLE_DST_DIR)/%: $(SAMPLE_SRC_DIR)/% + $(install-file) + +clean clobber: + $(RM) -r $(SAMPLE_DST_DIR) + +.PHONY: all build clean clobber diff -r 67b71a815388 -r b2295905901a make/mksample/nio/Makefile --- a/make/mksample/nio/Makefile Thu Apr 21 15:33:10 2011 -0700 +++ b/make/mksample/nio/Makefile Thu Apr 21 16:42:06 2011 -0700 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -31,7 +31,7 @@ PRODUCT = java include $(BUILDDIR)/common/Defs.gmk -SUBDIRS = file multicast server +SUBDIRS = chatserver file multicast server include $(BUILDDIR)/common/Subdirs.gmk all build clean clobber:: diff -r 67b71a815388 -r b2295905901a make/mksample/nio/chatserver/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/make/mksample/nio/chatserver/Makefile Thu Apr 21 16:42:06 2011 -0700 @@ -0,0 +1,56 @@ +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Oracle designates this +# particular file as subject to the "Classpath" exception as provided +# by Oracle in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# 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. +# + +# +# Makefile for the nio/chatserver sample code +# + +BUILDDIR = ../../.. + +PRODUCT = java + +include $(BUILDDIR)/common/Defs.gmk + +SAMPLE_SRC_DIR = $(SHARE_SRC)/sample/nio/chatserver +SAMPLE_DST_DIR = $(SAMPLEDIR)/nio/chatserver + +SAMPLE_FILES = \ + $(SAMPLE_DST_DIR)/ChatServer.java \ + $(SAMPLE_DST_DIR)/Client.java \ + $(SAMPLE_DST_DIR)/ClientReader.java \ + $(SAMPLE_DST_DIR)/DataReader.java \ + $(SAMPLE_DST_DIR)/MessageReader.java \ + $(SAMPLE_DST_DIR)/NameReader.java \ + $(SAMPLE_DST_DIR)/README.txt + +all build: $(SAMPLE_FILES) + +$(SAMPLE_DST_DIR)/%: $(SAMPLE_SRC_DIR)/% + $(install-file) + +clean clobber: + $(RM) -r $(SAMPLE_DST_DIR) + +.PHONY: all build clean clobber diff -r 67b71a815388 -r b2295905901a src/share/bin/jli_util.h --- a/src/share/bin/jli_util.h Thu Apr 21 15:33:10 2011 -0700 +++ b/src/share/bin/jli_util.h Thu Apr 21 16:42:06 2011 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -35,7 +35,6 @@ void JLI_MemFree(void *ptr); int JLI_StrCCmp(const char *s1, const char* s2); - #define JLI_StrLen(p1) strlen((p1)) #define JLI_StrChr(p1, p2) strchr((p1), (p2)) #define JLI_StrRChr(p1, p2) strrchr((p1), (p2)) @@ -48,6 +47,7 @@ #define JLI_StrSpn(p1, p2) strspn((p1), (p2)) #define JLI_StrCSpn(p1, p2) strcspn((p1), (p2)) #define JLI_StrPBrk(p1, p2) strpbrk((p1), (p2)) +#define JLI_StrTok(p1, p2) strtok((p1), (p2)) /* On Windows lseek() is in io.h rather than the location dictated by POSIX. */ #ifdef _WIN32 diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/beans/TypeResolver.java --- a/src/share/classes/com/sun/beans/TypeResolver.java Thu Apr 21 15:33:10 2011 -0700 +++ b/src/share/classes/com/sun/beans/TypeResolver.java Thu Apr 21 16:42:06 2011 -0700 @@ -175,8 +175,8 @@ /** * Converts the given {@code type} to the corresponding class. * This method implements the concept of type erasure, - * that is described in section 4.6 - * of Java Language Specification. + * that is described in section 4.6 of + * The Java™ Language Specification. * * @param type the array of types to convert * @return a corresponding class diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/java/util/jar/pack/package.html --- a/src/share/classes/com/sun/java/util/jar/pack/package.html Thu Apr 21 15:33:10 2011 -0700 +++ b/src/share/classes/com/sun/java/util/jar/pack/package.html Thu Apr 21 16:42:06 2011 -0700 @@ -88,8 +88,8 @@ http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html
- * The modifier encodings are defined in the
- * Java Virtual Machine
- * Specification, in the access_flag
tables for
- * classes,
- * fields, and
- * methods.
+ * The modifier encodings are defined in
+ * The Java™ Virtual Machine Specification
+ * in the access_flag
tables for classes(section 4.1), fields(section 4.5), and methods(section 4.6).
*/
public int modifiers();
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/ArrayType.java
--- a/src/share/classes/com/sun/jdi/ArrayType.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/jdi/ArrayType.java Thu Apr 21 16:42:06 2011 -0700
@@ -77,11 +77,9 @@
* as specified in the array declaration.
*
* Note: The component type of a array will always be - * created or loaded before the array - see the - * Java Virtual - * Machine Specification, section - * 5.3.3 - * Creating Array Classes. + * created or loaded before the array - see + * The Java™ Virtual Machine Specification, + * section 5.3.3 - Creating Array Classes. * However, although the component type will be loaded it may * not yet be prepared, in which case the type will be returned * but attempts to perform some operations on the returned type diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/ClassLoaderReference.java --- a/src/share/classes/com/sun/jdi/ClassLoaderReference.java Thu Apr 21 15:33:10 2011 -0700 +++ b/src/share/classes/com/sun/jdi/ClassLoaderReference.java Thu Apr 21 16:42:06 2011 -0700 @@ -71,11 +71,9 @@ *
* No ordering of the returned list is guaranteed. *
- * See the revised - * Java - * Virtual Machine Specification section - * 5.3 - * Creation and Loading + * See + * The Java™ Virtual Machine Specification, + * section 5.3 - Creation and Loading * for more information on the initiating classloader. *
* Note that unlike {@link #definedClasses()} diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/ClassNotLoadedException.java --- a/src/share/classes/com/sun/jdi/ClassNotLoadedException.java Thu Apr 21 15:33:10 2011 -0700 +++ b/src/share/classes/com/sun/jdi/ClassNotLoadedException.java Thu Apr 21 16:42:06 2011 -0700 @@ -60,9 +60,9 @@ * is visible to the class loader of enclosing class. (That is, the * class loader of the enclosing class must be an initiating class * loader for the class in question.) - * See the Java - * Virtual Machine Specification for - * more details. + * See + * The Java™ Virtual Machine Specification + * for more details. * * @author Gordon Hirsch * @since 1.3 diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/ClassType.java --- a/src/share/classes/com/sun/jdi/ClassType.java Thu Apr 21 15:33:10 2011 -0700 +++ b/src/share/classes/com/sun/jdi/ClassType.java Thu Apr 21 16:42:06 2011 -0700 @@ -164,10 +164,8 @@ * component type is passed. The component type can be a primitive type. * Autoboxing is not supported. * - * See the - * Java Language Specification. - * section - * 5.2 + * See Section 5.2 of + * The Java™ Language Specification * for more information on assignment compatibility. *
* By default, all threads in the target VM are resumed while @@ -280,10 +278,8 @@ * component type is passed. The component type can be a primitive type. * Autoboxing is not supported. * - * See the - * Java Language Specification. - * section - * 5.2 + * See section 5.2 of + * The Java™ Language Specification * for more information on assignment compatibility. *
* By default, all threads in the target VM are resumed while
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/LocalVariable.java
--- a/src/share/classes/com/sun/jdi/LocalVariable.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/jdi/LocalVariable.java Thu Apr 21 16:42:06 2011 -0700
@@ -102,9 +102,7 @@
/**
* Gets the generic signature for this variable if there is one.
* Generic signatures are described in the
- *
- * "JavaTM
- * Virtual Machine Specification, 3rd Edition.
+ * The Java™ Virtual Machine Specification.
*
* @return a string containing the generic signature, or null
* if there is no generic signature.
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/Method.java
--- a/src/share/classes/com/sun/jdi/Method.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/jdi/Method.java Thu Apr 21 16:42:06 2011 -0700
@@ -164,10 +164,8 @@
/**
* Determine if this method is a bridge method. Bridge
- * methods are defined in the
- *
- * "JavaTM
- * Language Specification, 3rd Edition.
+ * methods are defined in
+ * The Java™ Language Specification.
*
* @return true
if the method is a bridge method,
* false otherwise.
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/ObjectReference.java
--- a/src/share/classes/com/sun/jdi/ObjectReference.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/jdi/ObjectReference.java Thu Apr 21 16:42:06 2011 -0700
@@ -118,10 +118,8 @@
* enclosing class's class loader). Primitive values must be
* either assignment compatible with the field type or must be
* convertible to the field type without loss of information.
- * See the
- * JavaTM Language Specification.
- * section
- * 5.2
+ * See section 5.2 of
+ * The Java™ Language Specification
* for more information on assignment
* compatibility.
*
@@ -182,18 +180,13 @@
* component type is passed. The component type can be a primitive type.
* Autoboxing is not supported.
*
- * See the
- * Java Language Specification.
- * section
- * 5.2
+ * See section 5.2 of
+ * The Java™ Language Specification
* for more information on assignment compatibility.
*
* By default, the method is invoked using dynamic lookup as
- * documented in the
- *
- * Java Language Specification
- * second edition, section
- * 15.12.4.4;
+ * documented in section 15.12.4.4 of
+ * The Java™ Language Specification
* in particular, overriding based on the runtime type of the object
* mirrored by this {@link ObjectReference} will occur. This
* behavior can be changed by specifying the
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/ReferenceType.java
--- a/src/share/classes/com/sun/jdi/ReferenceType.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/jdi/ReferenceType.java Thu Apr 21 16:42:06 2011 -0700
@@ -30,9 +30,8 @@
/**
* The type of an object in a target VM. ReferenceType encompasses
- * classes, interfaces, and array types as defined in the
- *
- * JavaTM Language Specification.
+ * classes, interfaces, and array types as defined in
+ * The Java™ Language Specification.
* All ReferenceType objects belong to one of the following
* subinterfaces:
* {@link ClassType} for classes,
@@ -98,9 +97,7 @@
/**
* Gets the generic signature for this type if there is one.
* Generic signatures are described in the
- *
- * "JavaTM
- * Virtual Machine Specification, 3rd Edition.
+ * The Java™ Virtual Machine Specification.
*
* @return a string containing the generic signature, or null
* if there is no generic signature.
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/jdi/TypeComponent.java
--- a/src/share/classes/com/sun/jdi/TypeComponent.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/jdi/TypeComponent.java Thu Apr 21 16:42:06 2011 -0700
@@ -74,9 +74,7 @@
/**
* Gets the generic signature for this TypeComponent if there is one.
* Generic signatures are described in the
- *
- * "JavaTM
- * Virtual Machine Specification, 3rd Edition.
+ * The Java™ Virtual Machine Specification.
*
* @return a string containing the generic signature, or null
* if there is no generic signature.
diff -r 67b71a815388 -r b2295905901a src/share/classes/com/sun/rowset/CachedRowSetImpl.java
--- a/src/share/classes/com/sun/rowset/CachedRowSetImpl.java Thu Apr 21 15:33:10 2011 -0700
+++ b/src/share/classes/com/sun/rowset/CachedRowSetImpl.java Thu Apr 21 16:42:06 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -111,13 +111,13 @@
*/
private String tableName;
-
/**
* A Vector
object containing the Row
* objects that comprise this CachedRowSetImpl
object.
* @serial
*/
- private Vector rvh;
+ private Vector
main
method of some class.
The virtual machine terminates all its activity and exits when
@@ -183,7 +182,8 @@
<...>
-The Java Virtual Machine Specification guarantees
+The Java™ Virtual Machine Specification
+ guarantees
that the JVM doesn't exit until this thread terminates.