mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
Merge
This commit is contained in:
commit
c5e36903f7
1393 changed files with 44844 additions and 23163 deletions
2
.hgtags
2
.hgtags
|
@ -216,3 +216,5 @@ f09ab0c416185e3cba371e81bcb6a16060c90f44 jdk8-b90
|
||||||
2fd6acba737b01e705e1f7c33588c922a3787f13 jdk8-b92
|
2fd6acba737b01e705e1f7c33588c922a3787f13 jdk8-b92
|
||||||
b72ae39e1329fefae50d4690db4fde43f3841a95 jdk8-b93
|
b72ae39e1329fefae50d4690db4fde43f3841a95 jdk8-b93
|
||||||
0d804e3b955dce406af6a79ac1cc35c696aff7fb jdk8-b94
|
0d804e3b955dce406af6a79ac1cc35c696aff7fb jdk8-b94
|
||||||
|
49fe9c8049132647ad38837a877dd473e6c9b0e5 jdk8-b95
|
||||||
|
ea73f01b9053e7165e7ba80f242bafecbc6af712 jdk8-b96
|
||||||
|
|
|
@ -216,3 +216,5 @@ cb51fb4789ac0b8be4056482077ddfb8f3bd3805 jdk8-b91
|
||||||
3a36c926a7aafa9d4a892a45ef3678e87ad8359b jdk8-b92
|
3a36c926a7aafa9d4a892a45ef3678e87ad8359b jdk8-b92
|
||||||
27c51c6e31c1ef36afa0e6efb031f9b13f26c12b jdk8-b93
|
27c51c6e31c1ef36afa0e6efb031f9b13f26c12b jdk8-b93
|
||||||
50d2bde060f2a9bbbe4da0c8986e20aca61f2e2e jdk8-b94
|
50d2bde060f2a9bbbe4da0c8986e20aca61f2e2e jdk8-b94
|
||||||
|
785d07fe38901ecc1b7e0145e53e1c3da9361fee jdk8-b95
|
||||||
|
c156084add486f941c12d886a0b1b2854795d557 jdk8-b96
|
||||||
|
|
|
@ -68,12 +68,15 @@ else
|
||||||
# First, find out the valid targets
|
# First, find out the valid targets
|
||||||
# Run the makefile with an arbitraty SPEC using -p -q (quiet dry-run and dump rules) to find
|
# Run the makefile with an arbitraty SPEC using -p -q (quiet dry-run and dump rules) to find
|
||||||
# available PHONY targets. Use this list as valid targets to pass on to the repeated calls.
|
# available PHONY targets. Use this list as valid targets to pass on to the repeated calls.
|
||||||
all_phony_targets=$(filter-out $(global_targets), $(strip $(shell \
|
all_phony_targets=$(filter-out $(global_targets) bundles-only, $(strip $(shell \
|
||||||
$(MAKE) -p -q -f common/makefiles SPEC=$(firstword $(SPEC)) | \
|
$(MAKE) -p -q -f common/makefiles/Main.gmk SPEC=$(firstword $(SPEC)) | \
|
||||||
grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
|
grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
|
||||||
|
|
||||||
$(all_phony_targets):
|
$(all_phony_targets):
|
||||||
@$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
|
$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) \
|
||||||
|
$(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
|
||||||
|
|
||||||
|
.PHONY: $(all_phony_targets)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -355,12 +355,24 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Install a
|
Install a
|
||||||
<a name="bootjdk">Bootstrap JDK</a>
|
<a name="bootjdk">Bootstrap JDK</a>.
|
||||||
<br>
|
|
||||||
All OpenJDK builds require access to a previously released
|
All OpenJDK builds require access to a previously released
|
||||||
JDK, this is often called a bootstrap JDK.
|
JDK called the <i>bootstrap JDK</i> or <i>boot JDK.</i>
|
||||||
Currently, for this JDK release we require
|
The general rule is that the bootstrap JDK
|
||||||
JDK 7 Update 7 or newer.
|
must be an instance of the previous major
|
||||||
|
release of the JDK. In addition, there may be
|
||||||
|
a requirement to use a release at or beyond a
|
||||||
|
particular update level.
|
||||||
|
<br> <br>
|
||||||
|
|
||||||
|
<b><i>Building JDK 8 requires use of a version
|
||||||
|
of JDK 7 that is at Update 7 or newer. JDK 8
|
||||||
|
developers should not use JDK 8 as the boot
|
||||||
|
JDK, to ensure that JDK 8 dependencies are
|
||||||
|
not introduced into the parts of the system
|
||||||
|
that are built with JDK 7.</i></b>
|
||||||
|
|
||||||
|
<br> <br>
|
||||||
The JDK 7 binaries can be downloaded from Oracle's
|
The JDK 7 binaries can be downloaded from Oracle's
|
||||||
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
||||||
target="_blank">JDK 7 download site</a>.
|
target="_blank">JDK 7 download site</a>.
|
||||||
|
|
|
@ -43,6 +43,16 @@ AC_DEFUN([ADD_JVM_ARG_IF_OK],
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# Appends a string to a path variable, only adding the : when needed.
|
||||||
|
AC_DEFUN([BASIC_APPEND_TO_PATH],
|
||||||
|
[
|
||||||
|
if test "x[$]$1" = x; then
|
||||||
|
$1="$2"
|
||||||
|
else
|
||||||
|
$1="[$]$1:$2"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
# This will make sure the given variable points to a full and proper
|
# This will make sure the given variable points to a full and proper
|
||||||
# path. This means:
|
# path. This means:
|
||||||
# 1) There will be no spaces in the path. On posix platforms,
|
# 1) There will be no spaces in the path. On posix platforms,
|
||||||
|
@ -351,7 +361,9 @@ fi
|
||||||
AC_SUBST(SYS_ROOT)
|
AC_SUBST(SYS_ROOT)
|
||||||
|
|
||||||
AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir],
|
AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir],
|
||||||
[search this directory for compilers and tools (for cross-compiling)])], [TOOLS_DIR=$with_tools_dir])
|
[search this directory for compilers and tools (for cross-compiling)])],
|
||||||
|
[TOOLS_DIR=$with_tools_dir]
|
||||||
|
)
|
||||||
|
|
||||||
AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
|
AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
|
||||||
[use this directory as base for tools-dir and sys-root (for cross-compiling)])],
|
[use this directory as base for tools-dir and sys-root (for cross-compiling)])],
|
||||||
|
@ -359,17 +371,14 @@ AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
|
||||||
if test "x$with_sys_root" != x; then
|
if test "x$with_sys_root" != x; then
|
||||||
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time])
|
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time])
|
||||||
fi
|
fi
|
||||||
if test "x$with_tools_dir" != x; then
|
BASIC_FIXUP_PATH([with_devkit])
|
||||||
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time])
|
BASIC_APPEND_TO_PATH([TOOLS_DIR],$with_devkit/bin)
|
||||||
fi
|
|
||||||
TOOLS_DIR=$with_devkit/bin
|
|
||||||
if test -d "$with_devkit/$host_alias/libc"; then
|
if test -d "$with_devkit/$host_alias/libc"; then
|
||||||
SYS_ROOT=$with_devkit/$host_alias/libc
|
SYS_ROOT=$with_devkit/$host_alias/libc
|
||||||
elif test -d "$with_devkit/$host/sys-root"; then
|
elif test -d "$with_devkit/$host/sys-root"; then
|
||||||
SYS_ROOT=$with_devkit/$host/sys-root
|
SYS_ROOT=$with_devkit/$host/sys-root
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
|
AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
|
||||||
|
@ -612,6 +621,14 @@ AC_PATH_PROGS(READELF, [readelf greadelf])
|
||||||
AC_PATH_PROG(HG, hg)
|
AC_PATH_PROG(HG, hg)
|
||||||
AC_PATH_PROG(STAT, stat)
|
AC_PATH_PROG(STAT, stat)
|
||||||
AC_PATH_PROG(TIME, time)
|
AC_PATH_PROG(TIME, time)
|
||||||
|
# Check if it's GNU time
|
||||||
|
IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
|
||||||
|
if test "x$IS_GNU_TIME" != x; then
|
||||||
|
IS_GNU_TIME=yes
|
||||||
|
else
|
||||||
|
IS_GNU_TIME=no
|
||||||
|
fi
|
||||||
|
AC_SUBST(IS_GNU_TIME)
|
||||||
|
|
||||||
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
|
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
|
||||||
BASIC_REQUIRE_PROG(COMM, comm)
|
BASIC_REQUIRE_PROG(COMM, comm)
|
||||||
|
|
|
@ -799,6 +799,7 @@ OS_VERSION_MAJOR
|
||||||
PKG_CONFIG
|
PKG_CONFIG
|
||||||
CODESIGN
|
CODESIGN
|
||||||
XATTR
|
XATTR
|
||||||
|
IS_GNU_TIME
|
||||||
TIME
|
TIME
|
||||||
STAT
|
STAT
|
||||||
HG
|
HG
|
||||||
|
@ -3083,6 +3084,9 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
||||||
# Also set JVM_ARG_OK to true/false depending on outcome.
|
# Also set JVM_ARG_OK to true/false depending on outcome.
|
||||||
|
|
||||||
|
|
||||||
|
# Appends a string to a path variable, only adding the : when needed.
|
||||||
|
|
||||||
|
|
||||||
# This will make sure the given variable points to a full and proper
|
# This will make sure the given variable points to a full and proper
|
||||||
# path. This means:
|
# path. This means:
|
||||||
# 1) There will be no spaces in the path. On posix platforms,
|
# 1) There will be no spaces in the path. On posix platforms,
|
||||||
|
@ -3782,7 +3786,7 @@ fi
|
||||||
#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=1371547824
|
DATE_WHEN_GENERATED=1372770384
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
|
@ -7457,6 +7461,7 @@ fi
|
||||||
# Check whether --with-tools-dir was given.
|
# Check whether --with-tools-dir was given.
|
||||||
if test "${with_tools_dir+set}" = set; then :
|
if test "${with_tools_dir+set}" = set; then :
|
||||||
withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
|
withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -7467,10 +7472,135 @@ if test "${with_devkit+set}" = set; then :
|
||||||
if test "x$with_sys_root" != x; then
|
if test "x$with_sys_root" != x; then
|
||||||
as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
|
as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test "x$with_tools_dir" != x; then
|
|
||||||
as_fn_error $? "Cannot specify both --with-devkit and --with-tools-dir at the same time" "$LINENO" 5
|
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
|
||||||
|
|
||||||
|
# Input might be given as Windows format, start by converting to
|
||||||
|
# unix format.
|
||||||
|
path="$with_devkit"
|
||||||
|
new_path=`$CYGPATH -u "$path"`
|
||||||
|
|
||||||
|
# Cygwin tries to hide some aspects of the Windows file system, such that binaries are
|
||||||
|
# named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
|
||||||
|
# the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
|
||||||
|
# "foo.exe" is OK but "foo" is an error.
|
||||||
|
#
|
||||||
|
# This test is therefore slightly more accurate than "test -f" to check for file precense.
|
||||||
|
# It is also a way to make sure we got the proper file name for the real test later on.
|
||||||
|
test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
|
||||||
|
if test "x$test_shortpath" = x; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
|
||||||
|
$as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
|
||||||
|
as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Call helper function which possibly converts this using DOS-style short mode.
|
||||||
|
# If so, the updated path is stored in $new_path.
|
||||||
|
|
||||||
|
input_path="$new_path"
|
||||||
|
# Check if we need to convert this using DOS-style short mode. If the path
|
||||||
|
# contains just simple characters, use it. Otherwise (spaces, weird characters),
|
||||||
|
# take no chances and rewrite it.
|
||||||
|
# Note: m4 eats our [], so we need to use [ and ] instead.
|
||||||
|
has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
|
||||||
|
if test "x$has_forbidden_chars" != x; then
|
||||||
|
# Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
|
||||||
|
shortmode_path=`$CYGPATH -s -m -a "$input_path"`
|
||||||
|
path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
|
||||||
|
if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
|
||||||
|
# Going to short mode and back again did indeed matter. Since short mode is
|
||||||
|
# case insensitive, let's make it lowercase to improve readability.
|
||||||
|
shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||||
|
# Now convert it back to Unix-stile (cygpath)
|
||||||
|
input_path=`$CYGPATH -u "$shortmode_path"`
|
||||||
|
new_path="$input_path"
|
||||||
fi
|
fi
|
||||||
TOOLS_DIR=$with_devkit/bin
|
fi
|
||||||
|
|
||||||
|
test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
|
||||||
|
if test "x$test_cygdrive_prefix" = x; then
|
||||||
|
# As a simple fix, exclude /usr/bin since it's not a real path.
|
||||||
|
if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
|
||||||
|
# The path is in a Cygwin special directory (e.g. /home). We need this converted to
|
||||||
|
# a path prefixed by /cygdrive for fixpath to work.
|
||||||
|
new_path="$CYGWIN_ROOT_PATH$input_path"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$path" != "x$new_path"; then
|
||||||
|
with_devkit="$new_path"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
|
||||||
|
$as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
|
||||||
|
|
||||||
|
path="$with_devkit"
|
||||||
|
has_colon=`$ECHO $path | $GREP ^.:`
|
||||||
|
new_path="$path"
|
||||||
|
if test "x$has_colon" = x; then
|
||||||
|
# Not in mixed or Windows style, start by that.
|
||||||
|
new_path=`cmd //c echo $path`
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
input_path="$new_path"
|
||||||
|
# Check if we need to convert this using DOS-style short mode. If the path
|
||||||
|
# contains just simple characters, use it. Otherwise (spaces, weird characters),
|
||||||
|
# take no chances and rewrite it.
|
||||||
|
# Note: m4 eats our [], so we need to use [ and ] instead.
|
||||||
|
has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
|
||||||
|
if test "x$has_forbidden_chars" != x; then
|
||||||
|
# Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
|
||||||
|
new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
windows_path="$new_path"
|
||||||
|
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
|
||||||
|
unix_path=`$CYGPATH -u "$windows_path"`
|
||||||
|
new_path="$unix_path"
|
||||||
|
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
|
||||||
|
unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
|
||||||
|
new_path="$unix_path"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$path" != "x$new_path"; then
|
||||||
|
with_devkit="$new_path"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
|
||||||
|
$as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Save the first 10 bytes of this path to the storage, so fixpath can work.
|
||||||
|
all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
|
||||||
|
|
||||||
|
else
|
||||||
|
# We're on a posix platform. Hooray! :)
|
||||||
|
path="$with_devkit"
|
||||||
|
has_space=`$ECHO "$path" | $GREP " "`
|
||||||
|
if test "x$has_space" != x; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
|
||||||
|
$as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
|
||||||
|
as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use eval to expand a potential ~
|
||||||
|
eval path="$path"
|
||||||
|
if test ! -f "$path" && test ! -d "$path"; then
|
||||||
|
as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
|
with_devkit="`cd "$path"; $THEPWDCMD -L`"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$TOOLS_DIR" = x; then
|
||||||
|
TOOLS_DIR="$with_devkit/bin"
|
||||||
|
else
|
||||||
|
TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
|
||||||
|
fi
|
||||||
|
|
||||||
if test -d "$with_devkit/$host_alias/libc"; then
|
if test -d "$with_devkit/$host_alias/libc"; then
|
||||||
SYS_ROOT=$with_devkit/$host_alias/libc
|
SYS_ROOT=$with_devkit/$host_alias/libc
|
||||||
elif test -d "$with_devkit/$host/sys-root"; then
|
elif test -d "$with_devkit/$host/sys-root"; then
|
||||||
|
@ -7481,7 +7611,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Setup default logging of stdout and stderr to build.log in the output root.
|
# Setup default logging of stdout and stderr to build.log in the output root.
|
||||||
BUILD_LOG='$(OUTPUT_ROOT)/build.log'
|
BUILD_LOG='$(OUTPUT_ROOT)/build.log'
|
||||||
BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
|
BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
|
||||||
|
@ -10222,6 +10351,14 @@ $as_echo "no" >&6; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Check if it's GNU time
|
||||||
|
IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
|
||||||
|
if test "x$IS_GNU_TIME" != x; then
|
||||||
|
IS_GNU_TIME=yes
|
||||||
|
else
|
||||||
|
IS_GNU_TIME=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
|
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
|
||||||
|
|
||||||
|
@ -18933,15 +19070,6 @@ $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_serve
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "x$SYS_ROOT" != "x/" ; then
|
|
||||||
CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
|
|
||||||
CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
|
|
||||||
OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
|
|
||||||
OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
|
|
||||||
CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
|
|
||||||
LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Store the CFLAGS etal passed to the configure script.
|
# Store the CFLAGS etal passed to the configure script.
|
||||||
ORG_CFLAGS="$CFLAGS"
|
ORG_CFLAGS="$CFLAGS"
|
||||||
ORG_CXXFLAGS="$CXXFLAGS"
|
ORG_CXXFLAGS="$CXXFLAGS"
|
||||||
|
@ -19892,7 +20020,7 @@ $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\
|
||||||
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
||||||
# First line typically looks something like:
|
# First line typically looks something like:
|
||||||
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
|
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
|
||||||
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1`
|
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
|
||||||
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
|
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
|
||||||
COMPILER_VENDOR="Microsoft CL.EXE"
|
COMPILER_VENDOR="Microsoft CL.EXE"
|
||||||
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
|
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
|
||||||
|
@ -21465,7 +21593,7 @@ $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\
|
||||||
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
||||||
# First line typically looks something like:
|
# First line typically looks something like:
|
||||||
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
|
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
|
||||||
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1`
|
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
|
||||||
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
|
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
|
||||||
COMPILER_VENDOR="Microsoft CL.EXE"
|
COMPILER_VENDOR="Microsoft CL.EXE"
|
||||||
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
|
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
|
||||||
|
@ -23725,19 +23853,20 @@ $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;}
|
||||||
RC_FLAGS="$RC_FLAGS -d NDEBUG"
|
RC_FLAGS="$RC_FLAGS -d NDEBUG"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
|
|
||||||
if test "x$JDK_UPDATE_VERSION" = x; then :
|
|
||||||
|
|
||||||
JDK_UPDATE_VERSION_NOTNULL=0
|
# The version variables used to create RC_FLAGS may be overridden
|
||||||
|
# in a custom configure script, or possibly the command line.
|
||||||
fi
|
# Let those variables be expanded at make time in spec.gmk.
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
|
# The \$ are escaped to the shell, and the $(...) variables
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
|
# are evaluated by make.
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
|
RC_FLAGS="$RC_FLAGS \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
|
-d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
|
-d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
|
-d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
|
-d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
|
||||||
|
-d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
|
||||||
|
-d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
|
||||||
|
-d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
|
||||||
|
|
||||||
# lib.exe is used to create static libraries.
|
# lib.exe is used to create static libraries.
|
||||||
# Extract the first word of "lib", so it can be a program name with args.
|
# Extract the first word of "lib", so it can be a program name with args.
|
||||||
|
|
|
@ -510,6 +510,7 @@ TAR:=@TAR@
|
||||||
TAIL:=@TAIL@
|
TAIL:=@TAIL@
|
||||||
TEE:=@TEE@
|
TEE:=@TEE@
|
||||||
TIME:=@TIME@
|
TIME:=@TIME@
|
||||||
|
IS_GNU_TIME:=@IS_GNU_TIME@
|
||||||
TR:=@TR@
|
TR:=@TR@
|
||||||
TOUCH:=@TOUCH@
|
TOUCH:=@TOUCH@
|
||||||
UNIQ:=@UNIQ@
|
UNIQ:=@UNIQ@
|
||||||
|
|
|
@ -47,7 +47,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_COMPILER_VERSION],
|
||||||
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
||||||
# First line typically looks something like:
|
# First line typically looks something like:
|
||||||
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
|
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
|
||||||
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1`
|
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
|
||||||
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \(@<:@1-9@:>@@<:@0-9.@:>@*\) .*/\1/p"`
|
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \(@<:@1-9@:>@@<:@0-9.@:>@*\) .*/\1/p"`
|
||||||
COMPILER_VENDOR="Microsoft CL.EXE"
|
COMPILER_VENDOR="Microsoft CL.EXE"
|
||||||
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
|
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
|
||||||
|
@ -226,15 +226,6 @@ BDEPS_CHECK_MODULE(DEVKIT, devkit, xxx,
|
||||||
],
|
],
|
||||||
[])
|
[])
|
||||||
|
|
||||||
if test "x$SYS_ROOT" != "x/" ; then
|
|
||||||
CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
|
|
||||||
CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
|
|
||||||
OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
|
|
||||||
OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
|
|
||||||
CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
|
|
||||||
LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Store the CFLAGS etal passed to the configure script.
|
# Store the CFLAGS etal passed to the configure script.
|
||||||
ORG_CFLAGS="$CFLAGS"
|
ORG_CFLAGS="$CFLAGS"
|
||||||
ORG_CXXFLAGS="$CXXFLAGS"
|
ORG_CXXFLAGS="$CXXFLAGS"
|
||||||
|
@ -378,17 +369,20 @@ AS_IF([test "x$OPENJDK_TARGET_OS" = xwindows], [
|
||||||
AS_IF([test "x$VARIANT" = xOPT], [
|
AS_IF([test "x$VARIANT" = xOPT], [
|
||||||
RC_FLAGS="$RC_FLAGS -d NDEBUG"
|
RC_FLAGS="$RC_FLAGS -d NDEBUG"
|
||||||
])
|
])
|
||||||
JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
|
|
||||||
AS_IF([test "x$JDK_UPDATE_VERSION" = x], [
|
# The version variables used to create RC_FLAGS may be overridden
|
||||||
JDK_UPDATE_VERSION_NOTNULL=0
|
# in a custom configure script, or possibly the command line.
|
||||||
])
|
# Let those variables be expanded at make time in spec.gmk.
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
|
# The \$ are escaped to the shell, and the $(...) variables
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
|
# are evaluated by make.
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
|
RC_FLAGS="$RC_FLAGS \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
|
-d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
|
-d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
|
-d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
|
||||||
RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
|
-d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
|
||||||
|
-d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
|
||||||
|
-d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
|
||||||
|
-d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
|
||||||
|
|
||||||
# lib.exe is used to create static libraries.
|
# lib.exe is used to create static libraries.
|
||||||
AC_CHECK_PROG([WINAR], [lib],[lib],,,)
|
AC_CHECK_PROG([WINAR], [lib],[lib],,,)
|
||||||
|
|
|
@ -155,7 +155,7 @@ define SetupArchive
|
||||||
# lines, but not here for use in make dependencies.
|
# lines, but not here for use in make dependencies.
|
||||||
$1_DEPS+=$$(subst \,,$$(foreach src,$$($1_SRCS),$$(addprefix $$(src)/,$$($1_EXTRA_FILES))))
|
$1_DEPS+=$$(subst \,,$$(foreach src,$$($1_SRCS),$$(addprefix $$(src)/,$$($1_EXTRA_FILES))))
|
||||||
ifeq (,$$($1_SKIP_METAINF))
|
ifeq (,$$($1_SKIP_METAINF))
|
||||||
$1_DEPS+=$$(call CacheFind $$(wildcard $$(addsuffix /META-INF,$$($1_SRCS))))
|
$1_DEPS+=$$(call CacheFind,$$(wildcard $$(addsuffix /META-INF,$$($1_SRCS))))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -255,12 +255,21 @@ define SetupZipArchive
|
||||||
$(call LogSetupMacroEntry,SetupZipArchive($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
|
$(call LogSetupMacroEntry,SetupZipArchive($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
|
||||||
$(if $(16),$(error Internal makefile error: Too many arguments to SetupZipArchive, please update JavaCompilation.gmk))
|
$(if $(16),$(error Internal makefile error: Too many arguments to SetupZipArchive, please update JavaCompilation.gmk))
|
||||||
|
|
||||||
|
# To avoid running find over too large sets of files, which causes make to crash
|
||||||
|
# on some configurations (cygwin), use INCLUDES and INCLUDE_FILES to build a set
|
||||||
|
# of directories to run find in, if available.
|
||||||
|
ifneq ($$($1_INCLUDES)$$($1_INCLUDE_FILES),)
|
||||||
|
$1_FIND_LIST := $$(wildcard $$(foreach i,$$($1_SRC),\
|
||||||
|
$$(addprefix $$i/,$$($1_INCLUDES) $$($1_INCLUDE_FILES))))
|
||||||
|
else
|
||||||
|
$1_FIND_LIST := $$($1_SRC)
|
||||||
|
endif
|
||||||
|
|
||||||
# Find all files in the source tree.
|
# Find all files in the source tree.
|
||||||
$1_ALL_SRCS := $$(call not-containing,_the.,\
|
$1_ALL_SRCS := $$(call not-containing,_the.,\
|
||||||
$$(filter $$(addprefix %,$$($1_SUFFIXES)),$$(call CacheFind $$($1_SRC))))
|
$$(filter $$(addprefix %,$$($1_SUFFIXES)),$$(call CacheFind,$$($1_FIND_LIST))))
|
||||||
|
|
||||||
ifneq ($$($1_INCLUDES),)
|
ifneq ($$($1_INCLUDES),)
|
||||||
$1_SRC_INCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_INCLUDES))))
|
|
||||||
ifneq ($$($1_SUFFIXES),)
|
ifneq ($$($1_SUFFIXES),)
|
||||||
$1_ZIP_INCLUDES := $$(foreach s,$$($1_SUFFIXES),\
|
$1_ZIP_INCLUDES := $$(foreach s,$$($1_SUFFIXES),\
|
||||||
$$(addprefix -i$(SPACE)$(DQUOTE),$$(addsuffix /*$$s$(DQUOTE),$$($1_INCLUDES))))
|
$$(addprefix -i$(SPACE)$(DQUOTE),$$(addsuffix /*$$s$(DQUOTE),$$($1_INCLUDES))))
|
||||||
|
@ -269,12 +278,8 @@ define SetupZipArchive
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifneq ($$($1_INCLUDE_FILES),)
|
ifneq ($$($1_INCLUDE_FILES),)
|
||||||
$1_SRC_INCLUDES += $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$($1_INCLUDE_FILES)))
|
|
||||||
$1_ZIP_INCLUDES += $$(addprefix -i$(SPACE),$$($1_INCLUDE_FILES))
|
$1_ZIP_INCLUDES += $$(addprefix -i$(SPACE),$$($1_INCLUDE_FILES))
|
||||||
endif
|
endif
|
||||||
ifneq ($$($1_SRC_INCLUDES),)
|
|
||||||
$1_ALL_SRCS := $$(filter $$($1_SRC_INCLUDES),$$($1_ALL_SRCS))
|
|
||||||
endif
|
|
||||||
ifneq ($$($1_EXCLUDES),)
|
ifneq ($$($1_EXCLUDES),)
|
||||||
$1_SRC_EXCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_EXCLUDES))))
|
$1_SRC_EXCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_EXCLUDES))))
|
||||||
$1_ZIP_EXCLUDES := $$(addprefix -x$(SPACE)$(DQUOTE),$$(addsuffix /*$(DQUOTE),$$($1_EXCLUDES)))
|
$1_ZIP_EXCLUDES := $$(addprefix -x$(SPACE)$(DQUOTE),$$(addsuffix /*$(DQUOTE),$$($1_EXCLUDES)))
|
||||||
|
|
|
@ -183,7 +183,7 @@ bootcycle-images-only: start-make
|
||||||
test: images test-only
|
test: images test-only
|
||||||
test-only: start-make
|
test-only: start-make
|
||||||
@$(call TargetEnter)
|
@$(call TargetEnter)
|
||||||
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k JT_HOME=$(JT_HOME) MAKEFLAGS= PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
|
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
|
||||||
@$(call TargetExit)
|
@$(call TargetExit)
|
||||||
|
|
||||||
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
|
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
|
||||||
|
@ -192,7 +192,7 @@ source-tips: $(OUTPUT_ROOT)/source_tips
|
||||||
$(OUTPUT_ROOT)/source_tips: FRC
|
$(OUTPUT_ROOT)/source_tips: FRC
|
||||||
@$(MKDIR) -p $(@D)
|
@$(MKDIR) -p $(@D)
|
||||||
@$(RM) $@
|
@$(RM) $@
|
||||||
@$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@)
|
@$(call GetSourceTips)
|
||||||
|
|
||||||
|
|
||||||
# Remove everything, except the output from configure.
|
# Remove everything, except the output from configure.
|
||||||
|
|
|
@ -332,9 +332,11 @@ define SetupLogging
|
||||||
# Shell redefinition trick inspired by http://www.cmcrossroads.com/ask-mr-make/6535-tracing-rule-execution-in-gnu-make
|
# Shell redefinition trick inspired by http://www.cmcrossroads.com/ask-mr-make/6535-tracing-rule-execution-in-gnu-make
|
||||||
# For each target executed, will print
|
# For each target executed, will print
|
||||||
# Building <TARGET> (from <FIRST PREREQUISITE>) (<ALL NEWER PREREQUISITES> newer)
|
# Building <TARGET> (from <FIRST PREREQUISITE>) (<ALL NEWER PREREQUISITES> newer)
|
||||||
# but with a limit of 20 on <ALL NEWER PREREQUISITES>, to avoid cluttering logs too much (and causing a crash on Cygwin).
|
# but with a limit of 20 on <ALL NEWER PREREQUISITES>, to avoid cluttering logs too much
|
||||||
OLD_SHELL:=$$(SHELL)
|
# (and causing a crash on Cygwin).
|
||||||
WRAPPER_SHELL:=$$(OLD_SHELL) $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(TIME),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log $$(OLD_SHELL)
|
# Default shell seems to always be /bin/sh. Must override with bash to get this to work on Solaris.
|
||||||
|
# Only use time if it's GNU time which supports format and output file.
|
||||||
|
WRAPPER_SHELL:=/bin/bash $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(findstring yes,$$(IS_GNU_TIME)),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log /bin/bash
|
||||||
SHELL=$$(warning $$(if $$@,Building $$@,Running shell command) $$(if $$<, (from $$<))$$(if $$?, ($$(wordlist 1, 20, $$?) $$(if $$(wordlist 21, 22, $$?), ... [in total $$(words $$?) files]) newer)))$$(WRAPPER_SHELL)
|
SHELL=$$(warning $$(if $$@,Building $$@,Running shell command) $$(if $$<, (from $$<))$$(if $$?, ($$(wordlist 1, 20, $$?) $$(if $$(wordlist 21, 22, $$?), ... [in total $$(words $$?) files]) newer)))$$(WRAPPER_SHELL)
|
||||||
endif
|
endif
|
||||||
# Never remove warning messages; this is just for completeness
|
# Never remove warning messages; this is just for completeness
|
||||||
|
|
|
@ -216,3 +216,5 @@ c8286839d0df04aba819ec4bef12b86babccf30e jdk8-b90
|
||||||
717aa26f8e0a1c0e768aebb3a763aca56db0c83e jdk8-b92
|
717aa26f8e0a1c0e768aebb3a763aca56db0c83e jdk8-b92
|
||||||
8dc9d7ccbb2d77fd89bc321bb02e67c152aca257 jdk8-b93
|
8dc9d7ccbb2d77fd89bc321bb02e67c152aca257 jdk8-b93
|
||||||
22f5d7f261d9d61a953d2d9a53f2e9ce0ca361d1 jdk8-b94
|
22f5d7f261d9d61a953d2d9a53f2e9ce0ca361d1 jdk8-b94
|
||||||
|
2cf36f43df36137980d9828cec27003ec10daeee jdk8-b95
|
||||||
|
3357c2776431d51a8de326a85e0f41420e40774f jdk8-b96
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -39,7 +39,6 @@ com_sun_corba_se_impl_orbutil_java = \
|
||||||
com/sun/corba/se/impl/orbutil/ObjectStreamClassUtil_1_3.java \
|
com/sun/corba/se/impl/orbutil/ObjectStreamClassUtil_1_3.java \
|
||||||
com/sun/corba/se/impl/orbutil/ORBConstants.java \
|
com/sun/corba/se/impl/orbutil/ORBConstants.java \
|
||||||
com/sun/corba/se/impl/orbutil/ORBUtility.java \
|
com/sun/corba/se/impl/orbutil/ORBUtility.java \
|
||||||
com/sun/corba/se/impl/orbutil/ORBClassLoader.java \
|
|
||||||
com/sun/corba/se/impl/orbutil/RepIdDelegator.java \
|
com/sun/corba/se/impl/orbutil/RepIdDelegator.java \
|
||||||
com/sun/corba/se/impl/orbutil/RepositoryIdFactory.java \
|
com/sun/corba/se/impl/orbutil/RepositoryIdFactory.java \
|
||||||
com/sun/corba/se/impl/orbutil/RepositoryIdStrings.java \
|
com/sun/corba/se/impl/orbutil/RepositoryIdStrings.java \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -81,7 +81,6 @@ import com.sun.corba.se.impl.logging.ActivationSystemException ;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
|
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.util.Utility;
|
import com.sun.corba.se.impl.util.Utility;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -33,6 +33,8 @@ package com.sun.corba.se.impl.corba;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.security.AccessController;
|
||||||
|
import java.security.PrivilegedAction;
|
||||||
import java.util.List ;
|
import java.util.List ;
|
||||||
import java.util.ArrayList ;
|
import java.util.ArrayList ;
|
||||||
|
|
||||||
|
@ -504,7 +506,13 @@ public class AnyImpl extends Any
|
||||||
public org.omg.CORBA.portable.OutputStream create_output_stream()
|
public org.omg.CORBA.portable.OutputStream create_output_stream()
|
||||||
{
|
{
|
||||||
//debug.log ("create_output_stream");
|
//debug.log ("create_output_stream");
|
||||||
return new AnyOutputStream(orb);
|
final ORB finalorb = this.orb;
|
||||||
|
return AccessController.doPrivileged(new PrivilegedAction<AnyOutputStream>() {
|
||||||
|
@Override
|
||||||
|
public AnyOutputStream run() {
|
||||||
|
return new AnyOutputStream(finalorb);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -600,7 +600,8 @@ public final class TypeCodeImpl extends TypeCode
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CDROutputStream newOutputStream(ORB orb) {
|
public static CDROutputStream newOutputStream(ORB orb) {
|
||||||
TypeCodeOutputStream tcos = new TypeCodeOutputStream((ORB)orb);
|
TypeCodeOutputStream tcos =
|
||||||
|
sun.corba.OutputStreamFactory.newTypeCodeOutputStream(orb);
|
||||||
//if (debug) System.out.println("Created TypeCodeOutputStream " + tcos +
|
//if (debug) System.out.println("Created TypeCodeOutputStream " + tcos +
|
||||||
// " with no parent");
|
// " with no parent");
|
||||||
return tcos;
|
return tcos;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -66,7 +66,7 @@ import org.omg.CORBA.CompletionStatus;
|
||||||
*
|
*
|
||||||
* @author Ram Jeyaraman
|
* @author Ram Jeyaraman
|
||||||
*/
|
*/
|
||||||
public class IDLJavaSerializationOutputStream extends CDROutputStreamBase {
|
final class IDLJavaSerializationOutputStream extends CDROutputStreamBase {
|
||||||
|
|
||||||
private ORB orb;
|
private ORB orb;
|
||||||
private byte encodingVersion;
|
private byte encodingVersion;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -196,7 +196,8 @@ public final class TypeCodeOutputStream extends EncapsOutputStream
|
||||||
}
|
}
|
||||||
|
|
||||||
public TypeCodeOutputStream createEncapsulation(org.omg.CORBA.ORB _orb) {
|
public TypeCodeOutputStream createEncapsulation(org.omg.CORBA.ORB _orb) {
|
||||||
TypeCodeOutputStream encap = new TypeCodeOutputStream((ORB)_orb, isLittleEndian());
|
TypeCodeOutputStream encap =
|
||||||
|
sun.corba.OutputStreamFactory.newTypeCodeOutputStream((ORB)_orb, isLittleEndian());
|
||||||
encap.setEnclosingOutputStream(this);
|
encap.setEnclosingOutputStream(this);
|
||||||
encap.makeEncapsulation();
|
encap.makeEncapsulation();
|
||||||
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + encap + " with parent " + this);
|
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + encap + " with parent " + this);
|
||||||
|
@ -211,7 +212,8 @@ public final class TypeCodeOutputStream extends EncapsOutputStream
|
||||||
|
|
||||||
public static TypeCodeOutputStream wrapOutputStream(OutputStream os) {
|
public static TypeCodeOutputStream wrapOutputStream(OutputStream os) {
|
||||||
boolean littleEndian = ((os instanceof CDROutputStream) ? ((CDROutputStream)os).isLittleEndian() : false);
|
boolean littleEndian = ((os instanceof CDROutputStream) ? ((CDROutputStream)os).isLittleEndian() : false);
|
||||||
TypeCodeOutputStream tos = new TypeCodeOutputStream((ORB)os.orb(), littleEndian);
|
TypeCodeOutputStream tos =
|
||||||
|
sun.corba.OutputStreamFactory.newTypeCodeOutputStream((ORB)os.orb(), littleEndian);
|
||||||
tos.setEnclosingOutputStream(os);
|
tos.setEnclosingOutputStream(os);
|
||||||
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + tos + " with parent " + os);
|
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + tos + " with parent " + os);
|
||||||
return tos;
|
return tos;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -155,7 +155,8 @@ public final class CDREncapsCodec
|
||||||
// be versioned. This can be handled once this work is complete.
|
// be versioned. This can be handled once this work is complete.
|
||||||
|
|
||||||
// Create output stream with default endianness.
|
// Create output stream with default endianness.
|
||||||
EncapsOutputStream cdrOut = new EncapsOutputStream(
|
EncapsOutputStream cdrOut =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(
|
||||||
(com.sun.corba.se.spi.orb.ORB)orb, giopVersion );
|
(com.sun.corba.se.spi.orb.ORB)orb, giopVersion );
|
||||||
|
|
||||||
// This is an encapsulation, so put out the endian:
|
// This is an encapsulation, so put out the endian:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -77,7 +77,6 @@ import com.sun.corba.se.impl.logging.InterceptorsSystemException;
|
||||||
import com.sun.corba.se.impl.logging.ORBUtilSystemException;
|
import com.sun.corba.se.impl.logging.ORBUtilSystemException;
|
||||||
import com.sun.corba.se.impl.logging.OMGSystemException;
|
import com.sun.corba.se.impl.logging.OMGSystemException;
|
||||||
import com.sun.corba.se.impl.corba.RequestImpl;
|
import com.sun.corba.se.impl.corba.RequestImpl;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.StackImpl;
|
import com.sun.corba.se.impl.orbutil.StackImpl;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -86,13 +86,14 @@ import com.sun.corba.se.impl.encoding.CDRInputStream_1_0;
|
||||||
import com.sun.corba.se.impl.encoding.EncapsOutputStream;
|
import com.sun.corba.se.impl.encoding.EncapsOutputStream;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
|
|
||||||
import com.sun.corba.se.impl.util.RepositoryId;
|
import com.sun.corba.se.impl.util.RepositoryId;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.logging.InterceptorsSystemException;
|
import com.sun.corba.se.impl.logging.InterceptorsSystemException;
|
||||||
import com.sun.corba.se.impl.logging.OMGSystemException;
|
import com.sun.corba.se.impl.logging.OMGSystemException;
|
||||||
|
|
||||||
|
import sun.corba.SharedSecrets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of the RequestInfo interface as specified in
|
* Implementation of the RequestInfo interface as specified in
|
||||||
* orbos/99-12-02 section 5.4.1.
|
* orbos/99-12-02 section 5.4.1.
|
||||||
|
@ -452,7 +453,8 @@ public abstract class RequestInfoImpl
|
||||||
|
|
||||||
// Find the read method on the helper class:
|
// Find the read method on the helper class:
|
||||||
String helperClassName = className + "Helper";
|
String helperClassName = className + "Helper";
|
||||||
Class helperClass = ORBClassLoader.loadClass( helperClassName );
|
Class<?> helperClass =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass( helperClassName );
|
||||||
Class[] readParams = new Class[1];
|
Class[] readParams = new Class[1];
|
||||||
readParams[0] = org.omg.CORBA.portable.InputStream.class;
|
readParams[0] = org.omg.CORBA.portable.InputStream.class;
|
||||||
Method readMethod = helperClass.getMethod( "read", readParams );
|
Method readMethod = helperClass.getMethod( "read", readParams );
|
||||||
|
@ -512,7 +514,8 @@ public abstract class RequestInfoImpl
|
||||||
Class exceptionClass = userException.getClass();
|
Class exceptionClass = userException.getClass();
|
||||||
String className = exceptionClass.getName();
|
String className = exceptionClass.getName();
|
||||||
String helperClassName = className + "Helper";
|
String helperClassName = className + "Helper";
|
||||||
Class helperClass = ORBClassLoader.loadClass( helperClassName );
|
Class<?> helperClass =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass( helperClassName );
|
||||||
|
|
||||||
// Find insert( Any, class ) method
|
// Find insert( Any, class ) method
|
||||||
Class[] insertMethodParams = new Class[2];
|
Class[] insertMethodParams = new Class[2];
|
||||||
|
@ -656,7 +659,8 @@ public abstract class RequestInfoImpl
|
||||||
// Convert the "core" service context to an
|
// Convert the "core" service context to an
|
||||||
// "IOP" ServiceContext by writing it to a
|
// "IOP" ServiceContext by writing it to a
|
||||||
// CDROutputStream and reading it back.
|
// CDROutputStream and reading it back.
|
||||||
EncapsOutputStream out = new EncapsOutputStream(myORB);
|
EncapsOutputStream out =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(myORB);
|
||||||
|
|
||||||
context.write( out, GIOPVersion.V1_2 );
|
context.write( out, GIOPVersion.V1_2 );
|
||||||
InputStream inputStream = out.create_input_stream();
|
InputStream inputStream = out.create_input_stream();
|
||||||
|
@ -692,8 +696,8 @@ public abstract class RequestInfoImpl
|
||||||
{
|
{
|
||||||
int id = 0 ;
|
int id = 0 ;
|
||||||
// Convert IOP.service_context to core.ServiceContext:
|
// Convert IOP.service_context to core.ServiceContext:
|
||||||
EncapsOutputStream outputStream = new EncapsOutputStream(
|
EncapsOutputStream outputStream =
|
||||||
myORB );
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(myORB);
|
||||||
InputStream inputStream = null;
|
InputStream inputStream = null;
|
||||||
UnknownServiceContext coreServiceContext = null;
|
UnknownServiceContext coreServiceContext = null;
|
||||||
ServiceContextHelper.write( outputStream, service_context );
|
ServiceContextHelper.write( outputStream, service_context );
|
||||||
|
|
|
@ -300,11 +300,11 @@ public class IIOPInputStream
|
||||||
resetStream();
|
resetStream();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setOrbStream(org.omg.CORBA_2_3.portable.InputStream os) {
|
final void setOrbStream(org.omg.CORBA_2_3.portable.InputStream os) {
|
||||||
orbStream = os;
|
orbStream = os;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final org.omg.CORBA_2_3.portable.InputStream getOrbStream() {
|
final org.omg.CORBA_2_3.portable.InputStream getOrbStream() {
|
||||||
return orbStream;
|
return orbStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -327,11 +327,11 @@ public class IIOPInputStream
|
||||||
return (javax.rmi.CORBA.ValueHandler) vhandler;
|
return (javax.rmi.CORBA.ValueHandler) vhandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void increaseRecursionDepth(){
|
final void increaseRecursionDepth(){
|
||||||
recursionDepth++;
|
recursionDepth++;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int decreaseRecursionDepth(){
|
final int decreaseRecursionDepth(){
|
||||||
return --recursionDepth;
|
return --recursionDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -124,19 +124,19 @@ public class IIOPOutputStream
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setOrbStream(org.omg.CORBA_2_3.portable.OutputStream os) {
|
final void setOrbStream(org.omg.CORBA_2_3.portable.OutputStream os) {
|
||||||
orbStream = os;
|
orbStream = os;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final org.omg.CORBA_2_3.portable.OutputStream getOrbStream() {
|
final org.omg.CORBA_2_3.portable.OutputStream getOrbStream() {
|
||||||
return orbStream;
|
return orbStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void increaseRecursionDepth(){
|
final void increaseRecursionDepth(){
|
||||||
recursionDepth++;
|
recursionDepth++;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int decreaseRecursionDepth(){
|
final int decreaseRecursionDepth(){
|
||||||
return --recursionDepth;
|
return --recursionDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ public abstract class InputStreamHook extends ObjectInputStream
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract byte getStreamFormatVersion();
|
protected abstract byte getStreamFormatVersion();
|
||||||
protected abstract org.omg.CORBA_2_3.portable.InputStream getOrbStream();
|
abstract org.omg.CORBA_2_3.portable.InputStream getOrbStream();
|
||||||
|
|
||||||
// Description of possible actions
|
// Description of possible actions
|
||||||
protected static class ReadObjectState {
|
protected static class ReadObjectState {
|
||||||
|
|
|
@ -179,7 +179,7 @@ public abstract class OutputStreamHook extends ObjectOutputStream
|
||||||
putFields.write(this);
|
putFields.write(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract org.omg.CORBA_2_3.portable.OutputStream getOrbStream();
|
abstract org.omg.CORBA_2_3.portable.OutputStream getOrbStream();
|
||||||
|
|
||||||
protected abstract void beginOptionalCustomData();
|
protected abstract void beginOptionalCustomData();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -98,6 +98,14 @@ public class ValueUtility {
|
||||||
public ValueHandlerImpl newValueHandlerImpl() {
|
public ValueHandlerImpl newValueHandlerImpl() {
|
||||||
return ValueHandlerImpl.getInstance();
|
return ValueHandlerImpl.getInstance();
|
||||||
}
|
}
|
||||||
|
public Class<?> loadClass(String className) throws ClassNotFoundException {
|
||||||
|
if (Thread.currentThread().getContextClassLoader() != null) {
|
||||||
|
return Thread.currentThread().getContextClassLoader().
|
||||||
|
loadClass(className);
|
||||||
|
} else {
|
||||||
|
return ClassLoader.getSystemClassLoader().loadClass(className);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,8 @@ public class EncapsulationUtility
|
||||||
static public void writeEncapsulation( WriteContents obj,
|
static public void writeEncapsulation( WriteContents obj,
|
||||||
OutputStream os )
|
OutputStream os )
|
||||||
{
|
{
|
||||||
EncapsOutputStream out = new EncapsOutputStream( (ORB)os.orb() ) ;
|
EncapsOutputStream out =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)os.orb());
|
||||||
|
|
||||||
out.putEndian() ;
|
out.putEndian() ;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -95,7 +95,8 @@ public class GenericTaggedProfile extends GenericIdentifiable implements TaggedP
|
||||||
|
|
||||||
public org.omg.IOP.TaggedProfile getIOPProfile()
|
public org.omg.IOP.TaggedProfile getIOPProfile()
|
||||||
{
|
{
|
||||||
EncapsOutputStream os = new EncapsOutputStream( orb ) ;
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(orb);
|
||||||
write( os ) ;
|
write( os ) ;
|
||||||
InputStream is = (InputStream)(os.create_input_stream()) ;
|
InputStream is = (InputStream)(os.create_input_stream()) ;
|
||||||
return org.omg.IOP.TaggedProfileHelper.read( is ) ;
|
return org.omg.IOP.TaggedProfileHelper.read( is ) ;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -213,7 +213,8 @@ public class IORImpl extends IdentifiableContainerBase implements IOR
|
||||||
{
|
{
|
||||||
StringWriter bs;
|
StringWriter bs;
|
||||||
|
|
||||||
MarshalOutputStream s = new EncapsOutputStream(factory);
|
MarshalOutputStream s =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
|
||||||
s.putEndian();
|
s.putEndian();
|
||||||
write( (OutputStream)s );
|
write( (OutputStream)s );
|
||||||
bs = new StringWriter();
|
bs = new StringWriter();
|
||||||
|
@ -237,7 +238,8 @@ public class IORImpl extends IdentifiableContainerBase implements IOR
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.omg.IOP.IOR getIOPIOR() {
|
public org.omg.IOP.IOR getIOPIOR() {
|
||||||
EncapsOutputStream os = new EncapsOutputStream(factory);
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
|
||||||
write(os);
|
write(os);
|
||||||
InputStream is = (InputStream) (os.create_input_stream());
|
InputStream is = (InputStream) (os.create_input_stream());
|
||||||
return org.omg.IOP.IORHelper.read(is);
|
return org.omg.IOP.IORHelper.read(is);
|
||||||
|
|
|
@ -87,7 +87,8 @@ public class ObjectKeyImpl implements ObjectKey
|
||||||
|
|
||||||
public byte[] getBytes( org.omg.CORBA.ORB orb )
|
public byte[] getBytes( org.omg.CORBA.ORB orb )
|
||||||
{
|
{
|
||||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
|
||||||
write( os ) ;
|
write( os ) ;
|
||||||
return os.toByteArray() ;
|
return os.toByteArray() ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -61,7 +61,8 @@ public class TaggedComponentFactoryFinderImpl extends
|
||||||
public TaggedComponent create( org.omg.CORBA.ORB orb,
|
public TaggedComponent create( org.omg.CORBA.ORB orb,
|
||||||
org.omg.IOP.TaggedComponent comp )
|
org.omg.IOP.TaggedComponent comp )
|
||||||
{
|
{
|
||||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
|
||||||
org.omg.IOP.TaggedComponentHelper.write( os, comp ) ;
|
org.omg.IOP.TaggedComponentHelper.write( os, comp ) ;
|
||||||
InputStream is = (InputStream)(os.create_input_stream() ) ;
|
InputStream is = (InputStream)(os.create_input_stream() ) ;
|
||||||
// Skip the component ID: we just wrote it out above
|
// Skip the component ID: we just wrote it out above
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -247,7 +247,8 @@ public class IIOPProfileImpl extends IdentifiableBase implements IIOPProfile
|
||||||
|
|
||||||
public org.omg.IOP.TaggedProfile getIOPProfile()
|
public org.omg.IOP.TaggedProfile getIOPProfile()
|
||||||
{
|
{
|
||||||
EncapsOutputStream os = new EncapsOutputStream( orb ) ;
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(orb);
|
||||||
os.write_long( getId() ) ;
|
os.write_long( getId() ) ;
|
||||||
write( os ) ;
|
write( os ) ;
|
||||||
InputStream is = (InputStream)(os.create_input_stream()) ;
|
InputStream is = (InputStream)(os.create_input_stream()) ;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -132,8 +132,9 @@ public class IIOPProfileTemplateImpl extends TaggedProfileTemplateBase
|
||||||
// Note that this cannot be accomplished with a codec!
|
// Note that this cannot be accomplished with a codec!
|
||||||
|
|
||||||
// Use the byte order of the given stream
|
// Use the byte order of the given stream
|
||||||
OutputStream encapsulatedOS = new EncapsOutputStream( (ORB)os.orb(),
|
OutputStream encapsulatedOS =
|
||||||
((CDROutputStream)os).isLittleEndian() ) ;
|
sun.corba.OutputStreamFactory.newEncapsOutputStream(
|
||||||
|
(ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;
|
||||||
|
|
||||||
okeyTemplate.write( id, encapsulatedOS ) ;
|
okeyTemplate.write( id, encapsulatedOS ) ;
|
||||||
EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;
|
EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;
|
||||||
|
|
|
@ -147,6 +147,14 @@ public class StubDelegateImpl implements javax.rmi.CORBA.StubDelegate
|
||||||
return ior.equals( other.ior ) ;
|
return ior.equals( other.ior ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
if (ior == null) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return ior.hashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a string representation of this stub. Returns the same string
|
* Returns a string representation of this stub. Returns the same string
|
||||||
* for all stubs that represent the same remote object.
|
* for all stubs that represent the same remote object.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -109,12 +109,9 @@ import com.sun.corba.se.impl.logging.OMGSystemException;
|
||||||
import com.sun.corba.se.impl.util.Utility;
|
import com.sun.corba.se.impl.util.Utility;
|
||||||
import com.sun.corba.se.impl.util.IdentityHashtable;
|
import com.sun.corba.se.impl.util.IdentityHashtable;
|
||||||
import com.sun.corba.se.impl.util.JDKBridge;
|
import com.sun.corba.se.impl.util.JDKBridge;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.impl.logging.UtilSystemException;
|
import com.sun.corba.se.impl.logging.UtilSystemException;
|
||||||
import com.sun.corba.se.spi.logging.CORBALogDomains;
|
import com.sun.corba.se.spi.logging.CORBALogDomains;
|
||||||
import sun.corba.SharedSecrets;
|
import sun.corba.SharedSecrets;
|
||||||
import sun.corba.JavaCorbaAccess;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides utility methods that can be used by stubs and ties to
|
* Provides utility methods that can be used by stubs and ties to
|
||||||
|
@ -263,7 +260,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
|
||||||
return new MarshalException(message,inner);
|
return new MarshalException(message,inner);
|
||||||
} else if (ex instanceof ACTIVITY_REQUIRED) {
|
} else if (ex instanceof ACTIVITY_REQUIRED) {
|
||||||
try {
|
try {
|
||||||
Class cl = ORBClassLoader.loadClass(
|
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
|
||||||
"javax.activity.ActivityRequiredException");
|
"javax.activity.ActivityRequiredException");
|
||||||
Class[] params = new Class[2];
|
Class[] params = new Class[2];
|
||||||
params[0] = java.lang.String.class;
|
params[0] = java.lang.String.class;
|
||||||
|
@ -279,7 +276,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
|
||||||
}
|
}
|
||||||
} else if (ex instanceof ACTIVITY_COMPLETED) {
|
} else if (ex instanceof ACTIVITY_COMPLETED) {
|
||||||
try {
|
try {
|
||||||
Class cl = ORBClassLoader.loadClass(
|
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
|
||||||
"javax.activity.ActivityCompletedException");
|
"javax.activity.ActivityCompletedException");
|
||||||
Class[] params = new Class[2];
|
Class[] params = new Class[2];
|
||||||
params[0] = java.lang.String.class;
|
params[0] = java.lang.String.class;
|
||||||
|
@ -295,7 +292,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
|
||||||
}
|
}
|
||||||
} else if (ex instanceof INVALID_ACTIVITY) {
|
} else if (ex instanceof INVALID_ACTIVITY) {
|
||||||
try {
|
try {
|
||||||
Class cl = ORBClassLoader.loadClass(
|
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
|
||||||
"javax.activity.InvalidActivityException");
|
"javax.activity.InvalidActivityException");
|
||||||
Class[] params = new Class[2];
|
Class[] params = new Class[2];
|
||||||
params[0] = java.lang.String.class;
|
params[0] = java.lang.String.class;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -48,7 +48,6 @@ import com.sun.corba.se.spi.transport.ReadTimeouts;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
|
import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
|
||||||
import com.sun.corba.se.impl.legacy.connection.USLPort;
|
import com.sun.corba.se.impl.legacy.connection.USLPort;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants ;
|
import com.sun.corba.se.impl.orbutil.ORBConstants ;
|
||||||
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -152,7 +152,6 @@ import com.sun.corba.se.impl.oa.toa.TOAFactory;
|
||||||
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
|
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
|
||||||
import com.sun.corba.se.impl.oa.poa.DelegateImpl;
|
import com.sun.corba.se.impl.oa.poa.DelegateImpl;
|
||||||
import com.sun.corba.se.impl.oa.poa.POAFactory;
|
import com.sun.corba.se.impl.oa.poa.POAFactory;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.StackImpl;
|
import com.sun.corba.se.impl.orbutil.StackImpl;
|
||||||
|
@ -551,7 +550,7 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
|
||||||
public synchronized org.omg.CORBA.portable.OutputStream create_output_stream()
|
public synchronized org.omg.CORBA.portable.OutputStream create_output_stream()
|
||||||
{
|
{
|
||||||
checkShutdownState();
|
checkShutdownState();
|
||||||
return new EncapsOutputStream(this);
|
return sun.corba.OutputStreamFactory.newEncapsOutputStream(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -149,7 +149,7 @@ public class ORBSingleton extends ORB
|
||||||
}
|
}
|
||||||
|
|
||||||
public OutputStream create_output_stream() {
|
public OutputStream create_output_stream() {
|
||||||
return new EncapsOutputStream(this);
|
return sun.corba.OutputStreamFactory.newEncapsOutputStream(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TypeCode create_struct_tc(String id,
|
public TypeCode create_struct_tc(String id,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -78,7 +78,6 @@ import com.sun.corba.se.impl.encoding.OSFCodeSetRegistry ;
|
||||||
import com.sun.corba.se.impl.legacy.connection.USLPort ;
|
import com.sun.corba.se.impl.legacy.connection.USLPort ;
|
||||||
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
||||||
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler ;
|
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler ;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants ;
|
import com.sun.corba.se.impl.orbutil.ORBConstants ;
|
||||||
import com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr ;
|
import com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr ;
|
||||||
import com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr ;
|
import com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr ;
|
||||||
|
@ -86,6 +85,8 @@ import com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr ;
|
||||||
import com.sun.corba.se.impl.transport.DefaultIORToSocketInfoImpl;
|
import com.sun.corba.se.impl.transport.DefaultIORToSocketInfoImpl;
|
||||||
import com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl;
|
import com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl;
|
||||||
|
|
||||||
|
import sun.corba.SharedSecrets;
|
||||||
|
|
||||||
/** Initialize the parser data for the standard ORB parser. This is used both
|
/** Initialize the parser data for the standard ORB parser. This is used both
|
||||||
* to implement ORBDataParserImpl and to provide the basic testing framework
|
* to implement ORBDataParserImpl and to provide the basic testing framework
|
||||||
* for ORBDataParserImpl.
|
* for ORBDataParserImpl.
|
||||||
|
@ -455,6 +456,10 @@ public class ParserTable {
|
||||||
return other instanceof TestBadServerIdHandler ;
|
return other instanceof TestBadServerIdHandler ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public void handle( ObjectKey objectKey )
|
public void handle( ObjectKey objectKey )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -518,6 +523,10 @@ public class ParserTable {
|
||||||
return other instanceof TestLegacyORBSocketFactory ;
|
return other instanceof TestLegacyORBSocketFactory ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public ServerSocket createServerSocket( String type, int port )
|
public ServerSocket createServerSocket( String type, int port )
|
||||||
{
|
{
|
||||||
return null ;
|
return null ;
|
||||||
|
@ -543,6 +552,10 @@ public class ParserTable {
|
||||||
return other instanceof TestORBSocketFactory ;
|
return other instanceof TestORBSocketFactory ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public void setORB(ORB orb)
|
public void setORB(ORB orb)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -572,6 +585,10 @@ public class ParserTable {
|
||||||
return other instanceof TestIORToSocketInfo;
|
return other instanceof TestIORToSocketInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public List getSocketInfo(IOR ior)
|
public List getSocketInfo(IOR ior)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
@ -608,6 +625,10 @@ public class ParserTable {
|
||||||
return other instanceof TestContactInfoListFactory;
|
return other instanceof TestContactInfoListFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public void setORB(ORB orb) { }
|
public void setORB(ORB orb) { }
|
||||||
|
|
||||||
public CorbaContactInfoList create( IOR ior ) { return null; }
|
public CorbaContactInfoList create( IOR ior ) { return null; }
|
||||||
|
@ -640,8 +661,8 @@ public class ParserTable {
|
||||||
String param = (String)value ;
|
String param = (String)value ;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class legacySocketFactoryClass =
|
Class<?> legacySocketFactoryClass =
|
||||||
ORBClassLoader.loadClass(param);
|
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||||
// For security reasons avoid creating an instance if
|
// For security reasons avoid creating an instance if
|
||||||
// this socket factory class is not one that would fail
|
// this socket factory class is not one that would fail
|
||||||
// the class cast anyway.
|
// the class cast anyway.
|
||||||
|
@ -670,7 +691,8 @@ public class ParserTable {
|
||||||
String param = (String)value ;
|
String param = (String)value ;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class socketFactoryClass = ORBClassLoader.loadClass(param);
|
Class<?> socketFactoryClass =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||||
// For security reasons avoid creating an instance if
|
// For security reasons avoid creating an instance if
|
||||||
// this socket factory class is not one that would fail
|
// this socket factory class is not one that would fail
|
||||||
// the class cast anyway.
|
// the class cast anyway.
|
||||||
|
@ -699,7 +721,8 @@ public class ParserTable {
|
||||||
String param = (String)value ;
|
String param = (String)value ;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class iorToSocketInfoClass = ORBClassLoader.loadClass(param);
|
Class<?> iorToSocketInfoClass =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||||
// For security reasons avoid creating an instance if
|
// For security reasons avoid creating an instance if
|
||||||
// this socket factory class is not one that would fail
|
// this socket factory class is not one that would fail
|
||||||
// the class cast anyway.
|
// the class cast anyway.
|
||||||
|
@ -728,7 +751,8 @@ public class ParserTable {
|
||||||
String param = (String)value ;
|
String param = (String)value ;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class iiopPrimaryToContactInfoClass = ORBClassLoader.loadClass(param);
|
Class<?> iiopPrimaryToContactInfoClass =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||||
// For security reasons avoid creating an instance if
|
// For security reasons avoid creating an instance if
|
||||||
// this socket factory class is not one that would fail
|
// this socket factory class is not one that would fail
|
||||||
// the class cast anyway.
|
// the class cast anyway.
|
||||||
|
@ -757,8 +781,8 @@ public class ParserTable {
|
||||||
String param = (String)value ;
|
String param = (String)value ;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class contactInfoListFactoryClass =
|
Class<?> contactInfoListFactoryClass =
|
||||||
ORBClassLoader.loadClass(param);
|
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||||
// For security reasons avoid creating an instance if
|
// For security reasons avoid creating an instance if
|
||||||
// this socket factory class is not one that would fail
|
// this socket factory class is not one that would fail
|
||||||
// the class cast anyway.
|
// the class cast anyway.
|
||||||
|
@ -865,6 +889,10 @@ public class ParserTable {
|
||||||
return other instanceof TestORBInitializer1 ;
|
return other instanceof TestORBInitializer1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public void pre_init( ORBInitInfo info )
|
public void pre_init( ORBInitInfo info )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -882,6 +910,10 @@ public class ParserTable {
|
||||||
return other instanceof TestORBInitializer2 ;
|
return other instanceof TestORBInitializer2 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
public void pre_init( ORBInitInfo info )
|
public void pre_init( ORBInitInfo info )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -950,6 +982,8 @@ public class ParserTable {
|
||||||
{
|
{
|
||||||
return other instanceof TestAcceptor1 ;
|
return other instanceof TestAcceptor1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() { return 1; }
|
||||||
public boolean initialize() { return true; }
|
public boolean initialize() { return true; }
|
||||||
public boolean initialized() { return true; }
|
public boolean initialized() { return true; }
|
||||||
public String getConnectionCacheType() { return "FOO"; }
|
public String getConnectionCacheType() { return "FOO"; }
|
||||||
|
@ -981,6 +1015,7 @@ public class ParserTable {
|
||||||
{
|
{
|
||||||
return other instanceof TestAcceptor2 ;
|
return other instanceof TestAcceptor2 ;
|
||||||
}
|
}
|
||||||
|
public int hashCode() { return 1; }
|
||||||
public boolean initialize() { return true; }
|
public boolean initialize() { return true; }
|
||||||
public boolean initialized() { return true; }
|
public boolean initialized() { return true; }
|
||||||
public String getConnectionCacheType() { return "FOO"; }
|
public String getConnectionCacheType() { return "FOO"; }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -90,6 +90,8 @@ import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
||||||
import com.sun.corba.se.impl.logging.OMGSystemException ;
|
import com.sun.corba.se.impl.logging.OMGSystemException ;
|
||||||
import com.sun.corba.se.impl.ior.iiop.JavaSerializationComponent;
|
import com.sun.corba.se.impl.ior.iiop.JavaSerializationComponent;
|
||||||
|
|
||||||
|
import sun.corba.SharedSecrets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handy class full of static functions that don't belong in util.Utility for pure ORB reasons.
|
* Handy class full of static functions that don't belong in util.Utility for pure ORB reasons.
|
||||||
*/
|
*/
|
||||||
|
@ -262,8 +264,8 @@ public final class ORBUtility {
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
String name = classNameOf(strm.read_string());
|
String name = classNameOf(strm.read_string());
|
||||||
SystemException ex
|
SystemException ex = (SystemException)SharedSecrets.
|
||||||
= (SystemException)ORBClassLoader.loadClass(name).newInstance();
|
getJavaCorbaAccess().loadClass(name).newInstance();
|
||||||
ex.minor = strm.read_long();
|
ex.minor = strm.read_long();
|
||||||
ex.completed = CompletionStatus.from_int(strm.read_long());
|
ex.completed = CompletionStatus.from_int(strm.read_long());
|
||||||
return ex;
|
return ex;
|
||||||
|
|
|
@ -151,7 +151,9 @@ public final class RepIdDelegator
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constructor used for factory/utility cases
|
// Constructor used for factory/utility cases
|
||||||
public RepIdDelegator() {}
|
public RepIdDelegator() {
|
||||||
|
this(null);
|
||||||
|
}
|
||||||
|
|
||||||
// Constructor used by getIdFromString. All non-static
|
// Constructor used by getIdFromString. All non-static
|
||||||
// RepositoryId methods will use the provided delegate.
|
// RepositoryId methods will use the provided delegate.
|
||||||
|
@ -159,7 +161,7 @@ public final class RepIdDelegator
|
||||||
this.delegate = _delegate;
|
this.delegate = _delegate;
|
||||||
}
|
}
|
||||||
|
|
||||||
private RepositoryId delegate;
|
private final RepositoryId delegate;
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (delegate != null)
|
if (delegate != null)
|
||||||
|
@ -174,4 +176,12 @@ public final class RepIdDelegator
|
||||||
else
|
else
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
if (delegate != null) {
|
||||||
|
return delegate.hashCode();
|
||||||
|
} else {
|
||||||
|
return super.hashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
orbd.usage=\uC0AC\uC6A9\uBC95: {0} <options> \n\n\uC5EC\uAE30\uC11C <options>\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.\n -port ORBD\uAC00 \uC2DC\uC791\uB418\uC5B4\uC57C \uD558\uB294 \uD65C\uC131 \uD3EC\uD2B8\uB85C, \uAE30\uBCF8\uAC12\uC740 1049\uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -defaultdb ORBD \uD30C\uC77C\uC758 \uB514\uB809\uD1A0\uB9AC\uB85C, \uAE30\uBCF8\uAC12\uC740 "./orb.db"\uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -serverid ORBD\uC758 \uC11C\uBC84 ID\uB85C, \uAE30\uBCF8\uAC12\uC740 1 \uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -ORBInitialPort \uCD08\uAE30 \uD3EC\uD2B8\uC785\uB2C8\uB2E4(\uD544\uC218).\n -ORBInitialHost \uCD08\uAE30 HostName\uC785\uB2C8\uB2E4(\uD544\uC218).\n
|
orbd.usage=\uC0AC\uC6A9\uBC95: {0} <options> \n\n\uC5EC\uAE30\uC11C <options>\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.\n -port ORBD\uAC00 \uC2DC\uC791\uB418\uC5B4\uC57C \uD558\uB294 \uD65C\uC131 \uD3EC\uD2B8\uB85C, \uAE30\uBCF8\uAC12\uC740 1049\uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -defaultdb ORBD \uD30C\uC77C\uC758 \uB514\uB809\uD1A0\uB9AC\uB85C, \uAE30\uBCF8\uAC12\uC740 "./orb.db"\uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -serverid ORBD\uC758 \uC11C\uBC84 ID\uB85C, \uAE30\uBCF8\uAC12\uC740 1 \uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -ORBInitialPort \uCD08\uAE30 \uD3EC\uD2B8\uC785\uB2C8\uB2E4(\uD544\uC218).\n -ORBInitialHost \uCD08\uAE30 HostName\uC785\uB2C8\uB2E4(\uD544\uC218).\n
|
||||||
|
|
||||||
servertool.usage=\uC0AC\uC6A9\uBC95: {0} <options> \n\n\uC5EC\uAE30\uC11C <options>\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.\n -ORBInitialPort \uCD08\uAE30 \uD3EC\uD2B8\uC785\uB2C8\uB2E4(\uD544\uC218).\n -ORBInitialHost \uCD08\uAE30 HostName\uC785\uB2C8\uB2E4(\uD544\uC218).\n
|
servertool.usage=\uC0AC\uC6A9\uBC95: {0} <options> \n\n\uC5EC\uAE30\uC11C <options>\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.\n -ORBInitialPort \uCD08\uAE30 \uD3EC\uD2B8\uC785\uB2C8\uB2E4(\uD544\uC218).\n -ORBInitialHost \uCD08\uAE30 HostName\uC785\uB2C8\uB2E4(\uD544\uC218).\n
|
||||||
servertool.banner=\n\nJava IDL \uC11C\uBC84 \uD234 \uC2DC\uC791 \n\uD504\uB86C\uD504\uD2B8\uC5D0 \uBA85\uB839\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624.\n
|
servertool.banner=\n\nJava IDL \uC11C\uBC84 \uD234 \uC2DC\uC791 \n\uD504\uB86C\uD504\uD2B8\uC5D0 \uBA85\uB839\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624. \n
|
||||||
servertool.shorthelp=\n\n\t\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uBA85\uB839: \n\t------------------- \n
|
servertool.shorthelp=\n\n\t\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uBA85\uB839: \n\t------------------- \n
|
||||||
servertool.baddef=\uC798\uBABB\uB41C \uC11C\uBC84 \uC815\uC758: {0}
|
servertool.baddef=\uC798\uBABB\uB41C \uC11C\uBC84 \uC815\uC758: {0}
|
||||||
servertool.nosuchserver=\t\uD574\uB2F9 \uC11C\uBC84\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
servertool.nosuchserver=\t\uD574\uB2F9 \uC11C\uBC84\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1794,8 +1794,7 @@ public class CorbaMessageMediatorImpl
|
||||||
|
|
||||||
if (msg.getGIOPVersion().lessThan(GIOPVersion.V1_2)) {
|
if (msg.getGIOPVersion().lessThan(GIOPVersion.V1_2)) {
|
||||||
// locate msgs 1.0 & 1.1 :=> grow,
|
// locate msgs 1.0 & 1.1 :=> grow,
|
||||||
// REVISIT - build from factory
|
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
|
||||||
outputObject = new CDROutputObject(
|
|
||||||
(ORB) messageMediator.getBroker(),
|
(ORB) messageMediator.getBroker(),
|
||||||
this,
|
this,
|
||||||
GIOPVersion.V1_0,
|
GIOPVersion.V1_0,
|
||||||
|
@ -1804,8 +1803,7 @@ public class CorbaMessageMediatorImpl
|
||||||
ORBConstants.STREAM_FORMAT_VERSION_1);
|
ORBConstants.STREAM_FORMAT_VERSION_1);
|
||||||
} else {
|
} else {
|
||||||
// 1.2 :=> stream
|
// 1.2 :=> stream
|
||||||
// REVISIT - build from factory
|
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
|
||||||
outputObject = new CDROutputObject(
|
|
||||||
(ORB) messageMediator.getBroker(),
|
(ORB) messageMediator.getBroker(),
|
||||||
messageMediator,
|
messageMediator,
|
||||||
reply,
|
reply,
|
||||||
|
@ -1959,7 +1957,8 @@ public class CorbaMessageMediatorImpl
|
||||||
ReplyMessage.NEEDS_ADDRESSING_MODE,
|
ReplyMessage.NEEDS_ADDRESSING_MODE,
|
||||||
null, null);
|
null, null);
|
||||||
// REVISIT: via acceptor factory.
|
// REVISIT: via acceptor factory.
|
||||||
CDROutputObject outputObject = new CDROutputObject(
|
CDROutputObject outputObject =
|
||||||
|
sun.corba.OutputStreamFactory.newCDROutputObject(
|
||||||
(ORB)messageMediator.getBroker(),
|
(ORB)messageMediator.getBroker(),
|
||||||
this,
|
this,
|
||||||
messageMediator.getGIOPVersion(),
|
messageMediator.getGIOPVersion(),
|
||||||
|
@ -2126,7 +2125,7 @@ public class CorbaMessageMediatorImpl
|
||||||
ex.printStackTrace(pw);
|
ex.printStackTrace(pw);
|
||||||
pw.flush(); // NOTE: you must flush or baos will be empty.
|
pw.flush(); // NOTE: you must flush or baos will be empty.
|
||||||
EncapsOutputStream encapsOutputStream =
|
EncapsOutputStream encapsOutputStream =
|
||||||
new EncapsOutputStream((ORB)mediator.getBroker());
|
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)mediator.getBroker());
|
||||||
encapsOutputStream.putEndian();
|
encapsOutputStream.putEndian();
|
||||||
encapsOutputStream.write_wstring(baos.toString());
|
encapsOutputStream.write_wstring(baos.toString());
|
||||||
UnknownServiceContext serviceContext =
|
UnknownServiceContext serviceContext =
|
||||||
|
@ -2203,12 +2202,11 @@ public class CorbaMessageMediatorImpl
|
||||||
// REVISIT = do not use null.
|
// REVISIT = do not use null.
|
||||||
//
|
//
|
||||||
if (messageMediator.getConnection() == null) {
|
if (messageMediator.getConnection() == null) {
|
||||||
// REVISIT - needs factory
|
|
||||||
replyOutputObject =
|
replyOutputObject =
|
||||||
new CDROutputObject(orb, messageMediator,
|
sun.corba.OutputStreamFactory.newCDROutputObject(orb,
|
||||||
messageMediator.getReplyHeader(),
|
messageMediator, messageMediator.getReplyHeader(),
|
||||||
messageMediator.getStreamFormatVersion(),
|
messageMediator.getStreamFormatVersion(),
|
||||||
BufferManagerFactory.GROW);
|
BufferManagerFactory.GROW);
|
||||||
} else {
|
} else {
|
||||||
replyOutputObject = messageMediator.getConnection().getAcceptor()
|
replyOutputObject = messageMediator.getConnection().getAcceptor()
|
||||||
.createOutputObject(messageMediator.getBroker(), messageMediator);
|
.createOutputObject(messageMediator.getBroker(), messageMediator);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -41,7 +41,6 @@ import com.sun.corba.se.impl.encoding.CDROutputStream;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
|
|
||||||
import com.sun.corba.se.spi.logging.CORBALogDomains ;
|
import com.sun.corba.se.spi.logging.CORBALogDomains ;
|
||||||
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -60,9 +60,10 @@ import com.sun.corba.se.impl.encoding.CDRInputStream_1_0;
|
||||||
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
import com.sun.corba.se.impl.orbutil.ORBConstants;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.impl.protocol.AddressingDispositionException;
|
import com.sun.corba.se.impl.protocol.AddressingDispositionException;
|
||||||
|
|
||||||
|
import sun.corba.SharedSecrets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class acts as the base class for the various GIOP message types. This
|
* This class acts as the base class for the various GIOP message types. This
|
||||||
* also serves as a factory to create various message types. We currently
|
* also serves as a factory to create various message types. We currently
|
||||||
|
@ -909,7 +910,8 @@ public abstract class MessageBase implements Message{
|
||||||
SystemException sysEx = null;
|
SystemException sysEx = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class clazz = ORBClassLoader.loadClass(exClassName);
|
Class<?> clazz =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass(exClassName);
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
sysEx = (SystemException) clazz.newInstance();
|
sysEx = (SystemException) clazz.newInstance();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -37,7 +37,6 @@ import com.sun.corba.se.spi.orb.ORB;
|
||||||
import com.sun.corba.se.spi.servicecontext.ServiceContexts;
|
import com.sun.corba.se.spi.servicecontext.ServiceContexts;
|
||||||
import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
|
import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.spi.ior.IOR;
|
import com.sun.corba.se.spi.ior.IOR;
|
||||||
import com.sun.corba.se.impl.encoding.CDRInputStream;
|
import com.sun.corba.se.impl.encoding.CDRInputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -37,7 +37,6 @@ import com.sun.corba.se.spi.orb.ORB;
|
||||||
import com.sun.corba.se.spi.servicecontext.ServiceContexts;
|
import com.sun.corba.se.spi.servicecontext.ServiceContexts;
|
||||||
import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
|
import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
|
||||||
import com.sun.corba.se.spi.ior.IOR;
|
import com.sun.corba.se.spi.ior.IOR;
|
||||||
import com.sun.corba.se.impl.encoding.CDRInputStream;
|
import com.sun.corba.se.impl.encoding.CDRInputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -214,7 +214,7 @@ public abstract class CorbaContactInfoBase
|
||||||
messageMediator;
|
messageMediator;
|
||||||
|
|
||||||
OutputObject outputObject =
|
OutputObject outputObject =
|
||||||
new CDROutputObject(orb, messageMediator,
|
sun.corba.OutputStreamFactory.newCDROutputObject(orb, messageMediator,
|
||||||
corbaMessageMediator.getRequestHeader(),
|
corbaMessageMediator.getRequestHeader(),
|
||||||
corbaMessageMediator.getStreamFormatVersion());
|
corbaMessageMediator.getStreamFormatVersion());
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -134,7 +134,7 @@ public class SharedCDRContactInfoImpl
|
||||||
messageMediator;
|
messageMediator;
|
||||||
// NOTE: GROW.
|
// NOTE: GROW.
|
||||||
OutputObject outputObject =
|
OutputObject outputObject =
|
||||||
new CDROutputObject(orb, messageMediator,
|
sun.corba.OutputStreamFactory.newCDROutputObject(orb, messageMediator,
|
||||||
corbaMessageMediator.getRequestHeader(),
|
corbaMessageMediator.getRequestHeader(),
|
||||||
corbaMessageMediator.getStreamFormatVersion(),
|
corbaMessageMediator.getStreamFormatVersion(),
|
||||||
BufferManagerFactory.GROW);
|
BufferManagerFactory.GROW);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -534,9 +534,9 @@ public class SocketOrChannelAcceptorImpl
|
||||||
{
|
{
|
||||||
CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
|
CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
|
||||||
messageMediator;
|
messageMediator;
|
||||||
return new CDROutputObject((ORB) broker, corbaMessageMediator,
|
return sun.corba.OutputStreamFactory.newCDROutputObject((ORB) broker,
|
||||||
corbaMessageMediator.getReplyHeader(),
|
corbaMessageMediator, corbaMessageMediator.getReplyHeader(),
|
||||||
corbaMessageMediator.getStreamFormatVersion());
|
corbaMessageMediator.getStreamFormatVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1587,8 +1587,8 @@ public class SocketOrChannelConnectionImpl
|
||||||
{
|
{
|
||||||
// REVISIT: See comments in CDROutputObject constructor.
|
// REVISIT: See comments in CDROutputObject constructor.
|
||||||
CDROutputObject outputObject =
|
CDROutputObject outputObject =
|
||||||
new CDROutputObject((ORB)orb, null, giopVersion, this, msg,
|
sun.corba.OutputStreamFactory.newCDROutputObject((ORB)orb, null, giopVersion,
|
||||||
ORBConstants.STREAM_FORMAT_VERSION_1);
|
this, msg, ORBConstants.STREAM_FORMAT_VERSION_1);
|
||||||
msg.write(outputObject);
|
msg.write(outputObject);
|
||||||
|
|
||||||
outputObject.writeTo(this);
|
outputObject.writeTo(this);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -42,7 +42,8 @@ public abstract class TaggedComponentBase extends IdentifiableBase
|
||||||
public org.omg.IOP.TaggedComponent getIOPComponent(
|
public org.omg.IOP.TaggedComponent getIOPComponent(
|
||||||
org.omg.CORBA.ORB orb )
|
org.omg.CORBA.ORB orb )
|
||||||
{
|
{
|
||||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
|
||||||
write( os ) ;
|
write( os ) ;
|
||||||
InputStream is = (InputStream)(os.create_input_stream() ) ;
|
InputStream is = (InputStream)(os.create_input_stream() ) ;
|
||||||
return org.omg.IOP.TaggedComponentHelper.read( is ) ;
|
return org.omg.IOP.TaggedComponentHelper.read( is ) ;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -97,8 +97,8 @@ import com.sun.corba.se.impl.logging.OMGSystemException ;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.presentation.rmi.PresentationManagerImpl ;
|
import com.sun.corba.se.impl.presentation.rmi.PresentationManagerImpl ;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
|
|
||||||
import sun.awt.AppContext;
|
import sun.awt.AppContext;
|
||||||
|
import sun.corba.SharedSecrets;
|
||||||
|
|
||||||
public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
|
public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
|
||||||
implements Broker, TypeCodeFactory
|
implements Broker, TypeCodeFactory
|
||||||
|
@ -201,7 +201,7 @@ public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// First try the configured class name, if any
|
// First try the configured class name, if any
|
||||||
Class cls = ORBClassLoader.loadClass( className ) ;
|
Class<?> cls = SharedSecrets.getJavaCorbaAccess().loadClass( className ) ;
|
||||||
sff = (PresentationManager.StubFactoryFactory)cls.newInstance() ;
|
sff = (PresentationManager.StubFactoryFactory)cls.newInstance() ;
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
// Use the default. Log the error as a warning.
|
// Use the default. Log the error as a warning.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -35,9 +35,10 @@ import java.net.MalformedURLException ;
|
||||||
import com.sun.corba.se.spi.logging.CORBALogDomains ;
|
import com.sun.corba.se.spi.logging.CORBALogDomains ;
|
||||||
|
|
||||||
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
|
||||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
|
|
||||||
import com.sun.corba.se.impl.orbutil.ObjectUtility ;
|
import com.sun.corba.se.impl.orbutil.ObjectUtility ;
|
||||||
|
|
||||||
|
import sun.corba.SharedSecrets;
|
||||||
|
|
||||||
/** This is a static factory class for commonly used operations
|
/** This is a static factory class for commonly used operations
|
||||||
* for property parsing. The following operations are supported:
|
* for property parsing. The following operations are supported:
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -247,7 +248,8 @@ public abstract class OperationFactory {
|
||||||
String className = getString( value ) ;
|
String className = getString( value ) ;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class result = ORBClassLoader.loadClass( className ) ;
|
Class<?> result =
|
||||||
|
SharedSecrets.getJavaCorbaAccess().loadClass( className ) ;
|
||||||
return result ;
|
return result ;
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
ORBUtilSystemException wrapper = ORBUtilSystemException.get(
|
ORBUtilSystemException wrapper = ORBUtilSystemException.get(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -92,7 +92,8 @@ public abstract class ServiceContext {
|
||||||
*/
|
*/
|
||||||
public void write(OutputStream s, GIOPVersion gv) throws SystemException
|
public void write(OutputStream s, GIOPVersion gv) throws SystemException
|
||||||
{
|
{
|
||||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)(s.orb()), gv ) ;
|
EncapsOutputStream os =
|
||||||
|
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)(s.orb()), gv);
|
||||||
os.putEndian() ;
|
os.putEndian() ;
|
||||||
writeData( os ) ;
|
writeData( os ) ;
|
||||||
byte[] data = os.toByteArray() ;
|
byte[] data = os.toByteArray() ;
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
#
|
#
|
||||||
# Translator: Start Translating
|
# Translator: Start Translating
|
||||||
|
|
||||||
Compile.parsing=\u6B63\u5728\u5BF9 %0 \u8FDB\u884C\u8BED\u6CD5\u5206\u6790
|
Compile.parsing=\u6B63\u5728\u89E3\u6790 %0
|
||||||
Compile.parseDone=\u5B8C\u6210 - %0
|
Compile.parseDone=\u5B8C\u6210 - %0
|
||||||
Compile.generating=\u6B63\u5728\u751F\u6210 %0
|
Compile.generating=\u6B63\u5728\u751F\u6210 %0
|
||||||
Compile.genDone=\u5B8C\u6210 - %0
|
Compile.genDone=\u5B8C\u6210 - %0
|
||||||
|
@ -165,7 +165,7 @@ Token.identifier=<\u6807\u8BC6\u7B26>
|
||||||
Token.endOfFile=EOF
|
Token.endOfFile=EOF
|
||||||
Token.unknown=?
|
Token.unknown=?
|
||||||
Util.cantCreatePkg=\u65E0\u6CD5\u521B\u5EFA\u7A0B\u5E8F\u5305%0\u3002
|
Util.cantCreatePkg=\u65E0\u6CD5\u521B\u5EFA\u7A0B\u5E8F\u5305%0\u3002
|
||||||
Version.product=IDL \u8BED\u6CD5\u5206\u6790\u5668\u6846\u67B6, \u7248\u672C "%0"
|
Version.product=IDL \u89E3\u6790\u5668\u6846\u67B6, \u7248\u672C "%0"
|
||||||
Version.number=3.2
|
Version.number=3.2
|
||||||
default=\u9519\u8BEF! \u8BF7\u6C42\u4E86\u4E0D\u5B58\u5728\u7684\u6D88\u606F\u3002\u6D88\u606F\u6587\u4EF6\u672A\u5305\u542B\u5173\u952E\u5B57: %0\u3002
|
default=\u9519\u8BEF! \u8BF7\u6C42\u4E86\u4E0D\u5B58\u5728\u7684\u6D88\u606F\u3002\u6D88\u606F\u6587\u4EF6\u672A\u5305\u542B\u5173\u952E\u5B57: %0\u3002
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2000, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -31,6 +31,10 @@
|
||||||
|
|
||||||
package org.omg.CORBA_2_3.portable;
|
package org.omg.CORBA_2_3.portable;
|
||||||
|
|
||||||
|
import java.io.SerializablePermission;
|
||||||
|
import java.security.AccessController;
|
||||||
|
import java.security.PrivilegedAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OutputStream provides interface for writing of all of the mapped IDL type
|
* OutputStream provides interface for writing of all of the mapped IDL type
|
||||||
* to the stream. It extends org.omg.CORBA.portable.OutputStream, and defines
|
* to the stream. It extends org.omg.CORBA.portable.OutputStream, and defines
|
||||||
|
@ -43,6 +47,40 @@ package org.omg.CORBA_2_3.portable;
|
||||||
|
|
||||||
public abstract class OutputStream extends org.omg.CORBA.portable.OutputStream {
|
public abstract class OutputStream extends org.omg.CORBA.portable.OutputStream {
|
||||||
|
|
||||||
|
private static final String ALLOW_SUBCLASS_PROP = "jdk.corba.allowOutputStreamSubclass";
|
||||||
|
private static final boolean allowSubclass = AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<Boolean>() {
|
||||||
|
@Override
|
||||||
|
public Boolean run() {
|
||||||
|
String prop = System.getProperty(ALLOW_SUBCLASS_PROP);
|
||||||
|
return prop == null ? false :
|
||||||
|
(prop.equalsIgnoreCase("false") ? false : true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
private static Void checkPermission() {
|
||||||
|
SecurityManager sm = System.getSecurityManager();
|
||||||
|
if (sm != null) {
|
||||||
|
if (!allowSubclass)
|
||||||
|
sm.checkPermission(new
|
||||||
|
SerializablePermission("enableSubclassImplementation"));
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
private OutputStream(Void ignore) { }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new instance of this class.
|
||||||
|
*
|
||||||
|
* throw SecurityException if SecurityManager is installed and
|
||||||
|
* enableSubclassImplementation SerializablePermission
|
||||||
|
* is not granted or jdk.corba.allowOutputStreamSubclass system
|
||||||
|
* property is either not set or is set to 'false'
|
||||||
|
*/
|
||||||
|
public OutputStream() {
|
||||||
|
this(checkPermission());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marshals a value type to the output stream.
|
* Marshals a value type to the output stream.
|
||||||
* @param value is the acutal value to write
|
* @param value is the acutal value to write
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -29,4 +29,5 @@ import com.sun.corba.se.impl.io.ValueHandlerImpl;
|
||||||
|
|
||||||
public interface JavaCorbaAccess {
|
public interface JavaCorbaAccess {
|
||||||
public ValueHandlerImpl newValueHandlerImpl();
|
public ValueHandlerImpl newValueHandlerImpl();
|
||||||
|
public Class<?> loadClass(String className) throws ClassNotFoundException;
|
||||||
}
|
}
|
||||||
|
|
149
corba/src/share/classes/sun/corba/OutputStreamFactory.java
Normal file
149
corba/src/share/classes/sun/corba/OutputStreamFactory.java
Normal file
|
@ -0,0 +1,149 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2013, 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package sun.corba;
|
||||||
|
|
||||||
|
import com.sun.corba.se.impl.corba.AnyImpl;
|
||||||
|
import com.sun.corba.se.impl.encoding.BufferManagerWrite;
|
||||||
|
import com.sun.corba.se.impl.encoding.CDROutputObject;
|
||||||
|
import com.sun.corba.se.impl.encoding.EncapsOutputStream;
|
||||||
|
import com.sun.corba.se.impl.encoding.TypeCodeOutputStream;
|
||||||
|
import com.sun.corba.se.impl.protocol.giopmsgheaders.Message;
|
||||||
|
|
||||||
|
import com.sun.corba.se.pept.protocol.MessageMediator;
|
||||||
|
|
||||||
|
import com.sun.corba.se.spi.orb.ORB;
|
||||||
|
import com.sun.corba.se.spi.transport.CorbaConnection;
|
||||||
|
import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
|
||||||
|
import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
|
||||||
|
|
||||||
|
import java.security.AccessController;
|
||||||
|
import java.security.PrivilegedAction;
|
||||||
|
|
||||||
|
public final class OutputStreamFactory {
|
||||||
|
|
||||||
|
private OutputStreamFactory() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TypeCodeOutputStream newTypeCodeOutputStream(
|
||||||
|
final ORB orb) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<TypeCodeOutputStream>() {
|
||||||
|
@Override
|
||||||
|
public TypeCodeOutputStream run() {
|
||||||
|
return new TypeCodeOutputStream(orb);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TypeCodeOutputStream newTypeCodeOutputStream(
|
||||||
|
final ORB orb, final boolean littleEndian) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<TypeCodeOutputStream>() {
|
||||||
|
@Override
|
||||||
|
public TypeCodeOutputStream run() {
|
||||||
|
return new TypeCodeOutputStream(orb, littleEndian);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static EncapsOutputStream newEncapsOutputStream(
|
||||||
|
final ORB orb) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<EncapsOutputStream>() {
|
||||||
|
@Override
|
||||||
|
public EncapsOutputStream run() {
|
||||||
|
return new EncapsOutputStream(
|
||||||
|
(com.sun.corba.se.spi.orb.ORB)orb);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static EncapsOutputStream newEncapsOutputStream(
|
||||||
|
final ORB orb, final GIOPVersion giopVersion) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<EncapsOutputStream>() {
|
||||||
|
@Override
|
||||||
|
public EncapsOutputStream run() {
|
||||||
|
return new EncapsOutputStream(
|
||||||
|
(com.sun.corba.se.spi.orb.ORB)orb, giopVersion);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static EncapsOutputStream newEncapsOutputStream(
|
||||||
|
final ORB orb, final boolean isLittleEndian) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<EncapsOutputStream>() {
|
||||||
|
@Override
|
||||||
|
public EncapsOutputStream run() {
|
||||||
|
return new EncapsOutputStream(
|
||||||
|
(com.sun.corba.se.spi.orb.ORB)orb, isLittleEndian);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CDROutputObject newCDROutputObject(
|
||||||
|
final ORB orb, final MessageMediator messageMediator,
|
||||||
|
final Message header, final byte streamFormatVersion) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<CDROutputObject>() {
|
||||||
|
@Override
|
||||||
|
public CDROutputObject run() {
|
||||||
|
return new CDROutputObject(orb, messageMediator,
|
||||||
|
header, streamFormatVersion);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CDROutputObject newCDROutputObject(
|
||||||
|
final ORB orb, final MessageMediator messageMediator,
|
||||||
|
final Message header, final byte streamFormatVersion,
|
||||||
|
final int strategy) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<CDROutputObject>() {
|
||||||
|
@Override
|
||||||
|
public CDROutputObject run() {
|
||||||
|
return new CDROutputObject(orb, messageMediator,
|
||||||
|
header, streamFormatVersion, strategy);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CDROutputObject newCDROutputObject(
|
||||||
|
final ORB orb, final CorbaMessageMediator mediator,
|
||||||
|
final GIOPVersion giopVersion, final CorbaConnection connection,
|
||||||
|
final Message header, final byte streamFormatVersion) {
|
||||||
|
return AccessController.doPrivileged(
|
||||||
|
new PrivilegedAction<CDROutputObject>() {
|
||||||
|
@Override
|
||||||
|
public CDROutputObject run() {
|
||||||
|
return new CDROutputObject(orb, mediator,
|
||||||
|
giopVersion, connection, header, streamFormatVersion);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
package sun.rmi.rmic.iiop;
|
package sun.rmi.rmic.iiop;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import sun.tools.java.Identifier;
|
import sun.tools.java.Identifier;
|
||||||
import sun.tools.java.ClassNotFound;
|
import sun.tools.java.ClassNotFound;
|
||||||
|
@ -1851,6 +1852,10 @@ public abstract class CompoundType extends Type {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return getName().hashCode() ^ Arrays.hashCode(arguments);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a new Method object that is a legal combination of
|
* Return a new Method object that is a legal combination of
|
||||||
* this method object and another one.
|
* this method object and another one.
|
||||||
|
|
|
@ -351,3 +351,7 @@ b786c04b7be15194febe88dc1f0c9443e737a84b hs25-b35
|
||||||
3c78a14da19d26d6937af5f98b97e2a21c653b04 hs25-b36
|
3c78a14da19d26d6937af5f98b97e2a21c653b04 hs25-b36
|
||||||
1beed1f6f9edefe47ba8ed1355fbd3e7606b8288 jdk8-b94
|
1beed1f6f9edefe47ba8ed1355fbd3e7606b8288 jdk8-b94
|
||||||
69689078dff8b21e6df30870464f5d736eebdf72 hs25-b37
|
69689078dff8b21e6df30870464f5d736eebdf72 hs25-b37
|
||||||
|
5d65c078cd0ac455aa5e58a09844c7acce54b487 jdk8-b95
|
||||||
|
2cc5a9d1ba66dfdff578918b393c727bd9450210 hs25-b38
|
||||||
|
e6a4b8c71fa6f225bd989a34de2d0d0a656a8be8 jdk8-b96
|
||||||
|
2b9380b0bf0b649f40704735773e8956c2d88ba0 hs25-b39
|
||||||
|
|
|
@ -7,6 +7,6 @@ else
|
||||||
NM=nm
|
NM=nm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$NM --defined-only $* | awk '
|
$NM -Uj $* | awk '
|
||||||
{ if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" }
|
{ if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 }
|
||||||
'
|
'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -368,8 +368,8 @@ ifeq ($(OS_VENDOR), Darwin)
|
||||||
# Standard linker flags
|
# Standard linker flags
|
||||||
LFLAGS +=
|
LFLAGS +=
|
||||||
|
|
||||||
# Darwin doesn't use ELF and doesn't support version scripts
|
# The apple linker has its own variant of mapfiles/version-scripts
|
||||||
LDNOMAP = true
|
MAPFLAG = -Xlinker -exported_symbols_list -Xlinker FILENAME
|
||||||
|
|
||||||
# Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
|
# Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
|
||||||
SONAMEFLAG =
|
SONAMEFLAG =
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
#
|
|
||||||
# @(#)mapfile-vers-debug 1.18 07/10/25 16:47:35
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
@ -25,271 +21,242 @@
|
||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
# Only used for OSX/Darwin builds
|
||||||
|
|
||||||
# Define public interface.
|
# Define public interface.
|
||||||
|
# _JNI
|
||||||
|
_JNI_CreateJavaVM
|
||||||
|
_JNI_GetCreatedJavaVMs
|
||||||
|
_JNI_GetDefaultJavaVMInitArgs
|
||||||
|
|
||||||
SUNWprivate_1.1 {
|
# _JVM
|
||||||
global:
|
_JVM_Accept
|
||||||
# JNI
|
_JVM_ActiveProcessorCount
|
||||||
JNI_CreateJavaVM;
|
_JVM_AllocateNewArray
|
||||||
JNI_GetCreatedJavaVMs;
|
_JVM_AllocateNewObject
|
||||||
JNI_GetDefaultJavaVMInitArgs;
|
_JVM_ArrayCopy
|
||||||
|
_JVM_AssertionStatusDirectives
|
||||||
|
_JVM_Available
|
||||||
|
_JVM_Bind
|
||||||
|
_JVM_ClassDepth
|
||||||
|
_JVM_ClassLoaderDepth
|
||||||
|
_JVM_Clone
|
||||||
|
_JVM_Close
|
||||||
|
_JVM_CX8Field
|
||||||
|
_JVM_CompileClass
|
||||||
|
_JVM_CompileClasses
|
||||||
|
_JVM_CompilerCommand
|
||||||
|
_JVM_Connect
|
||||||
|
_JVM_ConstantPoolGetClassAt
|
||||||
|
_JVM_ConstantPoolGetClassAtIfLoaded
|
||||||
|
_JVM_ConstantPoolGetDoubleAt
|
||||||
|
_JVM_ConstantPoolGetFieldAt
|
||||||
|
_JVM_ConstantPoolGetFieldAtIfLoaded
|
||||||
|
_JVM_ConstantPoolGetFloatAt
|
||||||
|
_JVM_ConstantPoolGetIntAt
|
||||||
|
_JVM_ConstantPoolGetLongAt
|
||||||
|
_JVM_ConstantPoolGetMethodAt
|
||||||
|
_JVM_ConstantPoolGetMethodAtIfLoaded
|
||||||
|
_JVM_ConstantPoolGetMemberRefInfoAt
|
||||||
|
_JVM_ConstantPoolGetSize
|
||||||
|
_JVM_ConstantPoolGetStringAt
|
||||||
|
_JVM_ConstantPoolGetUTF8At
|
||||||
|
_JVM_CountStackFrames
|
||||||
|
_JVM_CurrentClassLoader
|
||||||
|
_JVM_CurrentLoadedClass
|
||||||
|
_JVM_CurrentThread
|
||||||
|
_JVM_CurrentTimeMillis
|
||||||
|
_JVM_DefineClass
|
||||||
|
_JVM_DefineClassWithSource
|
||||||
|
_JVM_DefineClassWithSourceCond
|
||||||
|
_JVM_DesiredAssertionStatus
|
||||||
|
_JVM_DisableCompiler
|
||||||
|
_JVM_DoPrivileged
|
||||||
|
_JVM_DTraceGetVersion
|
||||||
|
_JVM_DTraceActivate
|
||||||
|
_JVM_DTraceIsProbeEnabled
|
||||||
|
_JVM_DTraceIsSupported
|
||||||
|
_JVM_DTraceDispose
|
||||||
|
_JVM_DumpAllStacks
|
||||||
|
_JVM_DumpThreads
|
||||||
|
_JVM_EnableCompiler
|
||||||
|
_JVM_Exit
|
||||||
|
_JVM_FillInStackTrace
|
||||||
|
_JVM_FindClassFromClass
|
||||||
|
_JVM_FindClassFromClassLoader
|
||||||
|
_JVM_FindClassFromBootLoader
|
||||||
|
_JVM_FindLibraryEntry
|
||||||
|
_JVM_FindLoadedClass
|
||||||
|
_JVM_FindPrimitiveClass
|
||||||
|
_JVM_FindSignal
|
||||||
|
_JVM_FreeMemory
|
||||||
|
_JVM_GC
|
||||||
|
_JVM_GetAllThreads
|
||||||
|
_JVM_GetArrayElement
|
||||||
|
_JVM_GetArrayLength
|
||||||
|
_JVM_GetCPClassNameUTF
|
||||||
|
_JVM_GetCPFieldClassNameUTF
|
||||||
|
_JVM_GetCPFieldModifiers
|
||||||
|
_JVM_GetCPFieldNameUTF
|
||||||
|
_JVM_GetCPFieldSignatureUTF
|
||||||
|
_JVM_GetCPMethodClassNameUTF
|
||||||
|
_JVM_GetCPMethodModifiers
|
||||||
|
_JVM_GetCPMethodNameUTF
|
||||||
|
_JVM_GetCPMethodSignatureUTF
|
||||||
|
_JVM_GetCallerClass
|
||||||
|
_JVM_GetClassAccessFlags
|
||||||
|
_JVM_GetClassAnnotations
|
||||||
|
_JVM_GetClassCPEntriesCount
|
||||||
|
_JVM_GetClassCPTypes
|
||||||
|
_JVM_GetClassConstantPool
|
||||||
|
_JVM_GetClassContext
|
||||||
|
_JVM_GetClassDeclaredConstructors
|
||||||
|
_JVM_GetClassDeclaredFields
|
||||||
|
_JVM_GetClassDeclaredMethods
|
||||||
|
_JVM_GetClassFieldsCount
|
||||||
|
_JVM_GetClassInterfaces
|
||||||
|
_JVM_GetClassLoader
|
||||||
|
_JVM_GetClassMethodsCount
|
||||||
|
_JVM_GetClassModifiers
|
||||||
|
_JVM_GetClassName
|
||||||
|
_JVM_GetClassNameUTF
|
||||||
|
_JVM_GetClassSignature
|
||||||
|
_JVM_GetClassSigners
|
||||||
|
_JVM_GetClassTypeAnnotations
|
||||||
|
_JVM_GetComponentType
|
||||||
|
_JVM_GetDeclaredClasses
|
||||||
|
_JVM_GetDeclaringClass
|
||||||
|
_JVM_GetEnclosingMethodInfo
|
||||||
|
_JVM_GetFieldAnnotations
|
||||||
|
_JVM_GetFieldIxModifiers
|
||||||
|
_JVM_GetFieldTypeAnnotations
|
||||||
|
_JVM_GetHostName
|
||||||
|
_JVM_GetInheritedAccessControlContext
|
||||||
|
_JVM_GetInterfaceVersion
|
||||||
|
_JVM_GetLastErrorString
|
||||||
|
_JVM_GetManagement
|
||||||
|
_JVM_GetMethodAnnotations
|
||||||
|
_JVM_GetMethodDefaultAnnotationValue
|
||||||
|
_JVM_GetMethodIxArgsSize
|
||||||
|
_JVM_GetMethodIxByteCode
|
||||||
|
_JVM_GetMethodIxByteCodeLength
|
||||||
|
_JVM_GetMethodIxExceptionIndexes
|
||||||
|
_JVM_GetMethodIxExceptionTableEntry
|
||||||
|
_JVM_GetMethodIxExceptionTableLength
|
||||||
|
_JVM_GetMethodIxExceptionsCount
|
||||||
|
_JVM_GetMethodIxLocalsCount
|
||||||
|
_JVM_GetMethodIxMaxStack
|
||||||
|
_JVM_GetMethodIxModifiers
|
||||||
|
_JVM_GetMethodIxNameUTF
|
||||||
|
_JVM_GetMethodIxSignatureUTF
|
||||||
|
_JVM_GetMethodParameterAnnotations
|
||||||
|
_JVM_GetMethodParameters
|
||||||
|
_JVM_GetMethodTypeAnnotations
|
||||||
|
_JVM_GetPrimitiveArrayElement
|
||||||
|
_JVM_GetProtectionDomain
|
||||||
|
_JVM_GetSockName
|
||||||
|
_JVM_GetSockOpt
|
||||||
|
_JVM_GetStackAccessControlContext
|
||||||
|
_JVM_GetStackTraceDepth
|
||||||
|
_JVM_GetStackTraceElement
|
||||||
|
_JVM_GetSystemPackage
|
||||||
|
_JVM_GetSystemPackages
|
||||||
|
_JVM_GetThreadStateNames
|
||||||
|
_JVM_GetThreadStateValues
|
||||||
|
_JVM_GetVersionInfo
|
||||||
|
_JVM_Halt
|
||||||
|
_JVM_HoldsLock
|
||||||
|
_JVM_IHashCode
|
||||||
|
_JVM_InitAgentProperties
|
||||||
|
_JVM_InitProperties
|
||||||
|
_JVM_InitializeCompiler
|
||||||
|
_JVM_InitializeSocketLibrary
|
||||||
|
_JVM_InternString
|
||||||
|
_JVM_Interrupt
|
||||||
|
_JVM_InvokeMethod
|
||||||
|
_JVM_IsArrayClass
|
||||||
|
_JVM_IsConstructorIx
|
||||||
|
_JVM_IsInterface
|
||||||
|
_JVM_IsInterrupted
|
||||||
|
_JVM_IsNaN
|
||||||
|
_JVM_IsPrimitiveClass
|
||||||
|
_JVM_IsSameClassPackage
|
||||||
|
_JVM_IsSilentCompiler
|
||||||
|
_JVM_IsSupportedJNIVersion
|
||||||
|
_JVM_IsThreadAlive
|
||||||
|
_JVM_IsVMGeneratedMethodIx
|
||||||
|
_JVM_LatestUserDefinedLoader
|
||||||
|
_JVM_Listen
|
||||||
|
_JVM_LoadClass0
|
||||||
|
_JVM_LoadLibrary
|
||||||
|
_JVM_Lseek
|
||||||
|
_JVM_MaxObjectInspectionAge
|
||||||
|
_JVM_MaxMemory
|
||||||
|
_JVM_MonitorNotify
|
||||||
|
_JVM_MonitorNotifyAll
|
||||||
|
_JVM_MonitorWait
|
||||||
|
_JVM_NanoTime
|
||||||
|
_JVM_NativePath
|
||||||
|
_JVM_NewArray
|
||||||
|
_JVM_NewInstanceFromConstructor
|
||||||
|
_JVM_NewMultiArray
|
||||||
|
_JVM_OnExit
|
||||||
|
_JVM_Open
|
||||||
|
_JVM_RaiseSignal
|
||||||
|
_JVM_RawMonitorCreate
|
||||||
|
_JVM_RawMonitorDestroy
|
||||||
|
_JVM_RawMonitorEnter
|
||||||
|
_JVM_RawMonitorExit
|
||||||
|
_JVM_Read
|
||||||
|
_JVM_Recv
|
||||||
|
_JVM_RecvFrom
|
||||||
|
_JVM_RegisterSignal
|
||||||
|
_JVM_ReleaseUTF
|
||||||
|
_JVM_ResolveClass
|
||||||
|
_JVM_ResumeThread
|
||||||
|
_JVM_Send
|
||||||
|
_JVM_SendTo
|
||||||
|
_JVM_SetArrayElement
|
||||||
|
_JVM_SetClassSigners
|
||||||
|
_JVM_SetLength
|
||||||
|
_JVM_SetNativeThreadName
|
||||||
|
_JVM_SetPrimitiveArrayElement
|
||||||
|
_JVM_SetProtectionDomain
|
||||||
|
_JVM_SetSockOpt
|
||||||
|
_JVM_SetThreadPriority
|
||||||
|
_JVM_Sleep
|
||||||
|
_JVM_Socket
|
||||||
|
_JVM_SocketAvailable
|
||||||
|
_JVM_SocketClose
|
||||||
|
_JVM_SocketShutdown
|
||||||
|
_JVM_StartThread
|
||||||
|
_JVM_StopThread
|
||||||
|
_JVM_SuspendThread
|
||||||
|
_JVM_SupportsCX8
|
||||||
|
_JVM_Sync
|
||||||
|
_JVM_Timeout
|
||||||
|
_JVM_TotalMemory
|
||||||
|
_JVM_TraceInstructions
|
||||||
|
_JVM_TraceMethodCalls
|
||||||
|
_JVM_UnloadLibrary
|
||||||
|
_JVM_Write
|
||||||
|
_JVM_Yield
|
||||||
|
_JVM_handle_bsd_signal
|
||||||
|
|
||||||
# JVM
|
# debug _JVM
|
||||||
JVM_Accept;
|
_JVM_AccessVMBooleanFlag
|
||||||
JVM_ActiveProcessorCount;
|
_JVM_AccessVMIntFlag
|
||||||
JVM_AllocateNewArray;
|
_JVM_VMBreakPoint
|
||||||
JVM_AllocateNewObject;
|
|
||||||
JVM_ArrayCopy;
|
|
||||||
JVM_AssertionStatusDirectives;
|
|
||||||
JVM_Available;
|
|
||||||
JVM_Bind;
|
|
||||||
JVM_ClassDepth;
|
|
||||||
JVM_ClassLoaderDepth;
|
|
||||||
JVM_Clone;
|
|
||||||
JVM_Close;
|
|
||||||
JVM_CX8Field;
|
|
||||||
JVM_CompileClass;
|
|
||||||
JVM_CompileClasses;
|
|
||||||
JVM_CompilerCommand;
|
|
||||||
JVM_Connect;
|
|
||||||
JVM_ConstantPoolGetClassAt;
|
|
||||||
JVM_ConstantPoolGetClassAtIfLoaded;
|
|
||||||
JVM_ConstantPoolGetDoubleAt;
|
|
||||||
JVM_ConstantPoolGetFieldAt;
|
|
||||||
JVM_ConstantPoolGetFieldAtIfLoaded;
|
|
||||||
JVM_ConstantPoolGetFloatAt;
|
|
||||||
JVM_ConstantPoolGetIntAt;
|
|
||||||
JVM_ConstantPoolGetLongAt;
|
|
||||||
JVM_ConstantPoolGetMethodAt;
|
|
||||||
JVM_ConstantPoolGetMethodAtIfLoaded;
|
|
||||||
JVM_ConstantPoolGetMemberRefInfoAt;
|
|
||||||
JVM_ConstantPoolGetSize;
|
|
||||||
JVM_ConstantPoolGetStringAt;
|
|
||||||
JVM_ConstantPoolGetUTF8At;
|
|
||||||
JVM_CountStackFrames;
|
|
||||||
JVM_CurrentClassLoader;
|
|
||||||
JVM_CurrentLoadedClass;
|
|
||||||
JVM_CurrentThread;
|
|
||||||
JVM_CurrentTimeMillis;
|
|
||||||
JVM_DefineClass;
|
|
||||||
JVM_DefineClassWithSource;
|
|
||||||
JVM_DefineClassWithSourceCond;
|
|
||||||
JVM_DesiredAssertionStatus;
|
|
||||||
JVM_DisableCompiler;
|
|
||||||
JVM_DoPrivileged;
|
|
||||||
JVM_DTraceGetVersion;
|
|
||||||
JVM_DTraceActivate;
|
|
||||||
JVM_DTraceIsProbeEnabled;
|
|
||||||
JVM_DTraceIsSupported;
|
|
||||||
JVM_DTraceDispose;
|
|
||||||
JVM_DumpAllStacks;
|
|
||||||
JVM_DumpThreads;
|
|
||||||
JVM_EnableCompiler;
|
|
||||||
JVM_Exit;
|
|
||||||
JVM_FillInStackTrace;
|
|
||||||
JVM_FindClassFromClass;
|
|
||||||
JVM_FindClassFromClassLoader;
|
|
||||||
JVM_FindClassFromBootLoader;
|
|
||||||
JVM_FindLibraryEntry;
|
|
||||||
JVM_FindLoadedClass;
|
|
||||||
JVM_FindPrimitiveClass;
|
|
||||||
JVM_FindSignal;
|
|
||||||
JVM_FreeMemory;
|
|
||||||
JVM_GC;
|
|
||||||
JVM_GetAllThreads;
|
|
||||||
JVM_GetArrayElement;
|
|
||||||
JVM_GetArrayLength;
|
|
||||||
JVM_GetCPClassNameUTF;
|
|
||||||
JVM_GetCPFieldClassNameUTF;
|
|
||||||
JVM_GetCPFieldModifiers;
|
|
||||||
JVM_GetCPFieldNameUTF;
|
|
||||||
JVM_GetCPFieldSignatureUTF;
|
|
||||||
JVM_GetCPMethodClassNameUTF;
|
|
||||||
JVM_GetCPMethodModifiers;
|
|
||||||
JVM_GetCPMethodNameUTF;
|
|
||||||
JVM_GetCPMethodSignatureUTF;
|
|
||||||
JVM_GetCallerClass;
|
|
||||||
JVM_GetClassAccessFlags;
|
|
||||||
JVM_GetClassAnnotations;
|
|
||||||
JVM_GetClassCPEntriesCount;
|
|
||||||
JVM_GetClassCPTypes;
|
|
||||||
JVM_GetClassConstantPool;
|
|
||||||
JVM_GetClassContext;
|
|
||||||
JVM_GetClassDeclaredConstructors;
|
|
||||||
JVM_GetClassDeclaredFields;
|
|
||||||
JVM_GetClassDeclaredMethods;
|
|
||||||
JVM_GetClassFieldsCount;
|
|
||||||
JVM_GetClassInterfaces;
|
|
||||||
JVM_GetClassLoader;
|
|
||||||
JVM_GetClassMethodsCount;
|
|
||||||
JVM_GetClassModifiers;
|
|
||||||
JVM_GetClassName;
|
|
||||||
JVM_GetClassNameUTF;
|
|
||||||
JVM_GetClassSignature;
|
|
||||||
JVM_GetClassSigners;
|
|
||||||
JVM_GetClassTypeAnnotations;
|
|
||||||
JVM_GetComponentType;
|
|
||||||
JVM_GetDeclaredClasses;
|
|
||||||
JVM_GetDeclaringClass;
|
|
||||||
JVM_GetEnclosingMethodInfo;
|
|
||||||
JVM_GetFieldAnnotations;
|
|
||||||
JVM_GetFieldIxModifiers;
|
|
||||||
JVM_GetFieldTypeAnnotations;
|
|
||||||
JVM_GetHostName;
|
|
||||||
JVM_GetInheritedAccessControlContext;
|
|
||||||
JVM_GetInterfaceVersion;
|
|
||||||
JVM_GetLastErrorString;
|
|
||||||
JVM_GetManagement;
|
|
||||||
JVM_GetMethodAnnotations;
|
|
||||||
JVM_GetMethodDefaultAnnotationValue;
|
|
||||||
JVM_GetMethodIxArgsSize;
|
|
||||||
JVM_GetMethodIxByteCode;
|
|
||||||
JVM_GetMethodIxByteCodeLength;
|
|
||||||
JVM_GetMethodIxExceptionIndexes;
|
|
||||||
JVM_GetMethodIxExceptionTableEntry;
|
|
||||||
JVM_GetMethodIxExceptionTableLength;
|
|
||||||
JVM_GetMethodIxExceptionsCount;
|
|
||||||
JVM_GetMethodIxLocalsCount;
|
|
||||||
JVM_GetMethodIxMaxStack;
|
|
||||||
JVM_GetMethodIxModifiers;
|
|
||||||
JVM_GetMethodIxNameUTF;
|
|
||||||
JVM_GetMethodIxSignatureUTF;
|
|
||||||
JVM_GetMethodParameterAnnotations;
|
|
||||||
JVM_GetMethodParameters;
|
|
||||||
JVM_GetMethodTypeAnnotations;
|
|
||||||
JVM_GetPrimitiveArrayElement;
|
|
||||||
JVM_GetProtectionDomain;
|
|
||||||
JVM_GetSockName;
|
|
||||||
JVM_GetSockOpt;
|
|
||||||
JVM_GetStackAccessControlContext;
|
|
||||||
JVM_GetStackTraceDepth;
|
|
||||||
JVM_GetStackTraceElement;
|
|
||||||
JVM_GetSystemPackage;
|
|
||||||
JVM_GetSystemPackages;
|
|
||||||
JVM_GetThreadStateNames;
|
|
||||||
JVM_GetThreadStateValues;
|
|
||||||
JVM_GetVersionInfo;
|
|
||||||
JVM_Halt;
|
|
||||||
JVM_HoldsLock;
|
|
||||||
JVM_IHashCode;
|
|
||||||
JVM_InitAgentProperties;
|
|
||||||
JVM_InitProperties;
|
|
||||||
JVM_InitializeCompiler;
|
|
||||||
JVM_InitializeSocketLibrary;
|
|
||||||
JVM_InternString;
|
|
||||||
JVM_Interrupt;
|
|
||||||
JVM_InvokeMethod;
|
|
||||||
JVM_IsArrayClass;
|
|
||||||
JVM_IsConstructorIx;
|
|
||||||
JVM_IsInterface;
|
|
||||||
JVM_IsInterrupted;
|
|
||||||
JVM_IsNaN;
|
|
||||||
JVM_IsPrimitiveClass;
|
|
||||||
JVM_IsSameClassPackage;
|
|
||||||
JVM_IsSilentCompiler;
|
|
||||||
JVM_IsSupportedJNIVersion;
|
|
||||||
JVM_IsThreadAlive;
|
|
||||||
JVM_IsVMGeneratedMethodIx;
|
|
||||||
JVM_LatestUserDefinedLoader;
|
|
||||||
JVM_Listen;
|
|
||||||
JVM_LoadClass0;
|
|
||||||
JVM_LoadLibrary;
|
|
||||||
JVM_Lseek;
|
|
||||||
JVM_MaxObjectInspectionAge;
|
|
||||||
JVM_MaxMemory;
|
|
||||||
JVM_MonitorNotify;
|
|
||||||
JVM_MonitorNotifyAll;
|
|
||||||
JVM_MonitorWait;
|
|
||||||
JVM_NanoTime;
|
|
||||||
JVM_NativePath;
|
|
||||||
JVM_NewArray;
|
|
||||||
JVM_NewInstanceFromConstructor;
|
|
||||||
JVM_NewMultiArray;
|
|
||||||
JVM_OnExit;
|
|
||||||
JVM_Open;
|
|
||||||
JVM_RaiseSignal;
|
|
||||||
JVM_RawMonitorCreate;
|
|
||||||
JVM_RawMonitorDestroy;
|
|
||||||
JVM_RawMonitorEnter;
|
|
||||||
JVM_RawMonitorExit;
|
|
||||||
JVM_Read;
|
|
||||||
JVM_Recv;
|
|
||||||
JVM_RecvFrom;
|
|
||||||
JVM_RegisterSignal;
|
|
||||||
JVM_ReleaseUTF;
|
|
||||||
JVM_ResolveClass;
|
|
||||||
JVM_ResumeThread;
|
|
||||||
JVM_Send;
|
|
||||||
JVM_SendTo;
|
|
||||||
JVM_SetArrayElement;
|
|
||||||
JVM_SetClassSigners;
|
|
||||||
JVM_SetLength;
|
|
||||||
JVM_SetPrimitiveArrayElement;
|
|
||||||
JVM_SetProtectionDomain;
|
|
||||||
JVM_SetSockOpt;
|
|
||||||
JVM_SetThreadPriority;
|
|
||||||
JVM_Sleep;
|
|
||||||
JVM_Socket;
|
|
||||||
JVM_SocketAvailable;
|
|
||||||
JVM_SocketClose;
|
|
||||||
JVM_SocketShutdown;
|
|
||||||
JVM_StartThread;
|
|
||||||
JVM_StopThread;
|
|
||||||
JVM_SuspendThread;
|
|
||||||
JVM_SupportsCX8;
|
|
||||||
JVM_Sync;
|
|
||||||
JVM_Timeout;
|
|
||||||
JVM_TotalMemory;
|
|
||||||
JVM_TraceInstructions;
|
|
||||||
JVM_TraceMethodCalls;
|
|
||||||
JVM_UnloadLibrary;
|
|
||||||
JVM_Write;
|
|
||||||
JVM_Yield;
|
|
||||||
JVM_handle_bsd_signal;
|
|
||||||
|
|
||||||
# Old reflection routines
|
|
||||||
# These do not need to be present in the product build in JDK 1.4
|
|
||||||
# but their code has not been removed yet because there will not
|
|
||||||
# be a substantial code savings until JVM_InvokeMethod and
|
|
||||||
# JVM_NewInstanceFromConstructor can also be removed; see
|
|
||||||
# reflectionCompat.hpp.
|
|
||||||
JVM_GetClassConstructor;
|
|
||||||
JVM_GetClassConstructors;
|
|
||||||
JVM_GetClassField;
|
|
||||||
JVM_GetClassFields;
|
|
||||||
JVM_GetClassMethod;
|
|
||||||
JVM_GetClassMethods;
|
|
||||||
JVM_GetField;
|
|
||||||
JVM_GetPrimitiveField;
|
|
||||||
JVM_NewInstance;
|
|
||||||
JVM_SetField;
|
|
||||||
JVM_SetPrimitiveField;
|
|
||||||
|
|
||||||
# debug JVM
|
|
||||||
JVM_AccessVMBooleanFlag;
|
|
||||||
JVM_AccessVMIntFlag;
|
|
||||||
JVM_VMBreakPoint;
|
|
||||||
|
|
||||||
# miscellaneous functions
|
# miscellaneous functions
|
||||||
jio_fprintf;
|
_jio_fprintf
|
||||||
jio_printf;
|
_jio_printf
|
||||||
jio_snprintf;
|
_jio_snprintf
|
||||||
jio_vfprintf;
|
_jio_vfprintf
|
||||||
jio_vsnprintf;
|
_jio_vsnprintf
|
||||||
fork1;
|
|
||||||
numa_warn;
|
|
||||||
numa_error;
|
|
||||||
|
|
||||||
# Needed because there is no JVM interface for this.
|
|
||||||
sysThreadAvailableStackWithSlack;
|
|
||||||
|
|
||||||
# This is for Forte Analyzer profiling support.
|
# This is for Forte Analyzer profiling support.
|
||||||
AsyncGetCallTrace;
|
_AsyncGetCallTrace
|
||||||
|
|
||||||
# INSERT VTABLE SYMBOLS HERE
|
# INSERT VTABLE SYMBOLS HERE
|
||||||
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
#
|
|
||||||
# @(#)mapfile-vers-product 1.19 08/02/12 10:56:37
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
@ -25,266 +21,237 @@
|
||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
# Only used for OSX/Darwin builds
|
||||||
|
|
||||||
# Define public interface.
|
# Define public interface.
|
||||||
|
# _JNI
|
||||||
|
_JNI_CreateJavaVM
|
||||||
|
_JNI_GetCreatedJavaVMs
|
||||||
|
_JNI_GetDefaultJavaVMInitArgs
|
||||||
|
|
||||||
SUNWprivate_1.1 {
|
# _JVM
|
||||||
global:
|
_JVM_Accept
|
||||||
# JNI
|
_JVM_ActiveProcessorCount
|
||||||
JNI_CreateJavaVM;
|
_JVM_AllocateNewArray
|
||||||
JNI_GetCreatedJavaVMs;
|
_JVM_AllocateNewObject
|
||||||
JNI_GetDefaultJavaVMInitArgs;
|
_JVM_ArrayCopy
|
||||||
|
_JVM_AssertionStatusDirectives
|
||||||
# JVM
|
_JVM_Available
|
||||||
JVM_Accept;
|
_JVM_Bind
|
||||||
JVM_ActiveProcessorCount;
|
_JVM_ClassDepth
|
||||||
JVM_AllocateNewArray;
|
_JVM_ClassLoaderDepth
|
||||||
JVM_AllocateNewObject;
|
_JVM_Clone
|
||||||
JVM_ArrayCopy;
|
_JVM_Close
|
||||||
JVM_AssertionStatusDirectives;
|
_JVM_CX8Field
|
||||||
JVM_Available;
|
_JVM_CompileClass
|
||||||
JVM_Bind;
|
_JVM_CompileClasses
|
||||||
JVM_ClassDepth;
|
_JVM_CompilerCommand
|
||||||
JVM_ClassLoaderDepth;
|
_JVM_Connect
|
||||||
JVM_Clone;
|
_JVM_ConstantPoolGetClassAt
|
||||||
JVM_Close;
|
_JVM_ConstantPoolGetClassAtIfLoaded
|
||||||
JVM_CX8Field;
|
_JVM_ConstantPoolGetDoubleAt
|
||||||
JVM_CompileClass;
|
_JVM_ConstantPoolGetFieldAt
|
||||||
JVM_CompileClasses;
|
_JVM_ConstantPoolGetFieldAtIfLoaded
|
||||||
JVM_CompilerCommand;
|
_JVM_ConstantPoolGetFloatAt
|
||||||
JVM_Connect;
|
_JVM_ConstantPoolGetIntAt
|
||||||
JVM_ConstantPoolGetClassAt;
|
_JVM_ConstantPoolGetLongAt
|
||||||
JVM_ConstantPoolGetClassAtIfLoaded;
|
_JVM_ConstantPoolGetMethodAt
|
||||||
JVM_ConstantPoolGetDoubleAt;
|
_JVM_ConstantPoolGetMethodAtIfLoaded
|
||||||
JVM_ConstantPoolGetFieldAt;
|
_JVM_ConstantPoolGetMemberRefInfoAt
|
||||||
JVM_ConstantPoolGetFieldAtIfLoaded;
|
_JVM_ConstantPoolGetSize
|
||||||
JVM_ConstantPoolGetFloatAt;
|
_JVM_ConstantPoolGetStringAt
|
||||||
JVM_ConstantPoolGetIntAt;
|
_JVM_ConstantPoolGetUTF8At
|
||||||
JVM_ConstantPoolGetLongAt;
|
_JVM_CountStackFrames
|
||||||
JVM_ConstantPoolGetMethodAt;
|
_JVM_CurrentClassLoader
|
||||||
JVM_ConstantPoolGetMethodAtIfLoaded;
|
_JVM_CurrentLoadedClass
|
||||||
JVM_ConstantPoolGetMemberRefInfoAt;
|
_JVM_CurrentThread
|
||||||
JVM_ConstantPoolGetSize;
|
_JVM_CurrentTimeMillis
|
||||||
JVM_ConstantPoolGetStringAt;
|
_JVM_DefineClass
|
||||||
JVM_ConstantPoolGetUTF8At;
|
_JVM_DefineClassWithSource
|
||||||
JVM_CountStackFrames;
|
_JVM_DefineClassWithSourceCond
|
||||||
JVM_CurrentClassLoader;
|
_JVM_DesiredAssertionStatus
|
||||||
JVM_CurrentLoadedClass;
|
_JVM_DisableCompiler
|
||||||
JVM_CurrentThread;
|
_JVM_DoPrivileged
|
||||||
JVM_CurrentTimeMillis;
|
_JVM_DTraceGetVersion
|
||||||
JVM_DefineClass;
|
_JVM_DTraceActivate
|
||||||
JVM_DefineClassWithSource;
|
_JVM_DTraceIsProbeEnabled
|
||||||
JVM_DefineClassWithSourceCond;
|
_JVM_DTraceIsSupported
|
||||||
JVM_DesiredAssertionStatus;
|
_JVM_DTraceDispose
|
||||||
JVM_DisableCompiler;
|
_JVM_DumpAllStacks
|
||||||
JVM_DoPrivileged;
|
_JVM_DumpThreads
|
||||||
JVM_DTraceGetVersion;
|
_JVM_EnableCompiler
|
||||||
JVM_DTraceActivate;
|
_JVM_Exit
|
||||||
JVM_DTraceIsProbeEnabled;
|
_JVM_FillInStackTrace
|
||||||
JVM_DTraceIsSupported;
|
_JVM_FindClassFromClass
|
||||||
JVM_DTraceDispose;
|
_JVM_FindClassFromClassLoader
|
||||||
JVM_DumpAllStacks;
|
_JVM_FindClassFromBootLoader
|
||||||
JVM_DumpThreads;
|
_JVM_FindLibraryEntry
|
||||||
JVM_EnableCompiler;
|
_JVM_FindLoadedClass
|
||||||
JVM_Exit;
|
_JVM_FindPrimitiveClass
|
||||||
JVM_FillInStackTrace;
|
_JVM_FindSignal
|
||||||
JVM_FindClassFromClass;
|
_JVM_FreeMemory
|
||||||
JVM_FindClassFromClassLoader;
|
_JVM_GC
|
||||||
JVM_FindClassFromBootLoader;
|
_JVM_GetAllThreads
|
||||||
JVM_FindLibraryEntry;
|
_JVM_GetArrayElement
|
||||||
JVM_FindLoadedClass;
|
_JVM_GetArrayLength
|
||||||
JVM_FindPrimitiveClass;
|
_JVM_GetCPClassNameUTF
|
||||||
JVM_FindSignal;
|
_JVM_GetCPFieldClassNameUTF
|
||||||
JVM_FreeMemory;
|
_JVM_GetCPFieldModifiers
|
||||||
JVM_GC;
|
_JVM_GetCPFieldNameUTF
|
||||||
JVM_GetAllThreads;
|
_JVM_GetCPFieldSignatureUTF
|
||||||
JVM_GetArrayElement;
|
_JVM_GetCPMethodClassNameUTF
|
||||||
JVM_GetArrayLength;
|
_JVM_GetCPMethodModifiers
|
||||||
JVM_GetCPClassNameUTF;
|
_JVM_GetCPMethodNameUTF
|
||||||
JVM_GetCPFieldClassNameUTF;
|
_JVM_GetCPMethodSignatureUTF
|
||||||
JVM_GetCPFieldModifiers;
|
_JVM_GetCallerClass
|
||||||
JVM_GetCPFieldNameUTF;
|
_JVM_GetClassAccessFlags
|
||||||
JVM_GetCPFieldSignatureUTF;
|
_JVM_GetClassAnnotations
|
||||||
JVM_GetCPMethodClassNameUTF;
|
_JVM_GetClassCPEntriesCount
|
||||||
JVM_GetCPMethodModifiers;
|
_JVM_GetClassCPTypes
|
||||||
JVM_GetCPMethodNameUTF;
|
_JVM_GetClassConstantPool
|
||||||
JVM_GetCPMethodSignatureUTF;
|
_JVM_GetClassContext
|
||||||
JVM_GetCallerClass;
|
_JVM_GetClassDeclaredConstructors
|
||||||
JVM_GetClassAccessFlags;
|
_JVM_GetClassDeclaredFields
|
||||||
JVM_GetClassAnnotations;
|
_JVM_GetClassDeclaredMethods
|
||||||
JVM_GetClassCPEntriesCount;
|
_JVM_GetClassFieldsCount
|
||||||
JVM_GetClassCPTypes;
|
_JVM_GetClassInterfaces
|
||||||
JVM_GetClassConstantPool;
|
_JVM_GetClassLoader
|
||||||
JVM_GetClassContext;
|
_JVM_GetClassMethodsCount
|
||||||
JVM_GetClassDeclaredConstructors;
|
_JVM_GetClassModifiers
|
||||||
JVM_GetClassDeclaredFields;
|
_JVM_GetClassName
|
||||||
JVM_GetClassDeclaredMethods;
|
_JVM_GetClassNameUTF
|
||||||
JVM_GetClassFieldsCount;
|
_JVM_GetClassSignature
|
||||||
JVM_GetClassInterfaces;
|
_JVM_GetClassSigners
|
||||||
JVM_GetClassLoader;
|
_JVM_GetClassTypeAnnotations
|
||||||
JVM_GetClassMethodsCount;
|
_JVM_GetComponentType
|
||||||
JVM_GetClassModifiers;
|
_JVM_GetDeclaredClasses
|
||||||
JVM_GetClassName;
|
_JVM_GetDeclaringClass
|
||||||
JVM_GetClassNameUTF;
|
_JVM_GetEnclosingMethodInfo
|
||||||
JVM_GetClassSignature;
|
_JVM_GetFieldAnnotations
|
||||||
JVM_GetClassSigners;
|
_JVM_GetFieldIxModifiers
|
||||||
JVM_GetClassTypeAnnotations;
|
_JVM_GetFieldTypeAnnotations
|
||||||
JVM_GetComponentType;
|
_JVM_GetHostName
|
||||||
JVM_GetDeclaredClasses;
|
_JVM_GetInheritedAccessControlContext
|
||||||
JVM_GetDeclaringClass;
|
_JVM_GetInterfaceVersion
|
||||||
JVM_GetEnclosingMethodInfo;
|
_JVM_GetLastErrorString
|
||||||
JVM_GetFieldAnnotations;
|
_JVM_GetManagement
|
||||||
JVM_GetFieldIxModifiers;
|
_JVM_GetMethodAnnotations
|
||||||
JVM_GetFieldTypeAnnotations;
|
_JVM_GetMethodDefaultAnnotationValue
|
||||||
JVM_GetHostName;
|
_JVM_GetMethodIxArgsSize
|
||||||
JVM_GetInheritedAccessControlContext;
|
_JVM_GetMethodIxByteCode
|
||||||
JVM_GetInterfaceVersion;
|
_JVM_GetMethodIxByteCodeLength
|
||||||
JVM_GetLastErrorString;
|
_JVM_GetMethodIxExceptionIndexes
|
||||||
JVM_GetManagement;
|
_JVM_GetMethodIxExceptionTableEntry
|
||||||
JVM_GetMethodAnnotations;
|
_JVM_GetMethodIxExceptionTableLength
|
||||||
JVM_GetMethodDefaultAnnotationValue;
|
_JVM_GetMethodIxExceptionsCount
|
||||||
JVM_GetMethodIxArgsSize;
|
_JVM_GetMethodIxLocalsCount
|
||||||
JVM_GetMethodIxByteCode;
|
_JVM_GetMethodIxMaxStack
|
||||||
JVM_GetMethodIxByteCodeLength;
|
_JVM_GetMethodIxModifiers
|
||||||
JVM_GetMethodIxExceptionIndexes;
|
_JVM_GetMethodIxNameUTF
|
||||||
JVM_GetMethodIxExceptionTableEntry;
|
_JVM_GetMethodIxSignatureUTF
|
||||||
JVM_GetMethodIxExceptionTableLength;
|
_JVM_GetMethodParameterAnnotations
|
||||||
JVM_GetMethodIxExceptionsCount;
|
_JVM_GetMethodParameters
|
||||||
JVM_GetMethodIxLocalsCount;
|
_JVM_GetMethodTypeAnnotations
|
||||||
JVM_GetMethodIxMaxStack;
|
_JVM_GetPrimitiveArrayElement
|
||||||
JVM_GetMethodIxModifiers;
|
_JVM_GetProtectionDomain
|
||||||
JVM_GetMethodIxNameUTF;
|
_JVM_GetSockName
|
||||||
JVM_GetMethodIxSignatureUTF;
|
_JVM_GetSockOpt
|
||||||
JVM_GetMethodParameterAnnotations;
|
_JVM_GetStackAccessControlContext
|
||||||
JVM_GetMethodParameters;
|
_JVM_GetStackTraceDepth
|
||||||
JVM_GetMethodTypeAnnotations;
|
_JVM_GetStackTraceElement
|
||||||
JVM_GetPrimitiveArrayElement;
|
_JVM_GetSystemPackage
|
||||||
JVM_GetProtectionDomain;
|
_JVM_GetSystemPackages
|
||||||
JVM_GetSockName;
|
_JVM_GetThreadStateNames
|
||||||
JVM_GetSockOpt;
|
_JVM_GetThreadStateValues
|
||||||
JVM_GetStackAccessControlContext;
|
_JVM_GetVersionInfo
|
||||||
JVM_GetStackTraceDepth;
|
_JVM_Halt
|
||||||
JVM_GetStackTraceElement;
|
_JVM_HoldsLock
|
||||||
JVM_GetSystemPackage;
|
_JVM_IHashCode
|
||||||
JVM_GetSystemPackages;
|
_JVM_InitAgentProperties
|
||||||
JVM_GetThreadStateNames;
|
_JVM_InitProperties
|
||||||
JVM_GetThreadStateValues;
|
_JVM_InitializeCompiler
|
||||||
JVM_GetVersionInfo;
|
_JVM_InitializeSocketLibrary
|
||||||
JVM_Halt;
|
_JVM_InternString
|
||||||
JVM_HoldsLock;
|
_JVM_Interrupt
|
||||||
JVM_IHashCode;
|
_JVM_InvokeMethod
|
||||||
JVM_InitAgentProperties;
|
_JVM_IsArrayClass
|
||||||
JVM_InitProperties;
|
_JVM_IsConstructorIx
|
||||||
JVM_InitializeCompiler;
|
_JVM_IsInterface
|
||||||
JVM_InitializeSocketLibrary;
|
_JVM_IsInterrupted
|
||||||
JVM_InternString;
|
_JVM_IsNaN
|
||||||
JVM_Interrupt;
|
_JVM_IsPrimitiveClass
|
||||||
JVM_InvokeMethod;
|
_JVM_IsSameClassPackage
|
||||||
JVM_IsArrayClass;
|
_JVM_IsSilentCompiler
|
||||||
JVM_IsConstructorIx;
|
_JVM_IsSupportedJNIVersion
|
||||||
JVM_IsInterface;
|
_JVM_IsThreadAlive
|
||||||
JVM_IsInterrupted;
|
_JVM_IsVMGeneratedMethodIx
|
||||||
JVM_IsNaN;
|
_JVM_LatestUserDefinedLoader
|
||||||
JVM_IsPrimitiveClass;
|
_JVM_Listen
|
||||||
JVM_IsSameClassPackage;
|
_JVM_LoadClass0
|
||||||
JVM_IsSilentCompiler;
|
_JVM_LoadLibrary
|
||||||
JVM_IsSupportedJNIVersion;
|
_JVM_Lseek
|
||||||
JVM_IsThreadAlive;
|
_JVM_MaxObjectInspectionAge
|
||||||
JVM_IsVMGeneratedMethodIx;
|
_JVM_MaxMemory
|
||||||
JVM_LatestUserDefinedLoader;
|
_JVM_MonitorNotify
|
||||||
JVM_Listen;
|
_JVM_MonitorNotifyAll
|
||||||
JVM_LoadClass0;
|
_JVM_MonitorWait
|
||||||
JVM_LoadLibrary;
|
_JVM_NanoTime
|
||||||
JVM_Lseek;
|
_JVM_NativePath
|
||||||
JVM_MaxObjectInspectionAge;
|
_JVM_NewArray
|
||||||
JVM_MaxMemory;
|
_JVM_NewInstanceFromConstructor
|
||||||
JVM_MonitorNotify;
|
_JVM_NewMultiArray
|
||||||
JVM_MonitorNotifyAll;
|
_JVM_OnExit
|
||||||
JVM_MonitorWait;
|
_JVM_Open
|
||||||
JVM_NanoTime;
|
_JVM_RaiseSignal
|
||||||
JVM_NativePath;
|
_JVM_RawMonitorCreate
|
||||||
JVM_NewArray;
|
_JVM_RawMonitorDestroy
|
||||||
JVM_NewInstanceFromConstructor;
|
_JVM_RawMonitorEnter
|
||||||
JVM_NewMultiArray;
|
_JVM_RawMonitorExit
|
||||||
JVM_OnExit;
|
_JVM_Read
|
||||||
JVM_Open;
|
_JVM_Recv
|
||||||
JVM_RaiseSignal;
|
_JVM_RecvFrom
|
||||||
JVM_RawMonitorCreate;
|
_JVM_RegisterSignal
|
||||||
JVM_RawMonitorDestroy;
|
_JVM_ReleaseUTF
|
||||||
JVM_RawMonitorEnter;
|
_JVM_ResolveClass
|
||||||
JVM_RawMonitorExit;
|
_JVM_ResumeThread
|
||||||
JVM_Read;
|
_JVM_Send
|
||||||
JVM_Recv;
|
_JVM_SendTo
|
||||||
JVM_RecvFrom;
|
_JVM_SetArrayElement
|
||||||
JVM_RegisterSignal;
|
_JVM_SetClassSigners
|
||||||
JVM_ReleaseUTF;
|
_JVM_SetLength
|
||||||
JVM_ResolveClass;
|
_JVM_SetNativeThreadName
|
||||||
JVM_ResumeThread;
|
_JVM_SetPrimitiveArrayElement
|
||||||
JVM_Send;
|
_JVM_SetProtectionDomain
|
||||||
JVM_SendTo;
|
_JVM_SetSockOpt
|
||||||
JVM_SetArrayElement;
|
_JVM_SetThreadPriority
|
||||||
JVM_SetClassSigners;
|
_JVM_Sleep
|
||||||
JVM_SetLength;
|
_JVM_Socket
|
||||||
JVM_SetPrimitiveArrayElement;
|
_JVM_SocketAvailable
|
||||||
JVM_SetProtectionDomain;
|
_JVM_SocketClose
|
||||||
JVM_SetSockOpt;
|
_JVM_SocketShutdown
|
||||||
JVM_SetThreadPriority;
|
_JVM_StartThread
|
||||||
JVM_Sleep;
|
_JVM_StopThread
|
||||||
JVM_Socket;
|
_JVM_SuspendThread
|
||||||
JVM_SocketAvailable;
|
_JVM_SupportsCX8
|
||||||
JVM_SocketClose;
|
_JVM_Sync
|
||||||
JVM_SocketShutdown;
|
_JVM_Timeout
|
||||||
JVM_StartThread;
|
_JVM_TotalMemory
|
||||||
JVM_StopThread;
|
_JVM_TraceInstructions
|
||||||
JVM_SuspendThread;
|
_JVM_TraceMethodCalls
|
||||||
JVM_SupportsCX8;
|
_JVM_UnloadLibrary
|
||||||
JVM_Sync;
|
_JVM_Write
|
||||||
JVM_Timeout;
|
_JVM_Yield
|
||||||
JVM_TotalMemory;
|
_JVM_handle_bsd_signal
|
||||||
JVM_TraceInstructions;
|
|
||||||
JVM_TraceMethodCalls;
|
|
||||||
JVM_UnloadLibrary;
|
|
||||||
JVM_Write;
|
|
||||||
JVM_Yield;
|
|
||||||
JVM_handle_bsd_signal;
|
|
||||||
|
|
||||||
# Old reflection routines
|
|
||||||
# These do not need to be present in the product build in JDK 1.4
|
|
||||||
# but their code has not been removed yet because there will not
|
|
||||||
# be a substantial code savings until JVM_InvokeMethod and
|
|
||||||
# JVM_NewInstanceFromConstructor can also be removed; see
|
|
||||||
# reflectionCompat.hpp.
|
|
||||||
JVM_GetClassConstructor;
|
|
||||||
JVM_GetClassConstructors;
|
|
||||||
JVM_GetClassField;
|
|
||||||
JVM_GetClassFields;
|
|
||||||
JVM_GetClassMethod;
|
|
||||||
JVM_GetClassMethods;
|
|
||||||
JVM_GetField;
|
|
||||||
JVM_GetPrimitiveField;
|
|
||||||
JVM_NewInstance;
|
|
||||||
JVM_SetField;
|
|
||||||
JVM_SetPrimitiveField;
|
|
||||||
|
|
||||||
# miscellaneous functions
|
# miscellaneous functions
|
||||||
jio_fprintf;
|
_jio_fprintf
|
||||||
jio_printf;
|
_jio_printf
|
||||||
jio_snprintf;
|
_jio_snprintf
|
||||||
jio_vfprintf;
|
_jio_vfprintf
|
||||||
jio_vsnprintf;
|
_jio_vsnprintf
|
||||||
fork1;
|
|
||||||
numa_warn;
|
|
||||||
numa_error;
|
|
||||||
|
|
||||||
# Needed because there is no JVM interface for this.
|
|
||||||
sysThreadAvailableStackWithSlack;
|
|
||||||
|
|
||||||
# This is for Forte Analyzer profiling support.
|
# This is for Forte Analyzer profiling support.
|
||||||
AsyncGetCallTrace;
|
_AsyncGetCallTrace
|
||||||
|
|
||||||
# INSERT VTABLE SYMBOLS HERE
|
# INSERT VTABLE SYMBOLS HERE
|
||||||
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -112,3 +112,5 @@ ifeq ($(INCLUDE_NMT), false)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
-include $(HS_ALT_MAKE)/excludeSrc.make
|
-include $(HS_ALT_MAKE)/excludeSrc.make
|
||||||
|
|
||||||
|
.PHONY: $(HS_ALT_MAKE)/excludeSrc.make
|
||||||
|
|
|
@ -35,7 +35,7 @@ HOTSPOT_VM_COPYRIGHT=Copyright 2013
|
||||||
|
|
||||||
HS_MAJOR_VER=25
|
HS_MAJOR_VER=25
|
||||||
HS_MINOR_VER=0
|
HS_MINOR_VER=0
|
||||||
HS_BUILD_NUMBER=37
|
HS_BUILD_NUMBER=39
|
||||||
|
|
||||||
JDK_MAJOR_VER=1
|
JDK_MAJOR_VER=1
|
||||||
JDK_MINOR_VER=8
|
JDK_MINOR_VER=8
|
||||||
|
|
|
@ -214,7 +214,7 @@ ifeq ($(USE_CLANG), true)
|
||||||
WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
|
WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
|
||||||
endif
|
endif
|
||||||
|
|
||||||
WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function
|
WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value
|
||||||
|
|
||||||
ifeq ($(USE_CLANG),)
|
ifeq ($(USE_CLANG),)
|
||||||
# Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
|
# Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
|
||||||
|
@ -350,9 +350,9 @@ else
|
||||||
ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
|
ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
|
||||||
ifeq ($(USE_CLANG), true)
|
ifeq ($(USE_CLANG), true)
|
||||||
# Clang doesn't understand -gstabs
|
# Clang doesn't understand -gstabs
|
||||||
OPT_CFLAGS += -g
|
DEBUG_CFLAGS += -g
|
||||||
else
|
else
|
||||||
OPT_CFLAGS += -gstabs
|
DEBUG_CFLAGS += -gstabs
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -365,9 +365,9 @@ else
|
||||||
ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
|
ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
|
||||||
ifeq ($(USE_CLANG), true)
|
ifeq ($(USE_CLANG), true)
|
||||||
# Clang doesn't understand -gstabs
|
# Clang doesn't understand -gstabs
|
||||||
OPT_CFLAGS += -g
|
FASTDEBUG_CFLAGS += -g
|
||||||
else
|
else
|
||||||
OPT_CFLAGS += -gstabs
|
FASTDEBUG_CFLAGS += -gstabs
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,10 @@ CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
|
||||||
# File specific flags
|
# File specific flags
|
||||||
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
||||||
|
|
||||||
|
# Large File Support
|
||||||
|
ifneq ($(LP64), 1)
|
||||||
|
CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
|
||||||
|
endif # ifneq ($(LP64), 1)
|
||||||
|
|
||||||
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
||||||
CFLAGS += $(CFLAGS_WARN/BYFILE)
|
CFLAGS += $(CFLAGS_WARN/BYFILE)
|
||||||
|
|
|
@ -95,6 +95,10 @@ CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
|
||||||
# File specific flags
|
# File specific flags
|
||||||
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
||||||
|
|
||||||
|
# Large File Support
|
||||||
|
ifneq ($(LP64), 1)
|
||||||
|
CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
|
||||||
|
endif # ifneq ($(LP64), 1)
|
||||||
|
|
||||||
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
||||||
CFLAGS += $(CFLAGS_WARN)
|
CFLAGS += $(CFLAGS_WARN)
|
||||||
|
|
|
@ -57,7 +57,6 @@ class Assembler : public AbstractAssembler {
|
||||||
fbp_op2 = 5,
|
fbp_op2 = 5,
|
||||||
br_op2 = 2,
|
br_op2 = 2,
|
||||||
bp_op2 = 1,
|
bp_op2 = 1,
|
||||||
cb_op2 = 7, // V8
|
|
||||||
sethi_op2 = 4
|
sethi_op2 = 4
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -145,7 +144,6 @@ class Assembler : public AbstractAssembler {
|
||||||
ldsh_op3 = 0x0a,
|
ldsh_op3 = 0x0a,
|
||||||
ldx_op3 = 0x0b,
|
ldx_op3 = 0x0b,
|
||||||
|
|
||||||
ldstub_op3 = 0x0d,
|
|
||||||
stx_op3 = 0x0e,
|
stx_op3 = 0x0e,
|
||||||
swap_op3 = 0x0f,
|
swap_op3 = 0x0f,
|
||||||
|
|
||||||
|
@ -163,15 +161,6 @@ class Assembler : public AbstractAssembler {
|
||||||
|
|
||||||
prefetch_op3 = 0x2d,
|
prefetch_op3 = 0x2d,
|
||||||
|
|
||||||
|
|
||||||
ldc_op3 = 0x30,
|
|
||||||
ldcsr_op3 = 0x31,
|
|
||||||
lddc_op3 = 0x33,
|
|
||||||
stc_op3 = 0x34,
|
|
||||||
stcsr_op3 = 0x35,
|
|
||||||
stdcq_op3 = 0x36,
|
|
||||||
stdc_op3 = 0x37,
|
|
||||||
|
|
||||||
casa_op3 = 0x3c,
|
casa_op3 = 0x3c,
|
||||||
casxa_op3 = 0x3e,
|
casxa_op3 = 0x3e,
|
||||||
|
|
||||||
|
@ -574,17 +563,11 @@ class Assembler : public AbstractAssembler {
|
||||||
static void vis3_only() { assert( VM_Version::has_vis3(), "This instruction only works on SPARC with VIS3"); }
|
static void vis3_only() { assert( VM_Version::has_vis3(), "This instruction only works on SPARC with VIS3"); }
|
||||||
|
|
||||||
// instruction only in v9
|
// instruction only in v9
|
||||||
static void v9_only() { assert( VM_Version::v9_instructions_work(), "This instruction only works on SPARC V9"); }
|
static void v9_only() { } // do nothing
|
||||||
|
|
||||||
// instruction only in v8
|
|
||||||
static void v8_only() { assert( VM_Version::v8_instructions_work(), "This instruction only works on SPARC V8"); }
|
|
||||||
|
|
||||||
// instruction deprecated in v9
|
// instruction deprecated in v9
|
||||||
static void v9_dep() { } // do nothing for now
|
static void v9_dep() { } // do nothing for now
|
||||||
|
|
||||||
// some float instructions only exist for single prec. on v8
|
|
||||||
static void v8_s_only(FloatRegisterImpl::Width w) { if (w != FloatRegisterImpl::S) v9_only(); }
|
|
||||||
|
|
||||||
// v8 has no CC field
|
// v8 has no CC field
|
||||||
static void v8_no_cc(CC cc) { if (cc) v9_only(); }
|
static void v8_no_cc(CC cc) { if (cc) v9_only(); }
|
||||||
|
|
||||||
|
@ -730,11 +713,6 @@ public:
|
||||||
inline void bp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt = relocInfo::none );
|
inline void bp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt = relocInfo::none );
|
||||||
inline void bp( Condition c, bool a, CC cc, Predict p, Label& L );
|
inline void bp( Condition c, bool a, CC cc, Predict p, Label& L );
|
||||||
|
|
||||||
// pp 121 (V8)
|
|
||||||
|
|
||||||
inline void cb( Condition c, bool a, address d, relocInfo::relocType rt = relocInfo::none );
|
|
||||||
inline void cb( Condition c, bool a, Label& L );
|
|
||||||
|
|
||||||
// pp 149
|
// pp 149
|
||||||
|
|
||||||
inline void call( address d, relocInfo::relocType rt = relocInfo::runtime_call_type );
|
inline void call( address d, relocInfo::relocType rt = relocInfo::runtime_call_type );
|
||||||
|
@ -775,8 +753,8 @@ public:
|
||||||
|
|
||||||
// pp 157
|
// pp 157
|
||||||
|
|
||||||
void fcmp( FloatRegisterImpl::Width w, CC cc, FloatRegister s1, FloatRegister s2) { v8_no_cc(cc); emit_int32( op(arith_op) | cmpcc(cc) | op3(fpop2_op3) | fs1(s1, w) | opf(0x50 + w) | fs2(s2, w)); }
|
void fcmp( FloatRegisterImpl::Width w, CC cc, FloatRegister s1, FloatRegister s2) { emit_int32( op(arith_op) | cmpcc(cc) | op3(fpop2_op3) | fs1(s1, w) | opf(0x50 + w) | fs2(s2, w)); }
|
||||||
void fcmpe( FloatRegisterImpl::Width w, CC cc, FloatRegister s1, FloatRegister s2) { v8_no_cc(cc); emit_int32( op(arith_op) | cmpcc(cc) | op3(fpop2_op3) | fs1(s1, w) | opf(0x54 + w) | fs2(s2, w)); }
|
void fcmpe( FloatRegisterImpl::Width w, CC cc, FloatRegister s1, FloatRegister s2) { emit_int32( op(arith_op) | cmpcc(cc) | op3(fpop2_op3) | fs1(s1, w) | opf(0x54 + w) | fs2(s2, w)); }
|
||||||
|
|
||||||
// pp 159
|
// pp 159
|
||||||
|
|
||||||
|
@ -794,21 +772,11 @@ public:
|
||||||
|
|
||||||
// pp 162
|
// pp 162
|
||||||
|
|
||||||
void fmov( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d ) { v8_s_only(w); emit_int32( op(arith_op) | fd(d, w) | op3(fpop1_op3) | opf(0x00 + w) | fs2(s, w)); }
|
void fmov( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d ) { emit_int32( op(arith_op) | fd(d, w) | op3(fpop1_op3) | opf(0x00 + w) | fs2(s, w)); }
|
||||||
|
|
||||||
void fneg( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d ) { v8_s_only(w); emit_int32( op(arith_op) | fd(d, w) | op3(fpop1_op3) | opf(0x04 + w) | fs2(s, w)); }
|
void fneg( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d ) { emit_int32( op(arith_op) | fd(d, w) | op3(fpop1_op3) | opf(0x04 + w) | fs2(s, w)); }
|
||||||
|
|
||||||
// page 144 sparc v8 architecture (double prec works on v8 if the source and destination registers are the same). fnegs is the only instruction available
|
void fabs( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d ) { emit_int32( op(arith_op) | fd(d, w) | op3(fpop1_op3) | opf(0x08 + w) | fs2(s, w)); }
|
||||||
// on v8 to do negation of single, double and quad precision floats.
|
|
||||||
|
|
||||||
void fneg( FloatRegisterImpl::Width w, FloatRegister sd ) { if (VM_Version::v9_instructions_work()) emit_int32( op(arith_op) | fd(sd, w) | op3(fpop1_op3) | opf(0x04 + w) | fs2(sd, w)); else emit_int32( op(arith_op) | fd(sd, w) | op3(fpop1_op3) | opf(0x05) | fs2(sd, w)); }
|
|
||||||
|
|
||||||
void fabs( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d ) { v8_s_only(w); emit_int32( op(arith_op) | fd(d, w) | op3(fpop1_op3) | opf(0x08 + w) | fs2(s, w)); }
|
|
||||||
|
|
||||||
// page 144 sparc v8 architecture (double prec works on v8 if the source and destination registers are the same). fabss is the only instruction available
|
|
||||||
// on v8 to do abs operation on single/double/quad precision floats.
|
|
||||||
|
|
||||||
void fabs( FloatRegisterImpl::Width w, FloatRegister sd ) { if (VM_Version::v9_instructions_work()) emit_int32( op(arith_op) | fd(sd, w) | op3(fpop1_op3) | opf(0x08 + w) | fs2(sd, w)); else emit_int32( op(arith_op) | fd(sd, w) | op3(fpop1_op3) | opf(0x09) | fs2(sd, w)); }
|
|
||||||
|
|
||||||
// pp 163
|
// pp 163
|
||||||
|
|
||||||
|
@ -839,11 +807,6 @@ public:
|
||||||
void impdep1( int id1, int const19a ) { v9_only(); emit_int32( op(arith_op) | fcn(id1) | op3(impdep1_op3) | u_field(const19a, 18, 0)); }
|
void impdep1( int id1, int const19a ) { v9_only(); emit_int32( op(arith_op) | fcn(id1) | op3(impdep1_op3) | u_field(const19a, 18, 0)); }
|
||||||
void impdep2( int id1, int const19a ) { v9_only(); emit_int32( op(arith_op) | fcn(id1) | op3(impdep2_op3) | u_field(const19a, 18, 0)); }
|
void impdep2( int id1, int const19a ) { v9_only(); emit_int32( op(arith_op) | fcn(id1) | op3(impdep2_op3) | u_field(const19a, 18, 0)); }
|
||||||
|
|
||||||
// pp 149 (v8)
|
|
||||||
|
|
||||||
void cpop1( int opc, int cr1, int cr2, int crd ) { v8_only(); emit_int32( op(arith_op) | fcn(crd) | op3(impdep1_op3) | u_field(cr1, 18, 14) | opf(opc) | u_field(cr2, 4, 0)); }
|
|
||||||
void cpop2( int opc, int cr1, int cr2, int crd ) { v8_only(); emit_int32( op(arith_op) | fcn(crd) | op3(impdep2_op3) | u_field(cr1, 18, 14) | opf(opc) | u_field(cr2, 4, 0)); }
|
|
||||||
|
|
||||||
// pp 170
|
// pp 170
|
||||||
|
|
||||||
void jmpl( Register s1, Register s2, Register d );
|
void jmpl( Register s1, Register s2, Register d );
|
||||||
|
@ -860,16 +823,6 @@ public:
|
||||||
inline void ldxfsr( Register s1, Register s2 );
|
inline void ldxfsr( Register s1, Register s2 );
|
||||||
inline void ldxfsr( Register s1, int simm13a);
|
inline void ldxfsr( Register s1, int simm13a);
|
||||||
|
|
||||||
// pp 94 (v8)
|
|
||||||
|
|
||||||
inline void ldc( Register s1, Register s2, int crd );
|
|
||||||
inline void ldc( Register s1, int simm13a, int crd);
|
|
||||||
inline void lddc( Register s1, Register s2, int crd );
|
|
||||||
inline void lddc( Register s1, int simm13a, int crd);
|
|
||||||
inline void ldcsr( Register s1, Register s2, int crd );
|
|
||||||
inline void ldcsr( Register s1, int simm13a, int crd);
|
|
||||||
|
|
||||||
|
|
||||||
// 173
|
// 173
|
||||||
|
|
||||||
void ldfa( FloatRegisterImpl::Width w, Register s1, Register s2, int ia, FloatRegister d ) { v9_only(); emit_int32( op(ldst_op) | fd(d, w) | alt_op3(ldf_op3 | alt_bit_op3, w) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
void ldfa( FloatRegisterImpl::Width w, Register s1, Register s2, int ia, FloatRegister d ) { v9_only(); emit_int32( op(ldst_op) | fd(d, w) | alt_op3(ldf_op3 | alt_bit_op3, w) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
||||||
|
@ -910,18 +863,6 @@ public:
|
||||||
void lduwa( Register s1, int simm13a, Register d ) { emit_int32( op(ldst_op) | rd(d) | op3(lduw_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
void lduwa( Register s1, int simm13a, Register d ) { emit_int32( op(ldst_op) | rd(d) | op3(lduw_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
||||||
void ldxa( Register s1, Register s2, int ia, Register d ) { v9_only(); emit_int32( op(ldst_op) | rd(d) | op3(ldx_op3 | alt_bit_op3) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
void ldxa( Register s1, Register s2, int ia, Register d ) { v9_only(); emit_int32( op(ldst_op) | rd(d) | op3(ldx_op3 | alt_bit_op3) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
||||||
void ldxa( Register s1, int simm13a, Register d ) { v9_only(); emit_int32( op(ldst_op) | rd(d) | op3(ldx_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
void ldxa( Register s1, int simm13a, Register d ) { v9_only(); emit_int32( op(ldst_op) | rd(d) | op3(ldx_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
||||||
void ldda( Register s1, Register s2, int ia, Register d ) { v9_dep(); emit_int32( op(ldst_op) | rd(d) | op3(ldd_op3 | alt_bit_op3) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
|
||||||
void ldda( Register s1, int simm13a, Register d ) { v9_dep(); emit_int32( op(ldst_op) | rd(d) | op3(ldd_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
|
||||||
|
|
||||||
// pp 179
|
|
||||||
|
|
||||||
inline void ldstub( Register s1, Register s2, Register d );
|
|
||||||
inline void ldstub( Register s1, int simm13a, Register d);
|
|
||||||
|
|
||||||
// pp 180
|
|
||||||
|
|
||||||
void ldstuba( Register s1, Register s2, int ia, Register d ) { emit_int32( op(ldst_op) | rd(d) | op3(ldstub_op3 | alt_bit_op3) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
|
||||||
void ldstuba( Register s1, int simm13a, Register d ) { emit_int32( op(ldst_op) | rd(d) | op3(ldstub_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
|
||||||
|
|
||||||
// pp 181
|
// pp 181
|
||||||
|
|
||||||
|
@ -992,11 +933,6 @@ public:
|
||||||
void smulcc( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(smul_op3 | cc_bit_op3) | rs1(s1) | rs2(s2) ); }
|
void smulcc( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(smul_op3 | cc_bit_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
void smulcc( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(smul_op3 | cc_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
void smulcc( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(smul_op3 | cc_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
||||||
|
|
||||||
// pp 199
|
|
||||||
|
|
||||||
void mulscc( Register s1, Register s2, Register d ) { v9_dep(); emit_int32( op(arith_op) | rd(d) | op3(mulscc_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
void mulscc( Register s1, int simm13a, Register d ) { v9_dep(); emit_int32( op(arith_op) | rd(d) | op3(mulscc_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
|
||||||
|
|
||||||
// pp 201
|
// pp 201
|
||||||
|
|
||||||
void nop() { emit_int32( op(branch_op) | op2(sethi_op2) ); }
|
void nop() { emit_int32( op(branch_op) | op2(sethi_op2) ); }
|
||||||
|
@ -1116,17 +1052,6 @@ public:
|
||||||
void stda( Register d, Register s1, Register s2, int ia ) { emit_int32( op(ldst_op) | rd(d) | op3(std_op3 | alt_bit_op3) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
void stda( Register d, Register s1, Register s2, int ia ) { emit_int32( op(ldst_op) | rd(d) | op3(std_op3 | alt_bit_op3) | rs1(s1) | imm_asi(ia) | rs2(s2) ); }
|
||||||
void stda( Register d, Register s1, int simm13a ) { emit_int32( op(ldst_op) | rd(d) | op3(std_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
void stda( Register d, Register s1, int simm13a ) { emit_int32( op(ldst_op) | rd(d) | op3(std_op3 | alt_bit_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
||||||
|
|
||||||
// pp 97 (v8)
|
|
||||||
|
|
||||||
inline void stc( int crd, Register s1, Register s2 );
|
|
||||||
inline void stc( int crd, Register s1, int simm13a);
|
|
||||||
inline void stdc( int crd, Register s1, Register s2 );
|
|
||||||
inline void stdc( int crd, Register s1, int simm13a);
|
|
||||||
inline void stcsr( int crd, Register s1, Register s2 );
|
|
||||||
inline void stcsr( int crd, Register s1, int simm13a);
|
|
||||||
inline void stdcq( int crd, Register s1, Register s2 );
|
|
||||||
inline void stdcq( int crd, Register s1, int simm13a);
|
|
||||||
|
|
||||||
// pp 230
|
// pp 230
|
||||||
|
|
||||||
void sub( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(sub_op3 ) | rs1(s1) | rs2(s2) ); }
|
void sub( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(sub_op3 ) | rs1(s1) | rs2(s2) ); }
|
||||||
|
@ -1153,20 +1078,16 @@ public:
|
||||||
|
|
||||||
void taddcc( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(taddcc_op3 ) | rs1(s1) | rs2(s2) ); }
|
void taddcc( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(taddcc_op3 ) | rs1(s1) | rs2(s2) ); }
|
||||||
void taddcc( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(taddcc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
void taddcc( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(taddcc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
||||||
void taddcctv( Register s1, Register s2, Register d ) { v9_dep(); emit_int32( op(arith_op) | rd(d) | op3(taddcctv_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
void taddcctv( Register s1, int simm13a, Register d ) { v9_dep(); emit_int32( op(arith_op) | rd(d) | op3(taddcctv_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
|
||||||
|
|
||||||
// pp 235
|
// pp 235
|
||||||
|
|
||||||
void tsubcc( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(tsubcc_op3 ) | rs1(s1) | rs2(s2) ); }
|
void tsubcc( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(tsubcc_op3 ) | rs1(s1) | rs2(s2) ); }
|
||||||
void tsubcc( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(tsubcc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
void tsubcc( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(tsubcc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
||||||
void tsubcctv( Register s1, Register s2, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(tsubcctv_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
void tsubcctv( Register s1, int simm13a, Register d ) { emit_int32( op(arith_op) | rd(d) | op3(tsubcctv_op3) | rs1(s1) | immed(true) | simm(simm13a, 13) ); }
|
|
||||||
|
|
||||||
// pp 237
|
// pp 237
|
||||||
|
|
||||||
void trap( Condition c, CC cc, Register s1, Register s2 ) { v8_no_cc(cc); emit_int32( op(arith_op) | cond(c) | op3(trap_op3) | rs1(s1) | trapcc(cc) | rs2(s2)); }
|
void trap( Condition c, CC cc, Register s1, Register s2 ) { emit_int32( op(arith_op) | cond(c) | op3(trap_op3) | rs1(s1) | trapcc(cc) | rs2(s2)); }
|
||||||
void trap( Condition c, CC cc, Register s1, int trapa ) { v8_no_cc(cc); emit_int32( op(arith_op) | cond(c) | op3(trap_op3) | rs1(s1) | trapcc(cc) | immed(true) | u_field(trapa, 6, 0)); }
|
void trap( Condition c, CC cc, Register s1, int trapa ) { emit_int32( op(arith_op) | cond(c) | op3(trap_op3) | rs1(s1) | trapcc(cc) | immed(true) | u_field(trapa, 6, 0)); }
|
||||||
// simple uncond. trap
|
// simple uncond. trap
|
||||||
void trap( int trapa ) { trap( always, icc, G0, trapa ); }
|
void trap( int trapa ) { trap( always, icc, G0, trapa ); }
|
||||||
|
|
||||||
|
|
|
@ -63,9 +63,6 @@ inline void Assembler::fb( Condition c, bool a, Label& L ) { fb(c, a, target(L))
|
||||||
inline void Assembler::fbp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt ) { v9_only(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(fbp_op2) | branchcc(cc) | predict(p) | wdisp(intptr_t(d), intptr_t(pc()), 19), rt); has_delay_slot(); }
|
inline void Assembler::fbp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt ) { v9_only(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(fbp_op2) | branchcc(cc) | predict(p) | wdisp(intptr_t(d), intptr_t(pc()), 19), rt); has_delay_slot(); }
|
||||||
inline void Assembler::fbp( Condition c, bool a, CC cc, Predict p, Label& L ) { fbp(c, a, cc, p, target(L)); }
|
inline void Assembler::fbp( Condition c, bool a, CC cc, Predict p, Label& L ) { fbp(c, a, cc, p, target(L)); }
|
||||||
|
|
||||||
inline void Assembler::cb( Condition c, bool a, address d, relocInfo::relocType rt ) { v8_only(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(cb_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
|
|
||||||
inline void Assembler::cb( Condition c, bool a, Label& L ) { cb(c, a, target(L)); }
|
|
||||||
|
|
||||||
inline void Assembler::br( Condition c, bool a, address d, relocInfo::relocType rt ) { v9_dep(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(br_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
|
inline void Assembler::br( Condition c, bool a, address d, relocInfo::relocType rt ) { v9_dep(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(br_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
|
||||||
inline void Assembler::br( Condition c, bool a, Label& L ) { br(c, a, target(L)); }
|
inline void Assembler::br( Condition c, bool a, Label& L ) { br(c, a, target(L)); }
|
||||||
|
|
||||||
|
@ -88,18 +85,9 @@ inline void Assembler::jmpl( Register s1, int simm13a, Register d, RelocationHol
|
||||||
inline void Assembler::ldf(FloatRegisterImpl::Width w, Register s1, Register s2, FloatRegister d) { emit_int32( op(ldst_op) | fd(d, w) | alt_op3(ldf_op3, w) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::ldf(FloatRegisterImpl::Width w, Register s1, Register s2, FloatRegister d) { emit_int32( op(ldst_op) | fd(d, w) | alt_op3(ldf_op3, w) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::ldf(FloatRegisterImpl::Width w, Register s1, int simm13a, FloatRegister d, RelocationHolder const& rspec) { emit_data( op(ldst_op) | fd(d, w) | alt_op3(ldf_op3, w) | rs1(s1) | immed(true) | simm(simm13a, 13), rspec); }
|
inline void Assembler::ldf(FloatRegisterImpl::Width w, Register s1, int simm13a, FloatRegister d, RelocationHolder const& rspec) { emit_data( op(ldst_op) | fd(d, w) | alt_op3(ldf_op3, w) | rs1(s1) | immed(true) | simm(simm13a, 13), rspec); }
|
||||||
|
|
||||||
inline void Assembler::ldfsr( Register s1, Register s2) { v9_dep(); emit_int32( op(ldst_op) | op3(ldfsr_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::ldfsr( Register s1, int simm13a) { v9_dep(); emit_data( op(ldst_op) | op3(ldfsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::ldxfsr( Register s1, Register s2) { v9_only(); emit_int32( op(ldst_op) | rd(G1) | op3(ldfsr_op3) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::ldxfsr( Register s1, Register s2) { v9_only(); emit_int32( op(ldst_op) | rd(G1) | op3(ldfsr_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::ldxfsr( Register s1, int simm13a) { v9_only(); emit_data( op(ldst_op) | rd(G1) | op3(ldfsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
inline void Assembler::ldxfsr( Register s1, int simm13a) { v9_only(); emit_data( op(ldst_op) | rd(G1) | op3(ldfsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
||||||
|
|
||||||
inline void Assembler::ldc( Register s1, Register s2, int crd) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(ldc_op3 ) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::ldc( Register s1, int simm13a, int crd) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(ldc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::lddc( Register s1, Register s2, int crd) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(lddc_op3 ) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::lddc( Register s1, int simm13a, int crd) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(lddc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::ldcsr( Register s1, Register s2, int crd) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(ldcsr_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::ldcsr( Register s1, int simm13a, int crd) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(ldcsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
|
|
||||||
inline void Assembler::ldsb( Register s1, Register s2, Register d) { emit_int32( op(ldst_op) | rd(d) | op3(ldsb_op3) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::ldsb( Register s1, Register s2, Register d) { emit_int32( op(ldst_op) | rd(d) | op3(ldsb_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::ldsb( Register s1, int simm13a, Register d) { emit_data( op(ldst_op) | rd(d) | op3(ldsb_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
inline void Assembler::ldsb( Register s1, int simm13a, Register d) { emit_data( op(ldst_op) | rd(d) | op3(ldsb_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
||||||
|
|
||||||
|
@ -119,9 +107,6 @@ inline void Assembler::ldx( Register s1, int simm13a, Register d) { v9_only();
|
||||||
inline void Assembler::ldd( Register s1, Register s2, Register d) { v9_dep(); assert(d->is_even(), "not even"); emit_int32( op(ldst_op) | rd(d) | op3(ldd_op3) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::ldd( Register s1, Register s2, Register d) { v9_dep(); assert(d->is_even(), "not even"); emit_int32( op(ldst_op) | rd(d) | op3(ldd_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::ldd( Register s1, int simm13a, Register d) { v9_dep(); assert(d->is_even(), "not even"); emit_data( op(ldst_op) | rd(d) | op3(ldd_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
inline void Assembler::ldd( Register s1, int simm13a, Register d) { v9_dep(); assert(d->is_even(), "not even"); emit_data( op(ldst_op) | rd(d) | op3(ldd_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
||||||
|
|
||||||
inline void Assembler::ldstub( Register s1, Register s2, Register d) { emit_int32( op(ldst_op) | rd(d) | op3(ldstub_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::ldstub( Register s1, int simm13a, Register d) { emit_data( op(ldst_op) | rd(d) | op3(ldstub_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
|
|
||||||
inline void Assembler::rett( Register s1, Register s2 ) { cti(); emit_int32( op(arith_op) | op3(rett_op3) | rs1(s1) | rs2(s2)); has_delay_slot(); }
|
inline void Assembler::rett( Register s1, Register s2 ) { cti(); emit_int32( op(arith_op) | op3(rett_op3) | rs1(s1) | rs2(s2)); has_delay_slot(); }
|
||||||
inline void Assembler::rett( Register s1, int simm13a, relocInfo::relocType rt) { cti(); emit_data( op(arith_op) | op3(rett_op3) | rs1(s1) | immed(true) | simm(simm13a, 13), rt); has_delay_slot(); }
|
inline void Assembler::rett( Register s1, int simm13a, relocInfo::relocType rt) { cti(); emit_data( op(arith_op) | op3(rett_op3) | rs1(s1) | immed(true) | simm(simm13a, 13), rt); has_delay_slot(); }
|
||||||
|
|
||||||
|
@ -132,8 +117,6 @@ inline void Assembler::sethi( int imm22a, Register d, RelocationHolder const& rs
|
||||||
inline void Assembler::stf( FloatRegisterImpl::Width w, FloatRegister d, Register s1, Register s2) { emit_int32( op(ldst_op) | fd(d, w) | alt_op3(stf_op3, w) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::stf( FloatRegisterImpl::Width w, FloatRegister d, Register s1, Register s2) { emit_int32( op(ldst_op) | fd(d, w) | alt_op3(stf_op3, w) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::stf( FloatRegisterImpl::Width w, FloatRegister d, Register s1, int simm13a) { emit_data( op(ldst_op) | fd(d, w) | alt_op3(stf_op3, w) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
inline void Assembler::stf( FloatRegisterImpl::Width w, FloatRegister d, Register s1, int simm13a) { emit_data( op(ldst_op) | fd(d, w) | alt_op3(stf_op3, w) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
||||||
|
|
||||||
inline void Assembler::stfsr( Register s1, Register s2) { v9_dep(); emit_int32( op(ldst_op) | op3(stfsr_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::stfsr( Register s1, int simm13a) { v9_dep(); emit_data( op(ldst_op) | op3(stfsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::stxfsr( Register s1, Register s2) { v9_only(); emit_int32( op(ldst_op) | rd(G1) | op3(stfsr_op3) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::stxfsr( Register s1, Register s2) { v9_only(); emit_int32( op(ldst_op) | rd(G1) | op3(stfsr_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::stxfsr( Register s1, int simm13a) { v9_only(); emit_data( op(ldst_op) | rd(G1) | op3(stfsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
inline void Assembler::stxfsr( Register s1, int simm13a) { v9_only(); emit_data( op(ldst_op) | rd(G1) | op3(stfsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
||||||
|
|
||||||
|
@ -152,17 +135,6 @@ inline void Assembler::stx( Register d, Register s1, int simm13a) { v9_only();
|
||||||
inline void Assembler::std( Register d, Register s1, Register s2) { v9_dep(); assert(d->is_even(), "not even"); emit_int32( op(ldst_op) | rd(d) | op3(std_op3) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::std( Register d, Register s1, Register s2) { v9_dep(); assert(d->is_even(), "not even"); emit_int32( op(ldst_op) | rd(d) | op3(std_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
inline void Assembler::std( Register d, Register s1, int simm13a) { v9_dep(); assert(d->is_even(), "not even"); emit_data( op(ldst_op) | rd(d) | op3(std_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
inline void Assembler::std( Register d, Register s1, int simm13a) { v9_dep(); assert(d->is_even(), "not even"); emit_data( op(ldst_op) | rd(d) | op3(std_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
||||||
|
|
||||||
// v8 p 99
|
|
||||||
|
|
||||||
inline void Assembler::stc( int crd, Register s1, Register s2) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(stc_op3 ) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::stc( int crd, Register s1, int simm13a) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(stc_op3 ) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::stdc( int crd, Register s1, Register s2) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(stdc_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::stdc( int crd, Register s1, int simm13a) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(stdc_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::stcsr( int crd, Register s1, Register s2) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(stcsr_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::stcsr( int crd, Register s1, int simm13a) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(stcsr_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
inline void Assembler::stdcq( int crd, Register s1, Register s2) { v8_only(); emit_int32( op(ldst_op) | fcn(crd) | op3(stdcq_op3) | rs1(s1) | rs2(s2) ); }
|
|
||||||
inline void Assembler::stdcq( int crd, Register s1, int simm13a) { v8_only(); emit_data( op(ldst_op) | fcn(crd) | op3(stdcq_op3) | rs1(s1) | immed(true) | simm(simm13a, 13)); }
|
|
||||||
|
|
||||||
// pp 231
|
// pp 231
|
||||||
|
|
||||||
inline void Assembler::swap( Register s1, Register s2, Register d) { v9_dep(); emit_int32( op(ldst_op) | rd(d) | op3(swap_op3) | rs1(s1) | rs2(s2) ); }
|
inline void Assembler::swap( Register s1, Register s2, Register d) { v9_dep(); emit_int32( op(ldst_op) | rd(d) | op3(swap_op3) | rs1(s1) | rs2(s2) ); }
|
||||||
|
|
|
@ -597,13 +597,6 @@ void LIR_Assembler::emit_op3(LIR_Op3* op) {
|
||||||
|
|
||||||
__ sra(Rdividend, 31, Rscratch);
|
__ sra(Rdividend, 31, Rscratch);
|
||||||
__ wry(Rscratch);
|
__ wry(Rscratch);
|
||||||
if (!VM_Version::v9_instructions_work()) {
|
|
||||||
// v9 doesn't require these nops
|
|
||||||
__ nop();
|
|
||||||
__ nop();
|
|
||||||
__ nop();
|
|
||||||
__ nop();
|
|
||||||
}
|
|
||||||
|
|
||||||
add_debug_info_for_div0_here(op->info());
|
add_debug_info_for_div0_here(op->info());
|
||||||
|
|
||||||
|
@ -652,10 +645,6 @@ void LIR_Assembler::emit_opBranch(LIR_OpBranch* op) {
|
||||||
case lir_cond_lessEqual: acond = (is_unordered ? Assembler::f_unorderedOrLessOrEqual : Assembler::f_lessOrEqual); break;
|
case lir_cond_lessEqual: acond = (is_unordered ? Assembler::f_unorderedOrLessOrEqual : Assembler::f_lessOrEqual); break;
|
||||||
case lir_cond_greaterEqual: acond = (is_unordered ? Assembler::f_unorderedOrGreaterOrEqual: Assembler::f_greaterOrEqual); break;
|
case lir_cond_greaterEqual: acond = (is_unordered ? Assembler::f_unorderedOrGreaterOrEqual: Assembler::f_greaterOrEqual); break;
|
||||||
default : ShouldNotReachHere();
|
default : ShouldNotReachHere();
|
||||||
};
|
|
||||||
|
|
||||||
if (!VM_Version::v9_instructions_work()) {
|
|
||||||
__ nop();
|
|
||||||
}
|
}
|
||||||
__ fb( acond, false, Assembler::pn, *(op->label()));
|
__ fb( acond, false, Assembler::pn, *(op->label()));
|
||||||
} else {
|
} else {
|
||||||
|
@ -725,9 +714,6 @@ void LIR_Assembler::emit_opConvert(LIR_OpConvert* op) {
|
||||||
Label L;
|
Label L;
|
||||||
// result must be 0 if value is NaN; test by comparing value to itself
|
// result must be 0 if value is NaN; test by comparing value to itself
|
||||||
__ fcmp(FloatRegisterImpl::S, Assembler::fcc0, rsrc, rsrc);
|
__ fcmp(FloatRegisterImpl::S, Assembler::fcc0, rsrc, rsrc);
|
||||||
if (!VM_Version::v9_instructions_work()) {
|
|
||||||
__ nop();
|
|
||||||
}
|
|
||||||
__ fb(Assembler::f_unordered, true, Assembler::pn, L);
|
__ fb(Assembler::f_unordered, true, Assembler::pn, L);
|
||||||
__ delayed()->st(G0, addr); // annuled if contents of rsrc is not NaN
|
__ delayed()->st(G0, addr); // annuled if contents of rsrc is not NaN
|
||||||
__ ftoi(FloatRegisterImpl::S, rsrc, rsrc);
|
__ ftoi(FloatRegisterImpl::S, rsrc, rsrc);
|
||||||
|
@ -1909,7 +1895,7 @@ void LIR_Assembler::arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case lir_add: __ add (lreg, rreg, res); break;
|
case lir_add: __ add (lreg, rreg, res); break;
|
||||||
case lir_sub: __ sub (lreg, rreg, res); break;
|
case lir_sub: __ sub (lreg, rreg, res); break;
|
||||||
case lir_mul: __ mult (lreg, rreg, res); break;
|
case lir_mul: __ mulx (lreg, rreg, res); break;
|
||||||
default: ShouldNotReachHere();
|
default: ShouldNotReachHere();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1924,7 +1910,7 @@ void LIR_Assembler::arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case lir_add: __ add (lreg, simm13, res); break;
|
case lir_add: __ add (lreg, simm13, res); break;
|
||||||
case lir_sub: __ sub (lreg, simm13, res); break;
|
case lir_sub: __ sub (lreg, simm13, res); break;
|
||||||
case lir_mul: __ mult (lreg, simm13, res); break;
|
case lir_mul: __ mulx (lreg, simm13, res); break;
|
||||||
default: ShouldNotReachHere();
|
default: ShouldNotReachHere();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1936,7 +1922,7 @@ void LIR_Assembler::arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case lir_add: __ add (lreg, (int)con, res); break;
|
case lir_add: __ add (lreg, (int)con, res); break;
|
||||||
case lir_sub: __ sub (lreg, (int)con, res); break;
|
case lir_sub: __ sub (lreg, (int)con, res); break;
|
||||||
case lir_mul: __ mult (lreg, (int)con, res); break;
|
case lir_mul: __ mulx (lreg, (int)con, res); break;
|
||||||
default: ShouldNotReachHere();
|
default: ShouldNotReachHere();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3234,48 +3220,26 @@ void LIR_Assembler::volatile_move_op(LIR_Opr src, LIR_Opr dest, BasicType type,
|
||||||
Register base = mem_addr->base()->as_register();
|
Register base = mem_addr->base()->as_register();
|
||||||
if (src->is_register() && dest->is_address()) {
|
if (src->is_register() && dest->is_address()) {
|
||||||
// G4 is high half, G5 is low half
|
// G4 is high half, G5 is low half
|
||||||
if (VM_Version::v9_instructions_work()) {
|
// clear the top bits of G5, and scale up G4
|
||||||
// clear the top bits of G5, and scale up G4
|
__ srl (src->as_register_lo(), 0, G5);
|
||||||
__ srl (src->as_register_lo(), 0, G5);
|
__ sllx(src->as_register_hi(), 32, G4);
|
||||||
__ sllx(src->as_register_hi(), 32, G4);
|
// combine the two halves into the 64 bits of G4
|
||||||
// combine the two halves into the 64 bits of G4
|
__ or3(G4, G5, G4);
|
||||||
__ or3(G4, G5, G4);
|
null_check_offset = __ offset();
|
||||||
null_check_offset = __ offset();
|
if (idx == noreg) {
|
||||||
if (idx == noreg) {
|
__ stx(G4, base, disp);
|
||||||
__ stx(G4, base, disp);
|
|
||||||
} else {
|
|
||||||
__ stx(G4, base, idx);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
__ mov (src->as_register_hi(), G4);
|
__ stx(G4, base, idx);
|
||||||
__ mov (src->as_register_lo(), G5);
|
|
||||||
null_check_offset = __ offset();
|
|
||||||
if (idx == noreg) {
|
|
||||||
__ std(G4, base, disp);
|
|
||||||
} else {
|
|
||||||
__ std(G4, base, idx);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else if (src->is_address() && dest->is_register()) {
|
} else if (src->is_address() && dest->is_register()) {
|
||||||
null_check_offset = __ offset();
|
null_check_offset = __ offset();
|
||||||
if (VM_Version::v9_instructions_work()) {
|
if (idx == noreg) {
|
||||||
if (idx == noreg) {
|
__ ldx(base, disp, G5);
|
||||||
__ ldx(base, disp, G5);
|
|
||||||
} else {
|
|
||||||
__ ldx(base, idx, G5);
|
|
||||||
}
|
|
||||||
__ srax(G5, 32, dest->as_register_hi()); // fetch the high half into hi
|
|
||||||
__ mov (G5, dest->as_register_lo()); // copy low half into lo
|
|
||||||
} else {
|
} else {
|
||||||
if (idx == noreg) {
|
__ ldx(base, idx, G5);
|
||||||
__ ldd(base, disp, G4);
|
|
||||||
} else {
|
|
||||||
__ ldd(base, idx, G4);
|
|
||||||
}
|
|
||||||
// G4 is high half, G5 is low half
|
|
||||||
__ mov (G4, dest->as_register_hi());
|
|
||||||
__ mov (G5, dest->as_register_lo());
|
|
||||||
}
|
}
|
||||||
|
__ srax(G5, 32, dest->as_register_hi()); // fetch the high half into hi
|
||||||
|
__ mov (G5, dest->as_register_lo()); // copy low half into lo
|
||||||
} else {
|
} else {
|
||||||
Unimplemented();
|
Unimplemented();
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ void C1_MacroAssembler::lock_object(Register Rmark, Register Roop, Register Rbox
|
||||||
|
|
||||||
// compare object markOop with Rmark and if equal exchange Rscratch with object markOop
|
// compare object markOop with Rmark and if equal exchange Rscratch with object markOop
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casx_under_lock(mark_addr.base(), Rmark, Rscratch, (address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
cas_ptr(mark_addr.base(), Rmark, Rscratch);
|
||||||
// if compare/exchange succeeded we found an unlocked object and we now have locked it
|
// if compare/exchange succeeded we found an unlocked object and we now have locked it
|
||||||
// hence we are done
|
// hence we are done
|
||||||
cmp(Rmark, Rscratch);
|
cmp(Rmark, Rscratch);
|
||||||
|
@ -149,7 +149,7 @@ void C1_MacroAssembler::unlock_object(Register Rmark, Register Roop, Register Rb
|
||||||
|
|
||||||
// Check if it is still a light weight lock, this is is true if we see
|
// Check if it is still a light weight lock, this is is true if we see
|
||||||
// the stack address of the basicLock in the markOop of the object
|
// the stack address of the basicLock in the markOop of the object
|
||||||
casx_under_lock(mark_addr.base(), Rbox, Rmark, (address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
cas_ptr(mark_addr.base(), Rbox, Rmark);
|
||||||
cmp(Rbox, Rmark);
|
cmp(Rbox, Rmark);
|
||||||
|
|
||||||
brx(Assembler::notEqual, false, Assembler::pn, slow_case);
|
brx(Assembler::notEqual, false, Assembler::pn, slow_case);
|
||||||
|
@ -276,7 +276,7 @@ void C1_MacroAssembler::initialize_object(
|
||||||
sub(var_size_in_bytes, hdr_size_in_bytes, t2); // compute size of body
|
sub(var_size_in_bytes, hdr_size_in_bytes, t2); // compute size of body
|
||||||
initialize_body(t1, t2);
|
initialize_body(t1, t2);
|
||||||
#ifndef _LP64
|
#ifndef _LP64
|
||||||
} else if (VM_Version::v9_instructions_work() && con_size_in_bytes < threshold * 2) {
|
} else if (con_size_in_bytes < threshold * 2) {
|
||||||
// on v9 we can do double word stores to fill twice as much space.
|
// on v9 we can do double word stores to fill twice as much space.
|
||||||
assert(hdr_size_in_bytes % 8 == 0, "double word aligned");
|
assert(hdr_size_in_bytes % 8 == 0, "double word aligned");
|
||||||
assert(con_size_in_bytes % 8 == 0, "double word aligned");
|
assert(con_size_in_bytes % 8 == 0, "double word aligned");
|
||||||
|
|
|
@ -30,5 +30,4 @@
|
||||||
|
|
||||||
void Compile::pd_compiler2_init() {
|
void Compile::pd_compiler2_init() {
|
||||||
guarantee(CodeEntryAlignment >= InteriorEntryAlignment, "" );
|
guarantee(CodeEntryAlignment >= InteriorEntryAlignment, "" );
|
||||||
guarantee( VM_Version::v9_instructions_work(), "Server compiler does not run on V8 systems" );
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char* pd_cpu_opts() {
|
static const char* pd_cpu_opts() {
|
||||||
return (VM_Version::v9_instructions_work()?
|
return "v9only";
|
||||||
(VM_Version::v8_instructions_work()? "" : "v9only") : "v8only");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CPU_SPARC_VM_DISASSEMBLER_SPARC_HPP
|
#endif // CPU_SPARC_VM_DISASSEMBLER_SPARC_HPP
|
||||||
|
|
|
@ -680,7 +680,7 @@ bool frame::is_interpreted_frame_valid(JavaThread* thread) const {
|
||||||
|
|
||||||
// validate ConstantPoolCache*
|
// validate ConstantPoolCache*
|
||||||
ConstantPoolCache* cp = *interpreter_frame_cache_addr();
|
ConstantPoolCache* cp = *interpreter_frame_cache_addr();
|
||||||
if (cp == NULL || !cp->is_metadata()) return false;
|
if (cp == NULL || !cp->is_metaspace_object()) return false;
|
||||||
|
|
||||||
// validate locals
|
// validate locals
|
||||||
|
|
||||||
|
|
|
@ -110,8 +110,5 @@ define_pd_global(uintx, CMSYoungGenPerWorker, 16*M); // default max size of CMS
|
||||||
\
|
\
|
||||||
product(uintx, ArraycopyDstPrefetchDistance, 0, \
|
product(uintx, ArraycopyDstPrefetchDistance, 0, \
|
||||||
"Distance to prefetch destination array in arracopy") \
|
"Distance to prefetch destination array in arracopy") \
|
||||||
\
|
|
||||||
develop(intx, V8AtomicOperationUnderLockSpinCount, 50, \
|
|
||||||
"Number of times to spin wait on a v8 atomic operation lock") \
|
|
||||||
|
|
||||||
#endif // CPU_SPARC_VM_GLOBALS_SPARC_HPP
|
#endif // CPU_SPARC_VM_GLOBALS_SPARC_HPP
|
||||||
|
|
|
@ -1210,8 +1210,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg, Register Object)
|
||||||
st_ptr(mark_reg, lock_addr, BasicLock::displaced_header_offset_in_bytes());
|
st_ptr(mark_reg, lock_addr, BasicLock::displaced_header_offset_in_bytes());
|
||||||
// compare and exchange object_addr, markOop | 1, stack address of basicLock
|
// compare and exchange object_addr, markOop | 1, stack address of basicLock
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casx_under_lock(mark_addr.base(), mark_reg, temp_reg,
|
cas_ptr(mark_addr.base(), mark_reg, temp_reg);
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
|
||||||
|
|
||||||
// if the compare and exchange succeeded we are done (we saw an unlocked object)
|
// if the compare and exchange succeeded we are done (we saw an unlocked object)
|
||||||
cmp_and_brx_short(mark_reg, temp_reg, Assembler::equal, Assembler::pt, done);
|
cmp_and_brx_short(mark_reg, temp_reg, Assembler::equal, Assembler::pt, done);
|
||||||
|
@ -1291,8 +1290,7 @@ void InterpreterMacroAssembler::unlock_object(Register lock_reg) {
|
||||||
// we expect to see the stack address of the basicLock in case the
|
// we expect to see the stack address of the basicLock in case the
|
||||||
// lock is still a light weight lock (lock_reg)
|
// lock is still a light weight lock (lock_reg)
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casx_under_lock(mark_addr.base(), lock_reg, displaced_header_reg,
|
cas_ptr(mark_addr.base(), lock_reg, displaced_header_reg);
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
|
||||||
cmp(lock_reg, displaced_header_reg);
|
cmp(lock_reg, displaced_header_reg);
|
||||||
brx(Assembler::equal, true, Assembler::pn, done);
|
brx(Assembler::equal, true, Assembler::pn, done);
|
||||||
delayed()->st_ptr(G0, lockobj_addr); // free entry
|
delayed()->st_ptr(G0, lockobj_addr); // free entry
|
||||||
|
|
|
@ -118,7 +118,6 @@ int MacroAssembler::patched_branch(int dest_pos, int inst, int inst_pos) {
|
||||||
case bp_op2: m = wdisp( word_aligned_ones, 0, 19); v = wdisp( dest_pos, inst_pos, 19); break;
|
case bp_op2: m = wdisp( word_aligned_ones, 0, 19); v = wdisp( dest_pos, inst_pos, 19); break;
|
||||||
case fb_op2: m = wdisp( word_aligned_ones, 0, 22); v = wdisp( dest_pos, inst_pos, 22); break;
|
case fb_op2: m = wdisp( word_aligned_ones, 0, 22); v = wdisp( dest_pos, inst_pos, 22); break;
|
||||||
case br_op2: m = wdisp( word_aligned_ones, 0, 22); v = wdisp( dest_pos, inst_pos, 22); break;
|
case br_op2: m = wdisp( word_aligned_ones, 0, 22); v = wdisp( dest_pos, inst_pos, 22); break;
|
||||||
case cb_op2: m = wdisp( word_aligned_ones, 0, 22); v = wdisp( dest_pos, inst_pos, 22); break;
|
|
||||||
case bpr_op2: {
|
case bpr_op2: {
|
||||||
if (is_cbcond(inst)) {
|
if (is_cbcond(inst)) {
|
||||||
m = wdisp10(word_aligned_ones, 0);
|
m = wdisp10(word_aligned_ones, 0);
|
||||||
|
@ -149,7 +148,6 @@ int MacroAssembler::branch_destination(int inst, int pos) {
|
||||||
case bp_op2: r = inv_wdisp( inst, pos, 19); break;
|
case bp_op2: r = inv_wdisp( inst, pos, 19); break;
|
||||||
case fb_op2: r = inv_wdisp( inst, pos, 22); break;
|
case fb_op2: r = inv_wdisp( inst, pos, 22); break;
|
||||||
case br_op2: r = inv_wdisp( inst, pos, 22); break;
|
case br_op2: r = inv_wdisp( inst, pos, 22); break;
|
||||||
case cb_op2: r = inv_wdisp( inst, pos, 22); break;
|
|
||||||
case bpr_op2: {
|
case bpr_op2: {
|
||||||
if (is_cbcond(inst)) {
|
if (is_cbcond(inst)) {
|
||||||
r = inv_wdisp10(inst, pos);
|
r = inv_wdisp10(inst, pos);
|
||||||
|
@ -325,12 +323,6 @@ void MacroAssembler::breakpoint_trap() {
|
||||||
trap(ST_RESERVED_FOR_USER_0);
|
trap(ST_RESERVED_FOR_USER_0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// flush windows (except current) using flushw instruction if avail.
|
|
||||||
void MacroAssembler::flush_windows() {
|
|
||||||
if (VM_Version::v9_instructions_work()) flushw();
|
|
||||||
else flush_windows_trap();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Write serialization page so VM thread can do a pseudo remote membar
|
// Write serialization page so VM thread can do a pseudo remote membar
|
||||||
// We use the current thread pointer to calculate a thread specific
|
// We use the current thread pointer to calculate a thread specific
|
||||||
// offset to write to within the page. This minimizes bus traffic
|
// offset to write to within the page. This minimizes bus traffic
|
||||||
|
@ -358,88 +350,6 @@ void MacroAssembler::leave() {
|
||||||
Unimplemented();
|
Unimplemented();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MacroAssembler::mult(Register s1, Register s2, Register d) {
|
|
||||||
if(VM_Version::v9_instructions_work()) {
|
|
||||||
mulx (s1, s2, d);
|
|
||||||
} else {
|
|
||||||
smul (s1, s2, d);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MacroAssembler::mult(Register s1, int simm13a, Register d) {
|
|
||||||
if(VM_Version::v9_instructions_work()) {
|
|
||||||
mulx (s1, simm13a, d);
|
|
||||||
} else {
|
|
||||||
smul (s1, simm13a, d);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ASSERT
|
|
||||||
void MacroAssembler::read_ccr_v8_assert(Register ccr_save) {
|
|
||||||
const Register s1 = G3_scratch;
|
|
||||||
const Register s2 = G4_scratch;
|
|
||||||
Label get_psr_test;
|
|
||||||
// Get the condition codes the V8 way.
|
|
||||||
read_ccr_trap(s1);
|
|
||||||
mov(ccr_save, s2);
|
|
||||||
// This is a test of V8 which has icc but not xcc
|
|
||||||
// so mask off the xcc bits
|
|
||||||
and3(s2, 0xf, s2);
|
|
||||||
// Compare condition codes from the V8 and V9 ways.
|
|
||||||
subcc(s2, s1, G0);
|
|
||||||
br(Assembler::notEqual, true, Assembler::pt, get_psr_test);
|
|
||||||
delayed()->breakpoint_trap();
|
|
||||||
bind(get_psr_test);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MacroAssembler::write_ccr_v8_assert(Register ccr_save) {
|
|
||||||
const Register s1 = G3_scratch;
|
|
||||||
const Register s2 = G4_scratch;
|
|
||||||
Label set_psr_test;
|
|
||||||
// Write out the saved condition codes the V8 way
|
|
||||||
write_ccr_trap(ccr_save, s1, s2);
|
|
||||||
// Read back the condition codes using the V9 instruction
|
|
||||||
rdccr(s1);
|
|
||||||
mov(ccr_save, s2);
|
|
||||||
// This is a test of V8 which has icc but not xcc
|
|
||||||
// so mask off the xcc bits
|
|
||||||
and3(s2, 0xf, s2);
|
|
||||||
and3(s1, 0xf, s1);
|
|
||||||
// Compare the V8 way with the V9 way.
|
|
||||||
subcc(s2, s1, G0);
|
|
||||||
br(Assembler::notEqual, true, Assembler::pt, set_psr_test);
|
|
||||||
delayed()->breakpoint_trap();
|
|
||||||
bind(set_psr_test);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#define read_ccr_v8_assert(x)
|
|
||||||
#define write_ccr_v8_assert(x)
|
|
||||||
#endif // ASSERT
|
|
||||||
|
|
||||||
void MacroAssembler::read_ccr(Register ccr_save) {
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
rdccr(ccr_save);
|
|
||||||
// Test code sequence used on V8. Do not move above rdccr.
|
|
||||||
read_ccr_v8_assert(ccr_save);
|
|
||||||
} else {
|
|
||||||
read_ccr_trap(ccr_save);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MacroAssembler::write_ccr(Register ccr_save) {
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
// Test code sequence used on V8. Do not move below wrccr.
|
|
||||||
write_ccr_v8_assert(ccr_save);
|
|
||||||
wrccr(ccr_save);
|
|
||||||
} else {
|
|
||||||
const Register temp_reg1 = G3_scratch;
|
|
||||||
const Register temp_reg2 = G4_scratch;
|
|
||||||
write_ccr_trap(ccr_save, temp_reg1, temp_reg2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Calls to C land
|
// Calls to C land
|
||||||
|
|
||||||
#ifdef ASSERT
|
#ifdef ASSERT
|
||||||
|
@ -465,8 +375,8 @@ void MacroAssembler::get_thread() {
|
||||||
#ifdef ASSERT
|
#ifdef ASSERT
|
||||||
AddressLiteral last_get_thread_addrlit(&last_get_thread);
|
AddressLiteral last_get_thread_addrlit(&last_get_thread);
|
||||||
set(last_get_thread_addrlit, L3);
|
set(last_get_thread_addrlit, L3);
|
||||||
inc(L4, get_pc(L4) + 2 * BytesPerInstWord); // skip getpc() code + inc + st_ptr to point L4 at call
|
rdpc(L4);
|
||||||
st_ptr(L4, L3, 0);
|
inc(L4, 3 * BytesPerInstWord); // skip rdpc + inc + st_ptr to point L4 at call st_ptr(L4, L3, 0);
|
||||||
#endif
|
#endif
|
||||||
call(CAST_FROM_FN_PTR(address, reinitialize_thread), relocInfo::runtime_call_type);
|
call(CAST_FROM_FN_PTR(address, reinitialize_thread), relocInfo::runtime_call_type);
|
||||||
delayed()->nop();
|
delayed()->nop();
|
||||||
|
@ -1251,12 +1161,6 @@ void MacroAssembler::align(int modulus) {
|
||||||
while (offset() % modulus != 0) nop();
|
while (offset() % modulus != 0) nop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MacroAssembler::safepoint() {
|
|
||||||
relocate(breakpoint_Relocation::spec(breakpoint_Relocation::safepoint));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void RegistersForDebugging::print(outputStream* s) {
|
void RegistersForDebugging::print(outputStream* s) {
|
||||||
FlagSetting fs(Debugging, true);
|
FlagSetting fs(Debugging, true);
|
||||||
int j;
|
int j;
|
||||||
|
@ -1327,7 +1231,7 @@ void RegistersForDebugging::print(outputStream* s) {
|
||||||
|
|
||||||
void RegistersForDebugging::save_registers(MacroAssembler* a) {
|
void RegistersForDebugging::save_registers(MacroAssembler* a) {
|
||||||
a->sub(FP, round_to(sizeof(RegistersForDebugging), sizeof(jdouble)) - STACK_BIAS, O0);
|
a->sub(FP, round_to(sizeof(RegistersForDebugging), sizeof(jdouble)) - STACK_BIAS, O0);
|
||||||
a->flush_windows();
|
a->flushw();
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < 8; ++i) {
|
for (i = 0; i < 8; ++i) {
|
||||||
a->ld_ptr(as_iRegister(i)->address_in_saved_window().after_save(), L1); a->st_ptr( L1, O0, i_offset(i));
|
a->ld_ptr(as_iRegister(i)->address_in_saved_window().after_save(), L1); a->st_ptr( L1, O0, i_offset(i));
|
||||||
|
@ -1338,7 +1242,7 @@ void RegistersForDebugging::save_registers(MacroAssembler* a) {
|
||||||
for (i = 0; i < 32; ++i) {
|
for (i = 0; i < 32; ++i) {
|
||||||
a->stf(FloatRegisterImpl::S, as_FloatRegister(i), O0, f_offset(i));
|
a->stf(FloatRegisterImpl::S, as_FloatRegister(i), O0, f_offset(i));
|
||||||
}
|
}
|
||||||
for (i = 0; i < (VM_Version::v9_instructions_work() ? 64 : 32); i += 2) {
|
for (i = 0; i < 64; i += 2) {
|
||||||
a->stf(FloatRegisterImpl::D, as_FloatRegister(i), O0, d_offset(i));
|
a->stf(FloatRegisterImpl::D, as_FloatRegister(i), O0, d_offset(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1350,7 +1254,7 @@ void RegistersForDebugging::restore_registers(MacroAssembler* a, Register r) {
|
||||||
for (int j = 0; j < 32; ++j) {
|
for (int j = 0; j < 32; ++j) {
|
||||||
a->ldf(FloatRegisterImpl::S, O0, f_offset(j), as_FloatRegister(j));
|
a->ldf(FloatRegisterImpl::S, O0, f_offset(j), as_FloatRegister(j));
|
||||||
}
|
}
|
||||||
for (int k = 0; k < (VM_Version::v9_instructions_work() ? 64 : 32); k += 2) {
|
for (int k = 0; k < 64; k += 2) {
|
||||||
a->ldf(FloatRegisterImpl::D, O0, d_offset(k), as_FloatRegister(k));
|
a->ldf(FloatRegisterImpl::D, O0, d_offset(k), as_FloatRegister(k));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1465,8 +1369,6 @@ address MacroAssembler::_verify_oop_implicit_branch[3] = { NULL };
|
||||||
// the high bits of the O-regs if they contain Long values. Acts as a 'leaf'
|
// the high bits of the O-regs if they contain Long values. Acts as a 'leaf'
|
||||||
// call.
|
// call.
|
||||||
void MacroAssembler::verify_oop_subroutine() {
|
void MacroAssembler::verify_oop_subroutine() {
|
||||||
assert( VM_Version::v9_instructions_work(), "VerifyOops not supported for V8" );
|
|
||||||
|
|
||||||
// Leaf call; no frame.
|
// Leaf call; no frame.
|
||||||
Label succeed, fail, null_or_fail;
|
Label succeed, fail, null_or_fail;
|
||||||
|
|
||||||
|
@ -1870,26 +1772,17 @@ void MacroAssembler::lcmp( Register Ra_hi, Register Ra_low,
|
||||||
// And the equals case for the high part does not need testing,
|
// And the equals case for the high part does not need testing,
|
||||||
// since that triplet is reached only after finding the high halves differ.
|
// since that triplet is reached only after finding the high halves differ.
|
||||||
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
mov(-1, Rresult);
|
||||||
mov(-1, Rresult);
|
ba(done);
|
||||||
ba(done); delayed()-> movcc(greater, false, icc, 1, Rresult);
|
delayed()->movcc(greater, false, icc, 1, Rresult);
|
||||||
} else {
|
|
||||||
br(less, true, pt, done); delayed()-> set(-1, Rresult);
|
|
||||||
br(greater, true, pt, done); delayed()-> set( 1, Rresult);
|
|
||||||
}
|
|
||||||
|
|
||||||
bind( check_low_parts );
|
bind(check_low_parts);
|
||||||
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
mov( -1, Rresult);
|
||||||
mov( -1, Rresult);
|
movcc(equal, false, icc, 0, Rresult);
|
||||||
movcc(equal, false, icc, 0, Rresult);
|
movcc(greaterUnsigned, false, icc, 1, Rresult);
|
||||||
movcc(greaterUnsigned, false, icc, 1, Rresult);
|
|
||||||
} else {
|
bind(done);
|
||||||
set(-1, Rresult);
|
|
||||||
br(equal, true, pt, done); delayed()->set( 0, Rresult);
|
|
||||||
br(greaterUnsigned, true, pt, done); delayed()->set( 1, Rresult);
|
|
||||||
}
|
|
||||||
bind( done );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MacroAssembler::lneg( Register Rhi, Register Rlow ) {
|
void MacroAssembler::lneg( Register Rhi, Register Rlow ) {
|
||||||
|
@ -2117,119 +2010,24 @@ void MacroAssembler::store_sized_value(Register src, Address dst, size_t size_in
|
||||||
void MacroAssembler::float_cmp( bool is_float, int unordered_result,
|
void MacroAssembler::float_cmp( bool is_float, int unordered_result,
|
||||||
FloatRegister Fa, FloatRegister Fb,
|
FloatRegister Fa, FloatRegister Fb,
|
||||||
Register Rresult) {
|
Register Rresult) {
|
||||||
|
if (is_float) {
|
||||||
fcmp(is_float ? FloatRegisterImpl::S : FloatRegisterImpl::D, fcc0, Fa, Fb);
|
fcmp(FloatRegisterImpl::S, fcc0, Fa, Fb);
|
||||||
|
|
||||||
Condition lt = unordered_result == -1 ? f_unorderedOrLess : f_less;
|
|
||||||
Condition eq = f_equal;
|
|
||||||
Condition gt = unordered_result == 1 ? f_unorderedOrGreater : f_greater;
|
|
||||||
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
|
|
||||||
mov(-1, Rresult);
|
|
||||||
movcc(eq, true, fcc0, 0, Rresult);
|
|
||||||
movcc(gt, true, fcc0, 1, Rresult);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Label done;
|
fcmp(FloatRegisterImpl::D, fcc0, Fa, Fb);
|
||||||
|
}
|
||||||
|
|
||||||
set( -1, Rresult );
|
if (unordered_result == 1) {
|
||||||
//fb(lt, true, pn, done); delayed()->set( -1, Rresult );
|
mov( -1, Rresult);
|
||||||
fb( eq, true, pn, done); delayed()->set( 0, Rresult );
|
movcc(f_equal, true, fcc0, 0, Rresult);
|
||||||
fb( gt, true, pn, done); delayed()->set( 1, Rresult );
|
movcc(f_unorderedOrGreater, true, fcc0, 1, Rresult);
|
||||||
|
} else {
|
||||||
bind (done);
|
mov( -1, Rresult);
|
||||||
|
movcc(f_equal, true, fcc0, 0, Rresult);
|
||||||
|
movcc(f_greater, true, fcc0, 1, Rresult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MacroAssembler::fneg( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d)
|
|
||||||
{
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
Assembler::fneg(w, s, d);
|
|
||||||
} else {
|
|
||||||
if (w == FloatRegisterImpl::S) {
|
|
||||||
Assembler::fneg(w, s, d);
|
|
||||||
} else if (w == FloatRegisterImpl::D) {
|
|
||||||
// number() does a sanity check on the alignment.
|
|
||||||
assert(((s->encoding(FloatRegisterImpl::D) & 1) == 0) &&
|
|
||||||
((d->encoding(FloatRegisterImpl::D) & 1) == 0), "float register alignment check");
|
|
||||||
|
|
||||||
Assembler::fneg(FloatRegisterImpl::S, s, d);
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor(), d->successor());
|
|
||||||
} else {
|
|
||||||
assert(w == FloatRegisterImpl::Q, "Invalid float register width");
|
|
||||||
|
|
||||||
// number() does a sanity check on the alignment.
|
|
||||||
assert(((s->encoding(FloatRegisterImpl::D) & 3) == 0) &&
|
|
||||||
((d->encoding(FloatRegisterImpl::D) & 3) == 0), "float register alignment check");
|
|
||||||
|
|
||||||
Assembler::fneg(FloatRegisterImpl::S, s, d);
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor(), d->successor());
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor()->successor(), d->successor()->successor());
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor()->successor()->successor(), d->successor()->successor()->successor());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MacroAssembler::fmov( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d)
|
|
||||||
{
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
Assembler::fmov(w, s, d);
|
|
||||||
} else {
|
|
||||||
if (w == FloatRegisterImpl::S) {
|
|
||||||
Assembler::fmov(w, s, d);
|
|
||||||
} else if (w == FloatRegisterImpl::D) {
|
|
||||||
// number() does a sanity check on the alignment.
|
|
||||||
assert(((s->encoding(FloatRegisterImpl::D) & 1) == 0) &&
|
|
||||||
((d->encoding(FloatRegisterImpl::D) & 1) == 0), "float register alignment check");
|
|
||||||
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s, d);
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor(), d->successor());
|
|
||||||
} else {
|
|
||||||
assert(w == FloatRegisterImpl::Q, "Invalid float register width");
|
|
||||||
|
|
||||||
// number() does a sanity check on the alignment.
|
|
||||||
assert(((s->encoding(FloatRegisterImpl::D) & 3) == 0) &&
|
|
||||||
((d->encoding(FloatRegisterImpl::D) & 3) == 0), "float register alignment check");
|
|
||||||
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s, d);
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor(), d->successor());
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor()->successor(), d->successor()->successor());
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor()->successor()->successor(), d->successor()->successor()->successor());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MacroAssembler::fabs( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d)
|
|
||||||
{
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
Assembler::fabs(w, s, d);
|
|
||||||
} else {
|
|
||||||
if (w == FloatRegisterImpl::S) {
|
|
||||||
Assembler::fabs(w, s, d);
|
|
||||||
} else if (w == FloatRegisterImpl::D) {
|
|
||||||
// number() does a sanity check on the alignment.
|
|
||||||
assert(((s->encoding(FloatRegisterImpl::D) & 1) == 0) &&
|
|
||||||
((d->encoding(FloatRegisterImpl::D) & 1) == 0), "float register alignment check");
|
|
||||||
|
|
||||||
Assembler::fabs(FloatRegisterImpl::S, s, d);
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor(), d->successor());
|
|
||||||
} else {
|
|
||||||
assert(w == FloatRegisterImpl::Q, "Invalid float register width");
|
|
||||||
|
|
||||||
// number() does a sanity check on the alignment.
|
|
||||||
assert(((s->encoding(FloatRegisterImpl::D) & 3) == 0) &&
|
|
||||||
((d->encoding(FloatRegisterImpl::D) & 3) == 0), "float register alignment check");
|
|
||||||
|
|
||||||
Assembler::fabs(FloatRegisterImpl::S, s, d);
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor(), d->successor());
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor()->successor(), d->successor()->successor());
|
|
||||||
Assembler::fmov(FloatRegisterImpl::S, s->successor()->successor()->successor(), d->successor()->successor()->successor());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MacroAssembler::save_all_globals_into_locals() {
|
void MacroAssembler::save_all_globals_into_locals() {
|
||||||
mov(G1,L1);
|
mov(G1,L1);
|
||||||
mov(G2,L2);
|
mov(G2,L2);
|
||||||
|
@ -2250,135 +2048,6 @@ void MacroAssembler::restore_globals_from_locals() {
|
||||||
mov(L7,G7);
|
mov(L7,G7);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use for 64 bit operation.
|
|
||||||
void MacroAssembler::casx_under_lock(Register top_ptr_reg, Register top_reg, Register ptr_reg, address lock_addr, bool use_call_vm)
|
|
||||||
{
|
|
||||||
// store ptr_reg as the new top value
|
|
||||||
#ifdef _LP64
|
|
||||||
casx(top_ptr_reg, top_reg, ptr_reg);
|
|
||||||
#else
|
|
||||||
cas_under_lock(top_ptr_reg, top_reg, ptr_reg, lock_addr, use_call_vm);
|
|
||||||
#endif // _LP64
|
|
||||||
}
|
|
||||||
|
|
||||||
// [RGV] This routine does not handle 64 bit operations.
|
|
||||||
// use casx_under_lock() or casx directly!!!
|
|
||||||
void MacroAssembler::cas_under_lock(Register top_ptr_reg, Register top_reg, Register ptr_reg, address lock_addr, bool use_call_vm)
|
|
||||||
{
|
|
||||||
// store ptr_reg as the new top value
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
cas(top_ptr_reg, top_reg, ptr_reg);
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// If the register is not an out nor global, it is not visible
|
|
||||||
// after the save. Allocate a register for it, save its
|
|
||||||
// value in the register save area (the save may not flush
|
|
||||||
// registers to the save area).
|
|
||||||
|
|
||||||
Register top_ptr_reg_after_save;
|
|
||||||
Register top_reg_after_save;
|
|
||||||
Register ptr_reg_after_save;
|
|
||||||
|
|
||||||
if (top_ptr_reg->is_out() || top_ptr_reg->is_global()) {
|
|
||||||
top_ptr_reg_after_save = top_ptr_reg->after_save();
|
|
||||||
} else {
|
|
||||||
Address reg_save_addr = top_ptr_reg->address_in_saved_window();
|
|
||||||
top_ptr_reg_after_save = L0;
|
|
||||||
st(top_ptr_reg, reg_save_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (top_reg->is_out() || top_reg->is_global()) {
|
|
||||||
top_reg_after_save = top_reg->after_save();
|
|
||||||
} else {
|
|
||||||
Address reg_save_addr = top_reg->address_in_saved_window();
|
|
||||||
top_reg_after_save = L1;
|
|
||||||
st(top_reg, reg_save_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ptr_reg->is_out() || ptr_reg->is_global()) {
|
|
||||||
ptr_reg_after_save = ptr_reg->after_save();
|
|
||||||
} else {
|
|
||||||
Address reg_save_addr = ptr_reg->address_in_saved_window();
|
|
||||||
ptr_reg_after_save = L2;
|
|
||||||
st(ptr_reg, reg_save_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
const Register& lock_reg = L3;
|
|
||||||
const Register& lock_ptr_reg = L4;
|
|
||||||
const Register& value_reg = L5;
|
|
||||||
const Register& yield_reg = L6;
|
|
||||||
const Register& yieldall_reg = L7;
|
|
||||||
|
|
||||||
save_frame();
|
|
||||||
|
|
||||||
if (top_ptr_reg_after_save == L0) {
|
|
||||||
ld(top_ptr_reg->address_in_saved_window().after_save(), top_ptr_reg_after_save);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (top_reg_after_save == L1) {
|
|
||||||
ld(top_reg->address_in_saved_window().after_save(), top_reg_after_save);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ptr_reg_after_save == L2) {
|
|
||||||
ld(ptr_reg->address_in_saved_window().after_save(), ptr_reg_after_save);
|
|
||||||
}
|
|
||||||
|
|
||||||
Label(retry_get_lock);
|
|
||||||
Label(not_same);
|
|
||||||
Label(dont_yield);
|
|
||||||
|
|
||||||
assert(lock_addr, "lock_address should be non null for v8");
|
|
||||||
set((intptr_t)lock_addr, lock_ptr_reg);
|
|
||||||
// Initialize yield counter
|
|
||||||
mov(G0,yield_reg);
|
|
||||||
mov(G0, yieldall_reg);
|
|
||||||
set(StubRoutines::Sparc::locked, lock_reg);
|
|
||||||
|
|
||||||
bind(retry_get_lock);
|
|
||||||
cmp_and_br_short(yield_reg, V8AtomicOperationUnderLockSpinCount, Assembler::less, Assembler::pt, dont_yield);
|
|
||||||
|
|
||||||
if(use_call_vm) {
|
|
||||||
Untested("Need to verify global reg consistancy");
|
|
||||||
call_VM(noreg, CAST_FROM_FN_PTR(address, SharedRuntime::yield_all), yieldall_reg);
|
|
||||||
} else {
|
|
||||||
// Save the regs and make space for a C call
|
|
||||||
save(SP, -96, SP);
|
|
||||||
save_all_globals_into_locals();
|
|
||||||
call(CAST_FROM_FN_PTR(address,os::yield_all));
|
|
||||||
delayed()->mov(yieldall_reg, O0);
|
|
||||||
restore_globals_from_locals();
|
|
||||||
restore();
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset the counter
|
|
||||||
mov(G0,yield_reg);
|
|
||||||
add(yieldall_reg, 1, yieldall_reg);
|
|
||||||
|
|
||||||
bind(dont_yield);
|
|
||||||
// try to get lock
|
|
||||||
Assembler::swap(lock_ptr_reg, 0, lock_reg);
|
|
||||||
|
|
||||||
// did we get the lock?
|
|
||||||
cmp(lock_reg, StubRoutines::Sparc::unlocked);
|
|
||||||
br(Assembler::notEqual, true, Assembler::pn, retry_get_lock);
|
|
||||||
delayed()->add(yield_reg,1,yield_reg);
|
|
||||||
|
|
||||||
// yes, got lock. do we have the same top?
|
|
||||||
ld(top_ptr_reg_after_save, 0, value_reg);
|
|
||||||
cmp_and_br_short(value_reg, top_reg_after_save, Assembler::notEqual, Assembler::pn, not_same);
|
|
||||||
|
|
||||||
// yes, same top.
|
|
||||||
st(ptr_reg_after_save, top_ptr_reg_after_save, 0);
|
|
||||||
membar(Assembler::StoreStore);
|
|
||||||
|
|
||||||
bind(not_same);
|
|
||||||
mov(value_reg, ptr_reg_after_save);
|
|
||||||
st(lock_reg, lock_ptr_reg, 0); // unlock
|
|
||||||
|
|
||||||
restore();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
RegisterOrConstant MacroAssembler::delayed_value_impl(intptr_t* delayed_value_addr,
|
RegisterOrConstant MacroAssembler::delayed_value_impl(intptr_t* delayed_value_addr,
|
||||||
Register tmp,
|
Register tmp,
|
||||||
int offset) {
|
int offset) {
|
||||||
|
@ -2970,7 +2639,7 @@ void MacroAssembler::biased_locking_enter(Register obj_reg, Register mark_reg,
|
||||||
markOopDesc::biased_lock_mask_in_place | markOopDesc::age_mask_in_place | markOopDesc::epoch_mask_in_place,
|
markOopDesc::biased_lock_mask_in_place | markOopDesc::age_mask_in_place | markOopDesc::epoch_mask_in_place,
|
||||||
mark_reg);
|
mark_reg);
|
||||||
or3(G2_thread, mark_reg, temp_reg);
|
or3(G2_thread, mark_reg, temp_reg);
|
||||||
casn(mark_addr.base(), mark_reg, temp_reg);
|
cas_ptr(mark_addr.base(), mark_reg, temp_reg);
|
||||||
// If the biasing toward our thread failed, this means that
|
// If the biasing toward our thread failed, this means that
|
||||||
// another thread succeeded in biasing it toward itself and we
|
// another thread succeeded in biasing it toward itself and we
|
||||||
// need to revoke that bias. The revocation will occur in the
|
// need to revoke that bias. The revocation will occur in the
|
||||||
|
@ -2998,7 +2667,7 @@ void MacroAssembler::biased_locking_enter(Register obj_reg, Register mark_reg,
|
||||||
load_klass(obj_reg, temp_reg);
|
load_klass(obj_reg, temp_reg);
|
||||||
ld_ptr(Address(temp_reg, Klass::prototype_header_offset()), temp_reg);
|
ld_ptr(Address(temp_reg, Klass::prototype_header_offset()), temp_reg);
|
||||||
or3(G2_thread, temp_reg, temp_reg);
|
or3(G2_thread, temp_reg, temp_reg);
|
||||||
casn(mark_addr.base(), mark_reg, temp_reg);
|
cas_ptr(mark_addr.base(), mark_reg, temp_reg);
|
||||||
// If the biasing toward our thread failed, this means that
|
// If the biasing toward our thread failed, this means that
|
||||||
// another thread succeeded in biasing it toward itself and we
|
// another thread succeeded in biasing it toward itself and we
|
||||||
// need to revoke that bias. The revocation will occur in the
|
// need to revoke that bias. The revocation will occur in the
|
||||||
|
@ -3027,7 +2696,7 @@ void MacroAssembler::biased_locking_enter(Register obj_reg, Register mark_reg,
|
||||||
// bits in this situation. Should attempt to preserve them.
|
// bits in this situation. Should attempt to preserve them.
|
||||||
load_klass(obj_reg, temp_reg);
|
load_klass(obj_reg, temp_reg);
|
||||||
ld_ptr(Address(temp_reg, Klass::prototype_header_offset()), temp_reg);
|
ld_ptr(Address(temp_reg, Klass::prototype_header_offset()), temp_reg);
|
||||||
casn(mark_addr.base(), mark_reg, temp_reg);
|
cas_ptr(mark_addr.base(), mark_reg, temp_reg);
|
||||||
// Fall through to the normal CAS-based lock, because no matter what
|
// Fall through to the normal CAS-based lock, because no matter what
|
||||||
// the result of the above CAS, some thread must have succeeded in
|
// the result of the above CAS, some thread must have succeeded in
|
||||||
// removing the bias bit from the object's header.
|
// removing the bias bit from the object's header.
|
||||||
|
@ -3058,15 +2727,6 @@ void MacroAssembler::biased_locking_exit (Address mark_addr, Register temp_reg,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CASN -- 32-64 bit switch hitter similar to the synthetic CASN provided by
|
|
||||||
// Solaris/SPARC's "as". Another apt name would be cas_ptr()
|
|
||||||
|
|
||||||
void MacroAssembler::casn (Register addr_reg, Register cmp_reg, Register set_reg ) {
|
|
||||||
casx_under_lock (addr_reg, cmp_reg, set_reg, (address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// compiler_lock_object() and compiler_unlock_object() are direct transliterations
|
// compiler_lock_object() and compiler_unlock_object() are direct transliterations
|
||||||
// of i486.ad fast_lock() and fast_unlock(). See those methods for detailed comments.
|
// of i486.ad fast_lock() and fast_unlock(). See those methods for detailed comments.
|
||||||
// The code could be tightened up considerably.
|
// The code could be tightened up considerably.
|
||||||
|
@ -3129,8 +2789,7 @@ void MacroAssembler::compiler_lock_object(Register Roop, Register Rmark,
|
||||||
|
|
||||||
// compare object markOop with Rmark and if equal exchange Rscratch with object markOop
|
// compare object markOop with Rmark and if equal exchange Rscratch with object markOop
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casx_under_lock(mark_addr.base(), Rmark, Rscratch,
|
cas_ptr(mark_addr.base(), Rmark, Rscratch);
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
|
||||||
|
|
||||||
// if compare/exchange succeeded we found an unlocked object and we now have locked it
|
// if compare/exchange succeeded we found an unlocked object and we now have locked it
|
||||||
// hence we are done
|
// hence we are done
|
||||||
|
@ -3176,7 +2835,7 @@ void MacroAssembler::compiler_lock_object(Register Roop, Register Rmark,
|
||||||
mov(Rbox, Rscratch);
|
mov(Rbox, Rscratch);
|
||||||
or3(Rmark, markOopDesc::unlocked_value, Rmark);
|
or3(Rmark, markOopDesc::unlocked_value, Rmark);
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casn(mark_addr.base(), Rmark, Rscratch);
|
cas_ptr(mark_addr.base(), Rmark, Rscratch);
|
||||||
cmp(Rmark, Rscratch);
|
cmp(Rmark, Rscratch);
|
||||||
brx(Assembler::equal, false, Assembler::pt, done);
|
brx(Assembler::equal, false, Assembler::pt, done);
|
||||||
delayed()->sub(Rscratch, SP, Rscratch);
|
delayed()->sub(Rscratch, SP, Rscratch);
|
||||||
|
@ -3207,7 +2866,7 @@ void MacroAssembler::compiler_lock_object(Register Roop, Register Rmark,
|
||||||
// Invariant: if we acquire the lock then _recursions should be 0.
|
// Invariant: if we acquire the lock then _recursions should be 0.
|
||||||
add(Rmark, ObjectMonitor::owner_offset_in_bytes()-2, Rmark);
|
add(Rmark, ObjectMonitor::owner_offset_in_bytes()-2, Rmark);
|
||||||
mov(G2_thread, Rscratch);
|
mov(G2_thread, Rscratch);
|
||||||
casn(Rmark, G0, Rscratch);
|
cas_ptr(Rmark, G0, Rscratch);
|
||||||
cmp(Rscratch, G0);
|
cmp(Rscratch, G0);
|
||||||
// Intentional fall-through into done
|
// Intentional fall-through into done
|
||||||
} else {
|
} else {
|
||||||
|
@ -3240,7 +2899,7 @@ void MacroAssembler::compiler_lock_object(Register Roop, Register Rmark,
|
||||||
mov(0, Rscratch);
|
mov(0, Rscratch);
|
||||||
or3(Rmark, markOopDesc::unlocked_value, Rmark);
|
or3(Rmark, markOopDesc::unlocked_value, Rmark);
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casn(mark_addr.base(), Rmark, Rscratch);
|
cas_ptr(mark_addr.base(), Rmark, Rscratch);
|
||||||
// prefetch (mark_addr, Assembler::severalWritesAndPossiblyReads);
|
// prefetch (mark_addr, Assembler::severalWritesAndPossiblyReads);
|
||||||
cmp(Rscratch, Rmark);
|
cmp(Rscratch, Rmark);
|
||||||
brx(Assembler::notZero, false, Assembler::pn, Recursive);
|
brx(Assembler::notZero, false, Assembler::pn, Recursive);
|
||||||
|
@ -3266,7 +2925,7 @@ void MacroAssembler::compiler_lock_object(Register Roop, Register Rmark,
|
||||||
// the fast-path stack-lock code from the interpreter and always passed
|
// the fast-path stack-lock code from the interpreter and always passed
|
||||||
// control to the "slow" operators in synchronizer.cpp.
|
// control to the "slow" operators in synchronizer.cpp.
|
||||||
|
|
||||||
// RScratch contains the fetched obj->mark value from the failed CASN.
|
// RScratch contains the fetched obj->mark value from the failed CAS.
|
||||||
#ifdef _LP64
|
#ifdef _LP64
|
||||||
sub(Rscratch, STACK_BIAS, Rscratch);
|
sub(Rscratch, STACK_BIAS, Rscratch);
|
||||||
#endif
|
#endif
|
||||||
|
@ -3300,7 +2959,7 @@ void MacroAssembler::compiler_lock_object(Register Roop, Register Rmark,
|
||||||
// Invariant: if we acquire the lock then _recursions should be 0.
|
// Invariant: if we acquire the lock then _recursions should be 0.
|
||||||
add(Rmark, ObjectMonitor::owner_offset_in_bytes()-2, Rmark);
|
add(Rmark, ObjectMonitor::owner_offset_in_bytes()-2, Rmark);
|
||||||
mov(G2_thread, Rscratch);
|
mov(G2_thread, Rscratch);
|
||||||
casn(Rmark, G0, Rscratch);
|
cas_ptr(Rmark, G0, Rscratch);
|
||||||
cmp(Rscratch, G0);
|
cmp(Rscratch, G0);
|
||||||
// ST box->displaced_header = NonZero.
|
// ST box->displaced_header = NonZero.
|
||||||
// Any non-zero value suffices:
|
// Any non-zero value suffices:
|
||||||
|
@ -3336,8 +2995,7 @@ void MacroAssembler::compiler_unlock_object(Register Roop, Register Rmark,
|
||||||
// Check if it is still a light weight lock, this is is true if we see
|
// Check if it is still a light weight lock, this is is true if we see
|
||||||
// the stack address of the basicLock in the markOop of the object
|
// the stack address of the basicLock in the markOop of the object
|
||||||
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
assert(mark_addr.disp() == 0, "cas must take a zero displacement");
|
||||||
casx_under_lock(mark_addr.base(), Rbox, Rmark,
|
cas_ptr(mark_addr.base(), Rbox, Rmark);
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
|
||||||
ba(done);
|
ba(done);
|
||||||
delayed()->cmp(Rbox, Rmark);
|
delayed()->cmp(Rbox, Rmark);
|
||||||
bind(done);
|
bind(done);
|
||||||
|
@ -3398,7 +3056,7 @@ void MacroAssembler::compiler_unlock_object(Register Roop, Register Rmark,
|
||||||
delayed()->andcc(G0, G0, G0);
|
delayed()->andcc(G0, G0, G0);
|
||||||
add(Rmark, ObjectMonitor::owner_offset_in_bytes()-2, Rmark);
|
add(Rmark, ObjectMonitor::owner_offset_in_bytes()-2, Rmark);
|
||||||
mov(G2_thread, Rscratch);
|
mov(G2_thread, Rscratch);
|
||||||
casn(Rmark, G0, Rscratch);
|
cas_ptr(Rmark, G0, Rscratch);
|
||||||
// invert icc.zf and goto done
|
// invert icc.zf and goto done
|
||||||
br_notnull(Rscratch, false, Assembler::pt, done);
|
br_notnull(Rscratch, false, Assembler::pt, done);
|
||||||
delayed()->cmp(G0, G0);
|
delayed()->cmp(G0, G0);
|
||||||
|
@ -3440,7 +3098,7 @@ void MacroAssembler::compiler_unlock_object(Register Roop, Register Rmark,
|
||||||
// A prototype implementation showed excellent results, although
|
// A prototype implementation showed excellent results, although
|
||||||
// the scavenger and timeout code was rather involved.
|
// the scavenger and timeout code was rather involved.
|
||||||
|
|
||||||
casn(mark_addr.base(), Rbox, Rscratch);
|
cas_ptr(mark_addr.base(), Rbox, Rscratch);
|
||||||
cmp(Rbox, Rscratch);
|
cmp(Rbox, Rscratch);
|
||||||
// Intentional fall through into done ...
|
// Intentional fall through into done ...
|
||||||
|
|
||||||
|
@ -3540,7 +3198,8 @@ void MacroAssembler::eden_allocate(
|
||||||
|
|
||||||
if (CMSIncrementalMode || !Universe::heap()->supports_inline_contig_alloc()) {
|
if (CMSIncrementalMode || !Universe::heap()->supports_inline_contig_alloc()) {
|
||||||
// No allocation in the shared eden.
|
// No allocation in the shared eden.
|
||||||
ba_short(slow_case);
|
ba(slow_case);
|
||||||
|
delayed()->nop();
|
||||||
} else {
|
} else {
|
||||||
// get eden boundaries
|
// get eden boundaries
|
||||||
// note: we need both top & top_addr!
|
// note: we need both top & top_addr!
|
||||||
|
@ -3583,7 +3242,7 @@ void MacroAssembler::eden_allocate(
|
||||||
// Compare obj with the value at top_addr; if still equal, swap the value of
|
// Compare obj with the value at top_addr; if still equal, swap the value of
|
||||||
// end with the value at top_addr. If not equal, read the value at top_addr
|
// end with the value at top_addr. If not equal, read the value at top_addr
|
||||||
// into end.
|
// into end.
|
||||||
casx_under_lock(top_addr, obj, end, (address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
cas_ptr(top_addr, obj, end);
|
||||||
// if someone beat us on the allocation, try again, otherwise continue
|
// if someone beat us on the allocation, try again, otherwise continue
|
||||||
cmp(obj, end);
|
cmp(obj, end);
|
||||||
brx(Assembler::notEqual, false, Assembler::pn, retry);
|
brx(Assembler::notEqual, false, Assembler::pn, retry);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -963,7 +963,7 @@ public:
|
||||||
inline void sub(Register s1, RegisterOrConstant s2, Register d, int offset = 0);
|
inline void sub(Register s1, RegisterOrConstant s2, Register d, int offset = 0);
|
||||||
|
|
||||||
using Assembler::swap;
|
using Assembler::swap;
|
||||||
inline void swap(Address& a, Register d, int offset = 0);
|
inline void swap(const Address& a, Register d, int offset = 0);
|
||||||
|
|
||||||
// address pseudos: make these names unlike instruction names to avoid confusion
|
// address pseudos: make these names unlike instruction names to avoid confusion
|
||||||
inline intptr_t load_pc_address( Register reg, int bytes_to_skip );
|
inline intptr_t load_pc_address( Register reg, int bytes_to_skip );
|
||||||
|
@ -1056,13 +1056,6 @@ public:
|
||||||
|
|
||||||
void breakpoint_trap();
|
void breakpoint_trap();
|
||||||
void breakpoint_trap(Condition c, CC cc);
|
void breakpoint_trap(Condition c, CC cc);
|
||||||
void flush_windows_trap();
|
|
||||||
void clean_windows_trap();
|
|
||||||
void get_psr_trap();
|
|
||||||
void set_psr_trap();
|
|
||||||
|
|
||||||
// V8/V9 flush_windows
|
|
||||||
void flush_windows();
|
|
||||||
|
|
||||||
// Support for serializing memory accesses between threads
|
// Support for serializing memory accesses between threads
|
||||||
void serialize_memory(Register thread, Register tmp1, Register tmp2);
|
void serialize_memory(Register thread, Register tmp1, Register tmp2);
|
||||||
|
@ -1071,14 +1064,6 @@ public:
|
||||||
void enter();
|
void enter();
|
||||||
void leave();
|
void leave();
|
||||||
|
|
||||||
// V8/V9 integer multiply
|
|
||||||
void mult(Register s1, Register s2, Register d);
|
|
||||||
void mult(Register s1, int simm13a, Register d);
|
|
||||||
|
|
||||||
// V8/V9 read and write of condition codes.
|
|
||||||
void read_ccr(Register d);
|
|
||||||
void write_ccr(Register s);
|
|
||||||
|
|
||||||
// Manipulation of C++ bools
|
// Manipulation of C++ bools
|
||||||
// These are idioms to flag the need for care with accessing bools but on
|
// These are idioms to flag the need for care with accessing bools but on
|
||||||
// this platform we assume byte size
|
// this platform we assume byte size
|
||||||
|
@ -1162,21 +1147,6 @@ public:
|
||||||
// check_and_forward_exception to handle exceptions when it is safe
|
// check_and_forward_exception to handle exceptions when it is safe
|
||||||
void check_and_forward_exception(Register scratch_reg);
|
void check_and_forward_exception(Register scratch_reg);
|
||||||
|
|
||||||
private:
|
|
||||||
// For V8
|
|
||||||
void read_ccr_trap(Register ccr_save);
|
|
||||||
void write_ccr_trap(Register ccr_save1, Register scratch1, Register scratch2);
|
|
||||||
|
|
||||||
#ifdef ASSERT
|
|
||||||
// For V8 debugging. Uses V8 instruction sequence and checks
|
|
||||||
// result with V9 insturctions rdccr and wrccr.
|
|
||||||
// Uses Gscatch and Gscatch2
|
|
||||||
void read_ccr_v8_assert(Register ccr_save);
|
|
||||||
void write_ccr_v8_assert(Register ccr_save);
|
|
||||||
#endif // ASSERT
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
// Write to card table for - register is destroyed afterwards.
|
// Write to card table for - register is destroyed afterwards.
|
||||||
void card_table_write(jbyte* byte_map_base, Register tmp, Register obj);
|
void card_table_write(jbyte* byte_map_base, Register tmp, Register obj);
|
||||||
|
|
||||||
|
@ -1314,20 +1284,9 @@ public:
|
||||||
FloatRegister Fa, FloatRegister Fb,
|
FloatRegister Fa, FloatRegister Fb,
|
||||||
Register Rresult);
|
Register Rresult);
|
||||||
|
|
||||||
void fneg( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d);
|
|
||||||
void fneg( FloatRegisterImpl::Width w, FloatRegister sd ) { Assembler::fneg(w, sd); }
|
|
||||||
void fmov( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d);
|
|
||||||
void fabs( FloatRegisterImpl::Width w, FloatRegister s, FloatRegister d);
|
|
||||||
|
|
||||||
void save_all_globals_into_locals();
|
void save_all_globals_into_locals();
|
||||||
void restore_globals_from_locals();
|
void restore_globals_from_locals();
|
||||||
|
|
||||||
void casx_under_lock(Register top_ptr_reg, Register top_reg, Register ptr_reg,
|
|
||||||
address lock_addr=0, bool use_call_vm=false);
|
|
||||||
void cas_under_lock(Register top_ptr_reg, Register top_reg, Register ptr_reg,
|
|
||||||
address lock_addr=0, bool use_call_vm=false);
|
|
||||||
void casn (Register addr_reg, Register cmp_reg, Register set_reg) ;
|
|
||||||
|
|
||||||
// These set the icc condition code to equal if the lock succeeded
|
// These set the icc condition code to equal if the lock succeeded
|
||||||
// and notEqual if it failed and requires a slow case
|
// and notEqual if it failed and requires a slow case
|
||||||
void compiler_lock_object(Register Roop, Register Rmark, Register Rbox,
|
void compiler_lock_object(Register Roop, Register Rmark, Register Rbox,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -229,10 +229,7 @@ inline void MacroAssembler::sll_ptr( Register s1, RegisterOrConstant s2, Registe
|
||||||
// Use the right branch for the platform
|
// Use the right branch for the platform
|
||||||
|
|
||||||
inline void MacroAssembler::br( Condition c, bool a, Predict p, address d, relocInfo::relocType rt ) {
|
inline void MacroAssembler::br( Condition c, bool a, Predict p, address d, relocInfo::relocType rt ) {
|
||||||
if (VM_Version::v9_instructions_work())
|
Assembler::bp(c, a, icc, p, d, rt);
|
||||||
Assembler::bp(c, a, icc, p, d, rt);
|
|
||||||
else
|
|
||||||
Assembler::br(c, a, d, rt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void MacroAssembler::br( Condition c, bool a, Predict p, Label& L ) {
|
inline void MacroAssembler::br( Condition c, bool a, Predict p, Label& L ) {
|
||||||
|
@ -268,10 +265,7 @@ inline void MacroAssembler::bp( Condition c, bool a, CC cc, Predict p, Label& L
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void MacroAssembler::fb( Condition c, bool a, Predict p, address d, relocInfo::relocType rt ) {
|
inline void MacroAssembler::fb( Condition c, bool a, Predict p, address d, relocInfo::relocType rt ) {
|
||||||
if (VM_Version::v9_instructions_work())
|
fbp(c, a, fcc0, p, d, rt);
|
||||||
fbp(c, a, fcc0, p, d, rt);
|
|
||||||
else
|
|
||||||
Assembler::fb(c, a, d, rt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void MacroAssembler::fb( Condition c, bool a, Predict p, Label& L ) {
|
inline void MacroAssembler::fb( Condition c, bool a, Predict p, Label& L ) {
|
||||||
|
@ -334,7 +328,7 @@ inline void MacroAssembler::callr( Register s1, int simm13a, RelocationHolder co
|
||||||
|
|
||||||
// prefetch instruction
|
// prefetch instruction
|
||||||
inline void MacroAssembler::iprefetch( address d, relocInfo::relocType rt ) {
|
inline void MacroAssembler::iprefetch( address d, relocInfo::relocType rt ) {
|
||||||
if (VM_Version::v9_instructions_work())
|
Assembler::bp( never, true, xcc, pt, d, rt );
|
||||||
Assembler::bp( never, true, xcc, pt, d, rt );
|
Assembler::bp( never, true, xcc, pt, d, rt );
|
||||||
}
|
}
|
||||||
inline void MacroAssembler::iprefetch( Label& L) { iprefetch( target(L) ); }
|
inline void MacroAssembler::iprefetch( Label& L) { iprefetch( target(L) ); }
|
||||||
|
@ -344,15 +338,7 @@ inline void MacroAssembler::iprefetch( Label& L) { iprefetch( target(L) ); }
|
||||||
// returns delta from gotten pc to addr after
|
// returns delta from gotten pc to addr after
|
||||||
inline int MacroAssembler::get_pc( Register d ) {
|
inline int MacroAssembler::get_pc( Register d ) {
|
||||||
int x = offset();
|
int x = offset();
|
||||||
if (VM_Version::v9_instructions_work())
|
rdpc(d);
|
||||||
rdpc(d);
|
|
||||||
else {
|
|
||||||
Label lbl;
|
|
||||||
Assembler::call(lbl, relocInfo::none); // No relocation as this is call to pc+0x8
|
|
||||||
if (d == O7) delayed()->nop();
|
|
||||||
else delayed()->mov(O7, d);
|
|
||||||
bind(lbl);
|
|
||||||
}
|
|
||||||
return offset() - x;
|
return offset() - x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,41 +632,26 @@ inline void MacroAssembler::ldf(FloatRegisterImpl::Width w, const Address& a, Fl
|
||||||
// returns if membar generates anything, obviously this code should mirror
|
// returns if membar generates anything, obviously this code should mirror
|
||||||
// membar below.
|
// membar below.
|
||||||
inline bool MacroAssembler::membar_has_effect( Membar_mask_bits const7a ) {
|
inline bool MacroAssembler::membar_has_effect( Membar_mask_bits const7a ) {
|
||||||
if( !os::is_MP() ) return false; // Not needed on single CPU
|
if (!os::is_MP())
|
||||||
if( VM_Version::v9_instructions_work() ) {
|
return false; // Not needed on single CPU
|
||||||
const Membar_mask_bits effective_mask =
|
const Membar_mask_bits effective_mask =
|
||||||
Membar_mask_bits(const7a & ~(LoadLoad | LoadStore | StoreStore));
|
Membar_mask_bits(const7a & ~(LoadLoad | LoadStore | StoreStore));
|
||||||
return (effective_mask != 0);
|
return (effective_mask != 0);
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void MacroAssembler::membar( Membar_mask_bits const7a ) {
|
inline void MacroAssembler::membar( Membar_mask_bits const7a ) {
|
||||||
// Uniprocessors do not need memory barriers
|
// Uniprocessors do not need memory barriers
|
||||||
if (!os::is_MP()) return;
|
if (!os::is_MP())
|
||||||
|
return;
|
||||||
// Weakened for current Sparcs and TSO. See the v9 manual, sections 8.4.3,
|
// Weakened for current Sparcs and TSO. See the v9 manual, sections 8.4.3,
|
||||||
// 8.4.4.3, a.31 and a.50.
|
// 8.4.4.3, a.31 and a.50.
|
||||||
if( VM_Version::v9_instructions_work() ) {
|
// Under TSO, setting bit 3, 2, or 0 is redundant, so the only value
|
||||||
// Under TSO, setting bit 3, 2, or 0 is redundant, so the only value
|
// of the mmask subfield of const7a that does anything that isn't done
|
||||||
// of the mmask subfield of const7a that does anything that isn't done
|
// implicitly is StoreLoad.
|
||||||
// implicitly is StoreLoad.
|
const Membar_mask_bits effective_mask =
|
||||||
const Membar_mask_bits effective_mask =
|
Membar_mask_bits(const7a & ~(LoadLoad | LoadStore | StoreStore));
|
||||||
Membar_mask_bits(const7a & ~(LoadLoad | LoadStore | StoreStore));
|
if (effective_mask != 0) {
|
||||||
if ( effective_mask != 0 ) {
|
Assembler::membar(effective_mask);
|
||||||
Assembler::membar( effective_mask );
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// stbar is the closest there is on v8. Equivalent to membar(StoreStore). We
|
|
||||||
// do not issue the stbar because to my knowledge all v8 machines implement TSO,
|
|
||||||
// which guarantees that all stores behave as if an stbar were issued just after
|
|
||||||
// each one of them. On these machines, stbar ought to be a nop. There doesn't
|
|
||||||
// appear to be an equivalent of membar(StoreLoad) on v8: TSO doesn't require it,
|
|
||||||
// it can't be specified by stbar, nor have I come up with a way to simulate it.
|
|
||||||
//
|
|
||||||
// Addendum. Dave says that ldstub guarantees a write buffer flush to coherent
|
|
||||||
// space. Put one here to be on the safe side.
|
|
||||||
Assembler::ldstub(SP, 0, G0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -748,7 +719,7 @@ inline void MacroAssembler::sub(Register s1, RegisterOrConstant s2, Register d,
|
||||||
if (offset != 0) sub(d, offset, d);
|
if (offset != 0) sub(d, offset, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void MacroAssembler::swap(Address& a, Register d, int offset) {
|
inline void MacroAssembler::swap(const Address& a, Register d, int offset) {
|
||||||
relocate(a.rspec(offset));
|
relocate(a.rspec(offset));
|
||||||
if (a.has_index()) { assert(offset == 0, ""); swap(a.base(), a.index(), d ); }
|
if (a.has_index()) { assert(offset == 0, ""); swap(a.base(), a.index(), d ); }
|
||||||
else { swap(a.base(), a.disp() + offset, d); }
|
else { swap(a.base(), a.disp() + offset, d); }
|
||||||
|
|
|
@ -162,7 +162,7 @@ void NativeCall::replace_mt_safe(address instr_addr, address code_buffer) {
|
||||||
int i1 = ((int*)code_buffer)[1];
|
int i1 = ((int*)code_buffer)[1];
|
||||||
int* contention_addr = (int*) n_call->addr_at(1*BytesPerInstWord);
|
int* contention_addr = (int*) n_call->addr_at(1*BytesPerInstWord);
|
||||||
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
||||||
*contention_addr == nop_instruction() || !VM_Version::v9_instructions_work(),
|
*contention_addr == nop_instruction(),
|
||||||
"must not interfere with original call");
|
"must not interfere with original call");
|
||||||
// The set_long_at calls do the ICacheInvalidate so we just need to do them in reverse order
|
// The set_long_at calls do the ICacheInvalidate so we just need to do them in reverse order
|
||||||
n_call->set_long_at(1*BytesPerInstWord, i1);
|
n_call->set_long_at(1*BytesPerInstWord, i1);
|
||||||
|
@ -181,7 +181,7 @@ void NativeCall::replace_mt_safe(address instr_addr, address code_buffer) {
|
||||||
// Make sure the first-patched instruction, which may co-exist
|
// Make sure the first-patched instruction, which may co-exist
|
||||||
// briefly with the call, will do something harmless.
|
// briefly with the call, will do something harmless.
|
||||||
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
||||||
*contention_addr == nop_instruction() || !VM_Version::v9_instructions_work(),
|
*contention_addr == nop_instruction(),
|
||||||
"must not interfere with original call");
|
"must not interfere with original call");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -933,11 +933,7 @@ void NativeJump::patch_verified_entry(address entry, address verified_entry, add
|
||||||
int code_size = 1 * BytesPerInstWord;
|
int code_size = 1 * BytesPerInstWord;
|
||||||
CodeBuffer cb(verified_entry, code_size + 1);
|
CodeBuffer cb(verified_entry, code_size + 1);
|
||||||
MacroAssembler* a = new MacroAssembler(&cb);
|
MacroAssembler* a = new MacroAssembler(&cb);
|
||||||
if (VM_Version::v9_instructions_work()) {
|
a->ldsw(G0, 0, O7); // "ld" must agree with code in the signal handler
|
||||||
a->ldsw(G0, 0, O7); // "ld" must agree with code in the signal handler
|
|
||||||
} else {
|
|
||||||
a->lduw(G0, 0, O7); // "ld" must agree with code in the signal handler
|
|
||||||
}
|
|
||||||
ICache::invalidate_range(verified_entry, code_size);
|
ICache::invalidate_range(verified_entry, code_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1024,7 +1020,7 @@ void NativeGeneralJump::replace_mt_safe(address instr_addr, address code_buffer)
|
||||||
int i1 = ((int*)code_buffer)[1];
|
int i1 = ((int*)code_buffer)[1];
|
||||||
int* contention_addr = (int*) h_jump->addr_at(1*BytesPerInstWord);
|
int* contention_addr = (int*) h_jump->addr_at(1*BytesPerInstWord);
|
||||||
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
||||||
*contention_addr == nop_instruction() || !VM_Version::v9_instructions_work(),
|
*contention_addr == nop_instruction(),
|
||||||
"must not interfere with original call");
|
"must not interfere with original call");
|
||||||
// The set_long_at calls do the ICacheInvalidate so we just need to do them in reverse order
|
// The set_long_at calls do the ICacheInvalidate so we just need to do them in reverse order
|
||||||
h_jump->set_long_at(1*BytesPerInstWord, i1);
|
h_jump->set_long_at(1*BytesPerInstWord, i1);
|
||||||
|
@ -1043,6 +1039,6 @@ void NativeGeneralJump::replace_mt_safe(address instr_addr, address code_buffer)
|
||||||
// Make sure the first-patched instruction, which may co-exist
|
// Make sure the first-patched instruction, which may co-exist
|
||||||
// briefly with the call, will do something harmless.
|
// briefly with the call, will do something harmless.
|
||||||
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
assert(inv_op(*contention_addr) == Assembler::arith_op ||
|
||||||
*contention_addr == nop_instruction() || !VM_Version::v9_instructions_work(),
|
*contention_addr == nop_instruction(),
|
||||||
"must not interfere with original call");
|
"must not interfere with original call");
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,8 +70,7 @@ class NativeInstruction VALUE_OBJ_CLASS_SPEC {
|
||||||
bool is_zombie() {
|
bool is_zombie() {
|
||||||
int x = long_at(0);
|
int x = long_at(0);
|
||||||
return is_op3(x,
|
return is_op3(x,
|
||||||
VM_Version::v9_instructions_work() ?
|
Assembler::ldsw_op3,
|
||||||
Assembler::ldsw_op3 : Assembler::lduw_op3,
|
|
||||||
Assembler::ldst_op)
|
Assembler::ldst_op)
|
||||||
&& Assembler::inv_rs1(x) == G0
|
&& Assembler::inv_rs1(x) == G0
|
||||||
&& Assembler::inv_rd(x) == O7;
|
&& Assembler::inv_rd(x) == O7;
|
||||||
|
|
|
@ -249,12 +249,10 @@ class FloatRegisterImpl: public AbstractRegisterImpl {
|
||||||
|
|
||||||
case D:
|
case D:
|
||||||
assert(c < 64 && (c & 1) == 0, "bad double float register");
|
assert(c < 64 && (c & 1) == 0, "bad double float register");
|
||||||
assert(c < 32 || VM_Version::v9_instructions_work(), "V9 float work only on V9 platform");
|
|
||||||
return (c & 0x1e) | ((c & 0x20) >> 5);
|
return (c & 0x1e) | ((c & 0x20) >> 5);
|
||||||
|
|
||||||
case Q:
|
case Q:
|
||||||
assert(c < 64 && (c & 3) == 0, "bad quad float register");
|
assert(c < 64 && (c & 3) == 0, "bad quad float register");
|
||||||
assert(c < 32 || VM_Version::v9_instructions_work(), "V9 float work only on V9 platform");
|
|
||||||
return (c & 0x1c) | ((c & 0x20) >> 5);
|
return (c & 0x1c) | ((c & 0x20) >> 5);
|
||||||
}
|
}
|
||||||
ShouldNotReachHere();
|
ShouldNotReachHere();
|
||||||
|
|
|
@ -193,36 +193,6 @@ address Relocation::pd_get_address_from_code() {
|
||||||
return *(address*)addr();
|
return *(address*)addr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int Relocation::pd_breakpoint_size() {
|
|
||||||
// minimum breakpoint size, in short words
|
|
||||||
return NativeIllegalInstruction::instruction_size / sizeof(short);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Relocation::pd_swap_in_breakpoint(address x, short* instrs, int instrlen) {
|
|
||||||
Untested("pd_swap_in_breakpoint");
|
|
||||||
// %%% probably do not need a general instrlen; just use the trap size
|
|
||||||
if (instrs != NULL) {
|
|
||||||
assert(instrlen * sizeof(short) == NativeIllegalInstruction::instruction_size, "enough instrlen in reloc. data");
|
|
||||||
for (int i = 0; i < instrlen; i++) {
|
|
||||||
instrs[i] = ((short*)x)[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
NativeIllegalInstruction::insert(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Relocation::pd_swap_out_breakpoint(address x, short* instrs, int instrlen) {
|
|
||||||
Untested("pd_swap_out_breakpoint");
|
|
||||||
assert(instrlen * sizeof(short) == sizeof(int), "enough buf");
|
|
||||||
union { int l; short s[1]; } u;
|
|
||||||
for (int i = 0; i < instrlen; i++) {
|
|
||||||
u.s[i] = instrs[i];
|
|
||||||
}
|
|
||||||
NativeInstruction* ni = nativeInstruction_at(x);
|
|
||||||
ni->set_long_at(0, u.l);
|
|
||||||
}
|
|
||||||
|
|
||||||
void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
|
void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2459,7 +2459,7 @@ nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler* masm,
|
||||||
|
|
||||||
// Finally just about ready to make the JNI call
|
// Finally just about ready to make the JNI call
|
||||||
|
|
||||||
__ flush_windows();
|
__ flushw();
|
||||||
if (inner_frame_created) {
|
if (inner_frame_created) {
|
||||||
__ restore();
|
__ restore();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2778,10 +2778,7 @@ enc_class Fast_Unlock(iRegP oop, iRegP box, o7RegP scratch, iRegP scratch2) %{
|
||||||
Register Rold = reg_to_register_object($old$$reg);
|
Register Rold = reg_to_register_object($old$$reg);
|
||||||
Register Rnew = reg_to_register_object($new$$reg);
|
Register Rnew = reg_to_register_object($new$$reg);
|
||||||
|
|
||||||
// casx_under_lock picks 1 of 3 encodings:
|
__ cas_ptr(Rmem, Rold, Rnew); // Swap(*Rmem,Rnew) if *Rmem == Rold
|
||||||
// For 32-bit pointers you get a 32-bit CAS
|
|
||||||
// For 64-bit pointers you get a 64-bit CASX
|
|
||||||
__ casn(Rmem, Rold, Rnew); // Swap(*Rmem,Rnew) if *Rmem == Rold
|
|
||||||
__ cmp( Rold, Rnew );
|
__ cmp( Rold, Rnew );
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
@ -3067,7 +3064,7 @@ enc_class enc_Array_Equals(o0RegP ary1, o1RegP ary2, g3RegP tmp1, notemp_iRegI r
|
||||||
AddressLiteral last_rethrow_addrlit(&last_rethrow);
|
AddressLiteral last_rethrow_addrlit(&last_rethrow);
|
||||||
__ sethi(last_rethrow_addrlit, L1);
|
__ sethi(last_rethrow_addrlit, L1);
|
||||||
Address addr(L1, last_rethrow_addrlit.low10());
|
Address addr(L1, last_rethrow_addrlit.low10());
|
||||||
__ get_pc(L2);
|
__ rdpc(L2);
|
||||||
__ inc(L2, 3 * BytesPerInstWord); // skip this & 2 more insns to point at jump_to
|
__ inc(L2, 3 * BytesPerInstWord); // skip this & 2 more insns to point at jump_to
|
||||||
__ st_ptr(L2, addr);
|
__ st_ptr(L2, addr);
|
||||||
__ restore();
|
__ restore();
|
||||||
|
|
|
@ -566,7 +566,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
StubCodeMark mark(this, "StubRoutines", "flush_callers_register_windows");
|
StubCodeMark mark(this, "StubRoutines", "flush_callers_register_windows");
|
||||||
address start = __ pc();
|
address start = __ pc();
|
||||||
|
|
||||||
__ flush_windows();
|
__ flushw();
|
||||||
__ retl(false);
|
__ retl(false);
|
||||||
__ delayed()->add( FP, STACK_BIAS, O0 );
|
__ delayed()->add( FP, STACK_BIAS, O0 );
|
||||||
// The returned value must be a stack pointer whose register save area
|
// The returned value must be a stack pointer whose register save area
|
||||||
|
@ -575,67 +575,9 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper functions for v8 atomic operations.
|
|
||||||
//
|
|
||||||
void get_v8_oop_lock_ptr(Register lock_ptr_reg, Register mark_oop_reg, Register scratch_reg) {
|
|
||||||
if (mark_oop_reg == noreg) {
|
|
||||||
address lock_ptr = (address)StubRoutines::Sparc::atomic_memory_operation_lock_addr();
|
|
||||||
__ set((intptr_t)lock_ptr, lock_ptr_reg);
|
|
||||||
} else {
|
|
||||||
assert(scratch_reg != noreg, "just checking");
|
|
||||||
address lock_ptr = (address)StubRoutines::Sparc::_v8_oop_lock_cache;
|
|
||||||
__ set((intptr_t)lock_ptr, lock_ptr_reg);
|
|
||||||
__ and3(mark_oop_reg, StubRoutines::Sparc::v8_oop_lock_mask_in_place, scratch_reg);
|
|
||||||
__ add(lock_ptr_reg, scratch_reg, lock_ptr_reg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void generate_v8_lock_prologue(Register lock_reg, Register lock_ptr_reg, Register yield_reg, Label& retry, Label& dontyield, Register mark_oop_reg = noreg, Register scratch_reg = noreg) {
|
|
||||||
|
|
||||||
get_v8_oop_lock_ptr(lock_ptr_reg, mark_oop_reg, scratch_reg);
|
|
||||||
__ set(StubRoutines::Sparc::locked, lock_reg);
|
|
||||||
// Initialize yield counter
|
|
||||||
__ mov(G0,yield_reg);
|
|
||||||
|
|
||||||
__ BIND(retry);
|
|
||||||
__ cmp_and_br_short(yield_reg, V8AtomicOperationUnderLockSpinCount, Assembler::less, Assembler::pt, dontyield);
|
|
||||||
|
|
||||||
// This code can only be called from inside the VM, this
|
|
||||||
// stub is only invoked from Atomic::add(). We do not
|
|
||||||
// want to use call_VM, because _last_java_sp and such
|
|
||||||
// must already be set.
|
|
||||||
//
|
|
||||||
// Save the regs and make space for a C call
|
|
||||||
__ save(SP, -96, SP);
|
|
||||||
__ save_all_globals_into_locals();
|
|
||||||
BLOCK_COMMENT("call os::naked_sleep");
|
|
||||||
__ call(CAST_FROM_FN_PTR(address, os::naked_sleep));
|
|
||||||
__ delayed()->nop();
|
|
||||||
__ restore_globals_from_locals();
|
|
||||||
__ restore();
|
|
||||||
// reset the counter
|
|
||||||
__ mov(G0,yield_reg);
|
|
||||||
|
|
||||||
__ BIND(dontyield);
|
|
||||||
|
|
||||||
// try to get lock
|
|
||||||
__ swap(lock_ptr_reg, 0, lock_reg);
|
|
||||||
|
|
||||||
// did we get the lock?
|
|
||||||
__ cmp(lock_reg, StubRoutines::Sparc::unlocked);
|
|
||||||
__ br(Assembler::notEqual, true, Assembler::pn, retry);
|
|
||||||
__ delayed()->add(yield_reg,1,yield_reg);
|
|
||||||
|
|
||||||
// yes, got lock. do the operation here.
|
|
||||||
}
|
|
||||||
|
|
||||||
void generate_v8_lock_epilogue(Register lock_reg, Register lock_ptr_reg, Register yield_reg, Label& retry, Label& dontyield, Register mark_oop_reg = noreg, Register scratch_reg = noreg) {
|
|
||||||
__ st(lock_reg, lock_ptr_reg, 0); // unlock
|
|
||||||
}
|
|
||||||
|
|
||||||
// Support for jint Atomic::xchg(jint exchange_value, volatile jint* dest).
|
// Support for jint Atomic::xchg(jint exchange_value, volatile jint* dest).
|
||||||
//
|
//
|
||||||
// Arguments :
|
// Arguments:
|
||||||
//
|
//
|
||||||
// exchange_value: O0
|
// exchange_value: O0
|
||||||
// dest: O1
|
// dest: O1
|
||||||
|
@ -656,33 +598,14 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
__ mov(O0, O3); // scratch copy of exchange value
|
__ mov(O0, O3); // scratch copy of exchange value
|
||||||
__ ld(O1, 0, O2); // observe the previous value
|
__ ld(O1, 0, O2); // observe the previous value
|
||||||
// try to replace O2 with O3
|
// try to replace O2 with O3
|
||||||
__ cas_under_lock(O1, O2, O3,
|
__ cas(O1, O2, O3);
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr(),false);
|
|
||||||
__ cmp_and_br_short(O2, O3, Assembler::notEqual, Assembler::pn, retry);
|
__ cmp_and_br_short(O2, O3, Assembler::notEqual, Assembler::pn, retry);
|
||||||
|
|
||||||
__ retl(false);
|
__ retl(false);
|
||||||
__ delayed()->mov(O2, O0); // report previous value to caller
|
__ delayed()->mov(O2, O0); // report previous value to caller
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (VM_Version::v9_instructions_work()) {
|
__ retl(false);
|
||||||
__ retl(false);
|
__ delayed()->swap(O1, 0, O0);
|
||||||
__ delayed()->swap(O1, 0, O0);
|
|
||||||
} else {
|
|
||||||
const Register& lock_reg = O2;
|
|
||||||
const Register& lock_ptr_reg = O3;
|
|
||||||
const Register& yield_reg = O4;
|
|
||||||
|
|
||||||
Label retry;
|
|
||||||
Label dontyield;
|
|
||||||
|
|
||||||
generate_v8_lock_prologue(lock_reg, lock_ptr_reg, yield_reg, retry, dontyield);
|
|
||||||
// got the lock, do the swap
|
|
||||||
__ swap(O1, 0, O0);
|
|
||||||
|
|
||||||
generate_v8_lock_epilogue(lock_reg, lock_ptr_reg, yield_reg, retry, dontyield);
|
|
||||||
__ retl(false);
|
|
||||||
__ delayed()->nop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return start;
|
return start;
|
||||||
|
@ -691,7 +614,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
|
|
||||||
// Support for jint Atomic::cmpxchg(jint exchange_value, volatile jint* dest, jint compare_value)
|
// Support for jint Atomic::cmpxchg(jint exchange_value, volatile jint* dest, jint compare_value)
|
||||||
//
|
//
|
||||||
// Arguments :
|
// Arguments:
|
||||||
//
|
//
|
||||||
// exchange_value: O0
|
// exchange_value: O0
|
||||||
// dest: O1
|
// dest: O1
|
||||||
|
@ -701,15 +624,12 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
//
|
//
|
||||||
// O0: the value previously stored in dest
|
// O0: the value previously stored in dest
|
||||||
//
|
//
|
||||||
// Overwrites (v8): O3,O4,O5
|
|
||||||
//
|
|
||||||
address generate_atomic_cmpxchg() {
|
address generate_atomic_cmpxchg() {
|
||||||
StubCodeMark mark(this, "StubRoutines", "atomic_cmpxchg");
|
StubCodeMark mark(this, "StubRoutines", "atomic_cmpxchg");
|
||||||
address start = __ pc();
|
address start = __ pc();
|
||||||
|
|
||||||
// cmpxchg(dest, compare_value, exchange_value)
|
// cmpxchg(dest, compare_value, exchange_value)
|
||||||
__ cas_under_lock(O1, O2, O0,
|
__ cas(O1, O2, O0);
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr(),false);
|
|
||||||
__ retl(false);
|
__ retl(false);
|
||||||
__ delayed()->nop();
|
__ delayed()->nop();
|
||||||
|
|
||||||
|
@ -718,7 +638,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
|
|
||||||
// Support for jlong Atomic::cmpxchg(jlong exchange_value, volatile jlong *dest, jlong compare_value)
|
// Support for jlong Atomic::cmpxchg(jlong exchange_value, volatile jlong *dest, jlong compare_value)
|
||||||
//
|
//
|
||||||
// Arguments :
|
// Arguments:
|
||||||
//
|
//
|
||||||
// exchange_value: O1:O0
|
// exchange_value: O1:O0
|
||||||
// dest: O2
|
// dest: O2
|
||||||
|
@ -728,17 +648,12 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
//
|
//
|
||||||
// O1:O0: the value previously stored in dest
|
// O1:O0: the value previously stored in dest
|
||||||
//
|
//
|
||||||
// This only works on V9, on V8 we don't generate any
|
|
||||||
// code and just return NULL.
|
|
||||||
//
|
|
||||||
// Overwrites: G1,G2,G3
|
// Overwrites: G1,G2,G3
|
||||||
//
|
//
|
||||||
address generate_atomic_cmpxchg_long() {
|
address generate_atomic_cmpxchg_long() {
|
||||||
StubCodeMark mark(this, "StubRoutines", "atomic_cmpxchg_long");
|
StubCodeMark mark(this, "StubRoutines", "atomic_cmpxchg_long");
|
||||||
address start = __ pc();
|
address start = __ pc();
|
||||||
|
|
||||||
if (!VM_Version::supports_cx8())
|
|
||||||
return NULL;;
|
|
||||||
__ sllx(O0, 32, O0);
|
__ sllx(O0, 32, O0);
|
||||||
__ srl(O1, 0, O1);
|
__ srl(O1, 0, O1);
|
||||||
__ or3(O0,O1,O0); // O0 holds 64-bit value from compare_value
|
__ or3(O0,O1,O0); // O0 holds 64-bit value from compare_value
|
||||||
|
@ -756,7 +671,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
|
|
||||||
// Support for jint Atomic::add(jint add_value, volatile jint* dest).
|
// Support for jint Atomic::add(jint add_value, volatile jint* dest).
|
||||||
//
|
//
|
||||||
// Arguments :
|
// Arguments:
|
||||||
//
|
//
|
||||||
// add_value: O0 (e.g., +1 or -1)
|
// add_value: O0 (e.g., +1 or -1)
|
||||||
// dest: O1
|
// dest: O1
|
||||||
|
@ -765,47 +680,22 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
//
|
//
|
||||||
// O0: the new value stored in dest
|
// O0: the new value stored in dest
|
||||||
//
|
//
|
||||||
// Overwrites (v9): O3
|
// Overwrites: O3
|
||||||
// Overwrites (v8): O3,O4,O5
|
|
||||||
//
|
//
|
||||||
address generate_atomic_add() {
|
address generate_atomic_add() {
|
||||||
StubCodeMark mark(this, "StubRoutines", "atomic_add");
|
StubCodeMark mark(this, "StubRoutines", "atomic_add");
|
||||||
address start = __ pc();
|
address start = __ pc();
|
||||||
__ BIND(_atomic_add_stub);
|
__ BIND(_atomic_add_stub);
|
||||||
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
Label(retry);
|
||||||
Label(retry);
|
__ BIND(retry);
|
||||||
__ BIND(retry);
|
|
||||||
|
|
||||||
__ lduw(O1, 0, O2);
|
__ lduw(O1, 0, O2);
|
||||||
__ add(O0, O2, O3);
|
__ add(O0, O2, O3);
|
||||||
__ cas(O1, O2, O3);
|
__ cas(O1, O2, O3);
|
||||||
__ cmp_and_br_short(O2, O3, Assembler::notEqual, Assembler::pn, retry);
|
__ cmp_and_br_short(O2, O3, Assembler::notEqual, Assembler::pn, retry);
|
||||||
__ retl(false);
|
__ retl(false);
|
||||||
__ delayed()->add(O0, O2, O0); // note that cas made O2==O3
|
__ delayed()->add(O0, O2, O0); // note that cas made O2==O3
|
||||||
} else {
|
|
||||||
const Register& lock_reg = O2;
|
|
||||||
const Register& lock_ptr_reg = O3;
|
|
||||||
const Register& value_reg = O4;
|
|
||||||
const Register& yield_reg = O5;
|
|
||||||
|
|
||||||
Label(retry);
|
|
||||||
Label(dontyield);
|
|
||||||
|
|
||||||
generate_v8_lock_prologue(lock_reg, lock_ptr_reg, yield_reg, retry, dontyield);
|
|
||||||
// got lock, do the increment
|
|
||||||
__ ld(O1, 0, value_reg);
|
|
||||||
__ add(O0, value_reg, value_reg);
|
|
||||||
__ st(value_reg, O1, 0);
|
|
||||||
|
|
||||||
// %%% only for RMO and PSO
|
|
||||||
__ membar(Assembler::StoreStore);
|
|
||||||
|
|
||||||
generate_v8_lock_epilogue(lock_reg, lock_ptr_reg, yield_reg, retry, dontyield);
|
|
||||||
|
|
||||||
__ retl(false);
|
|
||||||
__ delayed()->mov(value_reg, O0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
@ -841,7 +731,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
__ mov(G3, L3);
|
__ mov(G3, L3);
|
||||||
__ mov(G4, L4);
|
__ mov(G4, L4);
|
||||||
__ mov(G5, L5);
|
__ mov(G5, L5);
|
||||||
for (i = 0; i < (VM_Version::v9_instructions_work() ? 64 : 32); i += 2) {
|
for (i = 0; i < 64; i += 2) {
|
||||||
__ stf(FloatRegisterImpl::D, as_FloatRegister(i), preserve_addr, i * wordSize);
|
__ stf(FloatRegisterImpl::D, as_FloatRegister(i), preserve_addr, i * wordSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -855,7 +745,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||||
__ mov(L3, G3);
|
__ mov(L3, G3);
|
||||||
__ mov(L4, G4);
|
__ mov(L4, G4);
|
||||||
__ mov(L5, G5);
|
__ mov(L5, G5);
|
||||||
for (i = 0; i < (VM_Version::v9_instructions_work() ? 64 : 32); i += 2) {
|
for (i = 0; i < 64; i += 2) {
|
||||||
__ ldf(FloatRegisterImpl::D, preserve_addr, as_FloatRegister(i), i * wordSize);
|
__ ldf(FloatRegisterImpl::D, preserve_addr, as_FloatRegister(i), i * wordSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,3 @@ address StubRoutines::Sparc::_stop_subroutine_entry = NULL;
|
||||||
address StubRoutines::Sparc::_flush_callers_register_windows_entry = CAST_FROM_FN_PTR(address, bootstrap_flush_windows);
|
address StubRoutines::Sparc::_flush_callers_register_windows_entry = CAST_FROM_FN_PTR(address, bootstrap_flush_windows);
|
||||||
|
|
||||||
address StubRoutines::Sparc::_partial_subtype_check = NULL;
|
address StubRoutines::Sparc::_partial_subtype_check = NULL;
|
||||||
|
|
||||||
int StubRoutines::Sparc::_atomic_memory_operation_lock = StubRoutines::Sparc::unlocked;
|
|
||||||
|
|
||||||
int StubRoutines::Sparc::_v8_oop_lock_cache[StubRoutines::Sparc::nof_v8_oop_lock_cache_entries];
|
|
||||||
|
|
|
@ -47,46 +47,14 @@ enum /* platform_dependent_constants */ {
|
||||||
class Sparc {
|
class Sparc {
|
||||||
friend class StubGenerator;
|
friend class StubGenerator;
|
||||||
|
|
||||||
public:
|
|
||||||
enum { nof_instance_allocators = 10 };
|
|
||||||
|
|
||||||
// allocator lock values
|
|
||||||
enum {
|
|
||||||
unlocked = 0,
|
|
||||||
locked = 1
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
|
||||||
v8_oop_lock_ignore_bits = 2,
|
|
||||||
v8_oop_lock_bits = 4,
|
|
||||||
nof_v8_oop_lock_cache_entries = 1 << (v8_oop_lock_bits+v8_oop_lock_ignore_bits),
|
|
||||||
v8_oop_lock_mask = right_n_bits(v8_oop_lock_bits),
|
|
||||||
v8_oop_lock_mask_in_place = v8_oop_lock_mask << v8_oop_lock_ignore_bits
|
|
||||||
};
|
|
||||||
|
|
||||||
static int _v8_oop_lock_cache[nof_v8_oop_lock_cache_entries];
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static address _test_stop_entry;
|
static address _test_stop_entry;
|
||||||
static address _stop_subroutine_entry;
|
static address _stop_subroutine_entry;
|
||||||
static address _flush_callers_register_windows_entry;
|
static address _flush_callers_register_windows_entry;
|
||||||
|
|
||||||
static int _atomic_memory_operation_lock;
|
|
||||||
|
|
||||||
static address _partial_subtype_check;
|
static address _partial_subtype_check;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// %%% global lock for everyone who needs to use atomic_compare_and_exchange
|
|
||||||
// %%% or atomic_increment -- should probably use more locks for more
|
|
||||||
// %%% scalability-- for instance one for each eden space or group of
|
|
||||||
|
|
||||||
// address of the lock for atomic_compare_and_exchange
|
|
||||||
static int* atomic_memory_operation_lock_addr() { return &_atomic_memory_operation_lock; }
|
|
||||||
|
|
||||||
// accessor and mutator for _atomic_memory_operation_lock
|
|
||||||
static int atomic_memory_operation_lock() { return _atomic_memory_operation_lock; }
|
|
||||||
static void set_atomic_memory_operation_lock(int value) { _atomic_memory_operation_lock = value; }
|
|
||||||
|
|
||||||
// test assembler stop routine by setting registers
|
// test assembler stop routine by setting registers
|
||||||
static void (*test_stop_entry()) () { return CAST_TO_FN_PTR(void (*)(void), _test_stop_entry); }
|
static void (*test_stop_entry()) () { return CAST_TO_FN_PTR(void (*)(void), _test_stop_entry); }
|
||||||
|
|
||||||
|
|
|
@ -1054,7 +1054,7 @@ address InterpreterGenerator::generate_native_entry(bool synchronized) {
|
||||||
// flush the windows now. We don't care about the current (protection) frame
|
// flush the windows now. We don't care about the current (protection) frame
|
||||||
// only the outer frames
|
// only the outer frames
|
||||||
|
|
||||||
__ flush_windows();
|
__ flushw();
|
||||||
|
|
||||||
// mark windows as flushed
|
// mark windows as flushed
|
||||||
Address flags(G2_thread, JavaThread::frame_anchor_offset() + JavaFrameAnchor::flags_offset());
|
Address flags(G2_thread, JavaThread::frame_anchor_offset() + JavaFrameAnchor::flags_offset());
|
||||||
|
|
|
@ -1338,14 +1338,13 @@ void TemplateTable::lneg() {
|
||||||
|
|
||||||
void TemplateTable::fneg() {
|
void TemplateTable::fneg() {
|
||||||
transition(ftos, ftos);
|
transition(ftos, ftos);
|
||||||
__ fneg(FloatRegisterImpl::S, Ftos_f);
|
__ fneg(FloatRegisterImpl::S, Ftos_f, Ftos_f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void TemplateTable::dneg() {
|
void TemplateTable::dneg() {
|
||||||
transition(dtos, dtos);
|
transition(dtos, dtos);
|
||||||
// v8 has fnegd if source and dest are the same
|
__ fneg(FloatRegisterImpl::D, Ftos_f, Ftos_f);
|
||||||
__ fneg(FloatRegisterImpl::D, Ftos_f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1470,19 +1469,10 @@ void TemplateTable::convert() {
|
||||||
__ st_long(Otos_l, __ d_tmp);
|
__ st_long(Otos_l, __ d_tmp);
|
||||||
__ ldf(FloatRegisterImpl::D, __ d_tmp, Ftos_d);
|
__ ldf(FloatRegisterImpl::D, __ d_tmp, Ftos_d);
|
||||||
|
|
||||||
if (VM_Version::v9_instructions_work()) {
|
if (bytecode() == Bytecodes::_l2f) {
|
||||||
if (bytecode() == Bytecodes::_l2f) {
|
__ fxtof(FloatRegisterImpl::S, Ftos_d, Ftos_f);
|
||||||
__ fxtof(FloatRegisterImpl::S, Ftos_d, Ftos_f);
|
|
||||||
} else {
|
|
||||||
__ fxtof(FloatRegisterImpl::D, Ftos_d, Ftos_d);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
__ call_VM_leaf(
|
__ fxtof(FloatRegisterImpl::D, Ftos_d, Ftos_d);
|
||||||
Lscratch,
|
|
||||||
bytecode() == Bytecodes::_l2f
|
|
||||||
? CAST_FROM_FN_PTR(address, SharedRuntime::l2f)
|
|
||||||
: CAST_FROM_FN_PTR(address, SharedRuntime::l2d)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1490,11 +1480,6 @@ void TemplateTable::convert() {
|
||||||
Label isNaN;
|
Label isNaN;
|
||||||
// result must be 0 if value is NaN; test by comparing value to itself
|
// result must be 0 if value is NaN; test by comparing value to itself
|
||||||
__ fcmp(FloatRegisterImpl::S, Assembler::fcc0, Ftos_f, Ftos_f);
|
__ fcmp(FloatRegisterImpl::S, Assembler::fcc0, Ftos_f, Ftos_f);
|
||||||
// According to the v8 manual, you have to have a non-fp instruction
|
|
||||||
// between fcmp and fb.
|
|
||||||
if (!VM_Version::v9_instructions_work()) {
|
|
||||||
__ nop();
|
|
||||||
}
|
|
||||||
__ fb(Assembler::f_unordered, true, Assembler::pn, isNaN);
|
__ fb(Assembler::f_unordered, true, Assembler::pn, isNaN);
|
||||||
__ delayed()->clr(Otos_i); // NaN
|
__ delayed()->clr(Otos_i); // NaN
|
||||||
__ ftoi(FloatRegisterImpl::S, Ftos_f, F30);
|
__ ftoi(FloatRegisterImpl::S, Ftos_f, F30);
|
||||||
|
@ -1537,16 +1522,7 @@ void TemplateTable::convert() {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Bytecodes::_d2f:
|
case Bytecodes::_d2f:
|
||||||
if (VM_Version::v9_instructions_work()) {
|
|
||||||
__ ftof( FloatRegisterImpl::D, FloatRegisterImpl::S, Ftos_d, Ftos_f);
|
__ ftof( FloatRegisterImpl::D, FloatRegisterImpl::S, Ftos_d, Ftos_f);
|
||||||
}
|
|
||||||
else {
|
|
||||||
// must uncache tos
|
|
||||||
__ push_d();
|
|
||||||
__ pop_i(O0);
|
|
||||||
__ pop_i(O1);
|
|
||||||
__ call_VM_leaf(Lscratch, CAST_FROM_FN_PTR(address, SharedRuntime::d2f));
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: ShouldNotReachHere();
|
default: ShouldNotReachHere();
|
||||||
|
@ -1956,17 +1932,8 @@ void TemplateTable::fast_binaryswitch() {
|
||||||
__ ld( Rarray, Rscratch, Rscratch );
|
__ ld( Rarray, Rscratch, Rscratch );
|
||||||
// (Rscratch is already in the native byte-ordering.)
|
// (Rscratch is already in the native byte-ordering.)
|
||||||
__ cmp( Rkey, Rscratch );
|
__ cmp( Rkey, Rscratch );
|
||||||
if ( VM_Version::v9_instructions_work() ) {
|
__ movcc( Assembler::less, false, Assembler::icc, Rh, Rj ); // j = h if (key < array[h].fast_match())
|
||||||
__ movcc( Assembler::less, false, Assembler::icc, Rh, Rj ); // j = h if (key < array[h].fast_match())
|
__ movcc( Assembler::greaterEqual, false, Assembler::icc, Rh, Ri ); // i = h if (key >= array[h].fast_match())
|
||||||
__ movcc( Assembler::greaterEqual, false, Assembler::icc, Rh, Ri ); // i = h if (key >= array[h].fast_match())
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Label end_of_if;
|
|
||||||
__ br( Assembler::less, true, Assembler::pt, end_of_if );
|
|
||||||
__ delayed()->mov( Rh, Rj ); // if (<) Rj = Rh
|
|
||||||
__ mov( Rh, Ri ); // else i = h
|
|
||||||
__ bind(end_of_if); // }
|
|
||||||
}
|
|
||||||
|
|
||||||
// while (i+1 < j)
|
// while (i+1 < j)
|
||||||
__ bind( entry );
|
__ bind( entry );
|
||||||
|
@ -3418,9 +3385,7 @@ void TemplateTable::_new() {
|
||||||
// has been allocated.
|
// has been allocated.
|
||||||
__ cmp_and_brx_short(RnewTopValue, RendValue, Assembler::greaterUnsigned, Assembler::pn, slow_case);
|
__ cmp_and_brx_short(RnewTopValue, RendValue, Assembler::greaterUnsigned, Assembler::pn, slow_case);
|
||||||
|
|
||||||
__ casx_under_lock(RtopAddr, RoldTopValue, RnewTopValue,
|
__ cas_ptr(RtopAddr, RoldTopValue, RnewTopValue);
|
||||||
VM_Version::v9_instructions_work() ? NULL :
|
|
||||||
(address)StubRoutines::Sparc::atomic_memory_operation_lock_addr());
|
|
||||||
|
|
||||||
// if someone beat us on the allocation, try again, otherwise continue
|
// if someone beat us on the allocation, try again, otherwise continue
|
||||||
__ cmp_and_brx_short(RoldTopValue, RnewTopValue, Assembler::notEqual, Assembler::pn, retry);
|
__ cmp_and_brx_short(RoldTopValue, RnewTopValue, Assembler::notEqual, Assembler::pn, retry);
|
||||||
|
@ -3701,14 +3666,7 @@ void TemplateTable::monitorenter() {
|
||||||
|
|
||||||
__ verify_oop(O4); // verify each monitor's oop
|
__ verify_oop(O4); // verify each monitor's oop
|
||||||
__ tst(O4); // is this entry unused?
|
__ tst(O4); // is this entry unused?
|
||||||
if (VM_Version::v9_instructions_work())
|
__ movcc( Assembler::zero, false, Assembler::ptr_cc, O3, O1);
|
||||||
__ movcc( Assembler::zero, false, Assembler::ptr_cc, O3, O1);
|
|
||||||
else {
|
|
||||||
Label L;
|
|
||||||
__ br( Assembler::zero, true, Assembler::pn, L );
|
|
||||||
__ delayed()->mov(O3, O1); // rememeber this one if match
|
|
||||||
__ bind(L);
|
|
||||||
}
|
|
||||||
|
|
||||||
__ cmp(O4, O0); // check if current entry is for same object
|
__ cmp(O4, O0); // check if current entry is for same object
|
||||||
__ brx( Assembler::equal, false, Assembler::pn, exit );
|
__ brx( Assembler::equal, false, Assembler::pn, exit );
|
||||||
|
|
|
@ -75,23 +75,14 @@ void VM_Version::initialize() {
|
||||||
FLAG_SET_DEFAULT(AllocatePrefetchStyle, 1);
|
FLAG_SET_DEFAULT(AllocatePrefetchStyle, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_v9()) {
|
guarantee(VM_Version::has_v9(), "only SPARC v9 is supported");
|
||||||
assert(ArraycopySrcPrefetchDistance < 4096, "invalid value");
|
|
||||||
if (ArraycopySrcPrefetchDistance >= 4096)
|
assert(ArraycopySrcPrefetchDistance < 4096, "invalid value");
|
||||||
ArraycopySrcPrefetchDistance = 4064;
|
if (ArraycopySrcPrefetchDistance >= 4096)
|
||||||
assert(ArraycopyDstPrefetchDistance < 4096, "invalid value");
|
ArraycopySrcPrefetchDistance = 4064;
|
||||||
if (ArraycopyDstPrefetchDistance >= 4096)
|
assert(ArraycopyDstPrefetchDistance < 4096, "invalid value");
|
||||||
ArraycopyDstPrefetchDistance = 4064;
|
if (ArraycopyDstPrefetchDistance >= 4096)
|
||||||
} else {
|
ArraycopyDstPrefetchDistance = 4064;
|
||||||
if (ArraycopySrcPrefetchDistance > 0) {
|
|
||||||
warning("prefetch instructions are not available on this CPU");
|
|
||||||
FLAG_SET_DEFAULT(ArraycopySrcPrefetchDistance, 0);
|
|
||||||
}
|
|
||||||
if (ArraycopyDstPrefetchDistance > 0) {
|
|
||||||
warning("prefetch instructions are not available on this CPU");
|
|
||||||
FLAG_SET_DEFAULT(ArraycopyDstPrefetchDistance, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
UseSSE = 0; // Only on x86 and x64
|
UseSSE = 0; // Only on x86 and x64
|
||||||
|
|
||||||
|
|
|
@ -177,10 +177,6 @@ public:
|
||||||
return AllocatePrefetchDistance > 0 ? AllocatePrefetchStyle : 0;
|
return AllocatePrefetchDistance > 0 ? AllocatePrefetchStyle : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Legacy
|
|
||||||
static bool v8_instructions_work() { return has_v8() && !has_v9(); }
|
|
||||||
static bool v9_instructions_work() { return has_v9(); }
|
|
||||||
|
|
||||||
// Assembler testing
|
// Assembler testing
|
||||||
static void allow_all();
|
static void allow_all();
|
||||||
static void revert();
|
static void revert();
|
||||||
|
|
|
@ -587,7 +587,7 @@ bool frame::is_interpreted_frame_valid(JavaThread* thread) const {
|
||||||
|
|
||||||
// validate ConstantPoolCache*
|
// validate ConstantPoolCache*
|
||||||
ConstantPoolCache* cp = *interpreter_frame_cache_addr();
|
ConstantPoolCache* cp = *interpreter_frame_cache_addr();
|
||||||
if (cp == NULL || !cp->is_metadata()) return false;
|
if (cp == NULL || !cp->is_metaspace_object()) return false;
|
||||||
|
|
||||||
// validate locals
|
// validate locals
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -55,7 +55,7 @@ define_pd_global(intx, OptoLoopAlignment, 16);
|
||||||
define_pd_global(intx, InlineFrequencyCount, 100);
|
define_pd_global(intx, InlineFrequencyCount, 100);
|
||||||
define_pd_global(intx, InlineSmallCode, 1000);
|
define_pd_global(intx, InlineSmallCode, 1000);
|
||||||
|
|
||||||
define_pd_global(intx, StackYellowPages, 2);
|
define_pd_global(intx, StackYellowPages, NOT_WINDOWS(2) WINDOWS_ONLY(3));
|
||||||
define_pd_global(intx, StackRedPages, 1);
|
define_pd_global(intx, StackRedPages, 1);
|
||||||
#ifdef AMD64
|
#ifdef AMD64
|
||||||
// Very large C++ stack frames using solaris-amd64 optimized builds
|
// Very large C++ stack frames using solaris-amd64 optimized builds
|
||||||
|
|
|
@ -177,30 +177,6 @@ address Relocation::pd_get_address_from_code() {
|
||||||
return *pd_address_in_code();
|
return *pd_address_in_code();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Relocation::pd_breakpoint_size() {
|
|
||||||
// minimum breakpoint size, in short words
|
|
||||||
return NativeIllegalInstruction::instruction_size / sizeof(short);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Relocation::pd_swap_in_breakpoint(address x, short* instrs, int instrlen) {
|
|
||||||
Untested("pd_swap_in_breakpoint");
|
|
||||||
if (instrs != NULL) {
|
|
||||||
assert(instrlen * sizeof(short) == NativeIllegalInstruction::instruction_size, "enough instrlen in reloc. data");
|
|
||||||
for (int i = 0; i < instrlen; i++) {
|
|
||||||
instrs[i] = ((short*)x)[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
NativeIllegalInstruction::insert(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Relocation::pd_swap_out_breakpoint(address x, short* instrs, int instrlen) {
|
|
||||||
Untested("pd_swap_out_breakpoint");
|
|
||||||
assert(NativeIllegalInstruction::instruction_size == sizeof(short), "right address unit for update");
|
|
||||||
NativeInstruction* ni = nativeInstruction_at(x);
|
|
||||||
*(short*)ni->addr_at(0) = instrs[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
|
void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
|
||||||
#ifdef _LP64
|
#ifdef _LP64
|
||||||
if (!Assembler::is_polling_page_far()) {
|
if (!Assembler::is_polling_page_far()) {
|
||||||
|
|
|
@ -1429,6 +1429,8 @@ static void unpack_array_argument(MacroAssembler* masm, VMRegPair reg, BasicType
|
||||||
assert(!length_arg.first()->is_Register() || length_arg.first()->as_Register() != tmp_reg,
|
assert(!length_arg.first()->is_Register() || length_arg.first()->as_Register() != tmp_reg,
|
||||||
"possible collision");
|
"possible collision");
|
||||||
|
|
||||||
|
__ block_comment("unpack_array_argument {");
|
||||||
|
|
||||||
// Pass the length, ptr pair
|
// Pass the length, ptr pair
|
||||||
Label is_null, done;
|
Label is_null, done;
|
||||||
VMRegPair tmp;
|
VMRegPair tmp;
|
||||||
|
@ -1453,6 +1455,8 @@ static void unpack_array_argument(MacroAssembler* masm, VMRegPair reg, BasicType
|
||||||
move_ptr(masm, tmp, body_arg);
|
move_ptr(masm, tmp, body_arg);
|
||||||
move32_64(masm, tmp, length_arg);
|
move32_64(masm, tmp, length_arg);
|
||||||
__ bind(done);
|
__ bind(done);
|
||||||
|
|
||||||
|
__ block_comment("} unpack_array_argument");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2170,27 +2174,34 @@ nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler* masm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// point c_arg at the first arg that is already loaded in case we
|
int c_arg;
|
||||||
// need to spill before we call out
|
|
||||||
int c_arg = total_c_args - total_in_args;
|
|
||||||
|
|
||||||
// Pre-load a static method's oop into r14. Used both by locking code and
|
// Pre-load a static method's oop into r14. Used both by locking code and
|
||||||
// the normal JNI call code.
|
// the normal JNI call code.
|
||||||
if (method->is_static() && !is_critical_native) {
|
if (!is_critical_native) {
|
||||||
|
// point c_arg at the first arg that is already loaded in case we
|
||||||
|
// need to spill before we call out
|
||||||
|
c_arg = total_c_args - total_in_args;
|
||||||
|
|
||||||
// load oop into a register
|
if (method->is_static()) {
|
||||||
__ movoop(oop_handle_reg, JNIHandles::make_local(method->method_holder()->java_mirror()));
|
|
||||||
|
|
||||||
// Now handlize the static class mirror it's known not-null.
|
// load oop into a register
|
||||||
__ movptr(Address(rsp, klass_offset), oop_handle_reg);
|
__ movoop(oop_handle_reg, JNIHandles::make_local(method->method_holder()->java_mirror()));
|
||||||
map->set_oop(VMRegImpl::stack2reg(klass_slot_offset));
|
|
||||||
|
|
||||||
// Now get the handle
|
// Now handlize the static class mirror it's known not-null.
|
||||||
__ lea(oop_handle_reg, Address(rsp, klass_offset));
|
__ movptr(Address(rsp, klass_offset), oop_handle_reg);
|
||||||
// store the klass handle as second argument
|
map->set_oop(VMRegImpl::stack2reg(klass_slot_offset));
|
||||||
__ movptr(c_rarg1, oop_handle_reg);
|
|
||||||
// and protect the arg if we must spill
|
// Now get the handle
|
||||||
c_arg--;
|
__ lea(oop_handle_reg, Address(rsp, klass_offset));
|
||||||
|
// store the klass handle as second argument
|
||||||
|
__ movptr(c_rarg1, oop_handle_reg);
|
||||||
|
// and protect the arg if we must spill
|
||||||
|
c_arg--;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// For JNI critical methods we need to save all registers in save_args.
|
||||||
|
c_arg = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change state to native (we save the return address in the thread, since it might not
|
// Change state to native (we save the return address in the thread, since it might not
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue