Merge
This commit is contained in:
commit
b573023374
4
.hgtags
4
.hgtags
@ -215,3 +215,7 @@ f09ab0c416185e3cba371e81bcb6a16060c90f44 jdk8-b90
|
||||
80b6c3172dc2cfceb022411292d290a967f9c728 jdk8-b91
|
||||
2fd6acba737b01e705e1f7c33588c922a3787f13 jdk8-b92
|
||||
b72ae39e1329fefae50d4690db4fde43f3841a95 jdk8-b93
|
||||
0d804e3b955dce406af6a79ac1cc35c696aff7fb jdk8-b94
|
||||
49fe9c8049132647ad38837a877dd473e6c9b0e5 jdk8-b95
|
||||
ea73f01b9053e7165e7ba80f242bafecbc6af712 jdk8-b96
|
||||
0a85476a0b9cb876d5666d45097dac68bef3fce1 jdk8-b97
|
||||
|
@ -215,3 +215,7 @@ e1a929afcfc492470d50be0b6b0e8dc77d3760b9 jdk8-b88
|
||||
cb51fb4789ac0b8be4056482077ddfb8f3bd3805 jdk8-b91
|
||||
3a36c926a7aafa9d4a892a45ef3678e87ad8359b jdk8-b92
|
||||
27c51c6e31c1ef36afa0e6efb031f9b13f26c12b jdk8-b93
|
||||
50d2bde060f2a9bbbe4da0c8986e20aca61f2e2e jdk8-b94
|
||||
785d07fe38901ecc1b7e0145e53e1c3da9361fee jdk8-b95
|
||||
c156084add486f941c12d886a0b1b2854795d557 jdk8-b96
|
||||
a1c1e8bf71f354f3aec0214cf13d6668811e021d jdk8-b97
|
||||
|
@ -68,12 +68,15 @@ else
|
||||
# First, find out the valid targets
|
||||
# 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.
|
||||
all_phony_targets=$(filter-out $(global_targets), $(strip $(shell \
|
||||
$(MAKE) -p -q -f common/makefiles SPEC=$(firstword $(SPEC)) | \
|
||||
all_phony_targets=$(filter-out $(global_targets) bundles-only, $(strip $(shell \
|
||||
$(MAKE) -p -q -f common/makefiles/Main.gmk SPEC=$(firstword $(SPEC)) | \
|
||||
grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
|
||||
|
||||
$(all_phony_targets):
|
||||
@$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
|
||||
$(all_phony_targets):
|
||||
$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) \
|
||||
$(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
|
||||
|
||||
.PHONY: $(all_phony_targets)
|
||||
|
||||
endif
|
||||
endif
|
||||
|
@ -355,12 +355,24 @@
|
||||
</li>
|
||||
<li>
|
||||
Install a
|
||||
<a name="bootjdk">Bootstrap JDK</a>
|
||||
<br>
|
||||
<a name="bootjdk">Bootstrap JDK</a>.
|
||||
All OpenJDK builds require access to a previously released
|
||||
JDK, this is often called a bootstrap JDK.
|
||||
Currently, for this JDK release we require
|
||||
JDK 7 Update 7 or newer.
|
||||
JDK called the <i>bootstrap JDK</i> or <i>boot JDK.</i>
|
||||
The general rule is that the bootstrap JDK
|
||||
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
|
||||
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
||||
target="_blank">JDK 7 download site</a>.
|
||||
|
@ -43,6 +43,16 @@ AC_DEFUN([ADD_JVM_ARG_IF_OK],
|
||||
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
|
||||
# path. This means:
|
||||
# 1) There will be no spaces in the path. On posix platforms,
|
||||
@ -351,7 +361,9 @@ fi
|
||||
AC_SUBST(SYS_ROOT)
|
||||
|
||||
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],
|
||||
[use this directory as base for tools-dir and sys-root (for cross-compiling)])],
|
||||
@ -359,13 +371,14 @@ AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
|
||||
if test "x$with_sys_root" != x; then
|
||||
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time])
|
||||
fi
|
||||
if test "x$with_tools_dir" != x; then
|
||||
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time])
|
||||
BASIC_FIXUP_PATH([with_devkit])
|
||||
BASIC_APPEND_TO_PATH([TOOLS_DIR],$with_devkit/bin)
|
||||
if test -d "$with_devkit/$host_alias/libc"; then
|
||||
SYS_ROOT=$with_devkit/$host_alias/libc
|
||||
elif test -d "$with_devkit/$host/sys-root"; then
|
||||
SYS_ROOT=$with_devkit/$host/sys-root
|
||||
fi
|
||||
TOOLS_DIR=$with_devkit/bin
|
||||
SYS_ROOT=$with_devkit/$host_alias/libc
|
||||
])
|
||||
|
||||
])
|
||||
|
||||
AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
|
||||
@ -608,6 +621,14 @@ AC_PATH_PROGS(READELF, [readelf greadelf])
|
||||
AC_PATH_PROG(HG, hg)
|
||||
AC_PATH_PROG(STAT, stat)
|
||||
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
|
||||
BASIC_REQUIRE_PROG(COMM, comm)
|
||||
|
@ -162,7 +162,12 @@ AC_DEFUN([BPERF_SETUP_CCACHE],
|
||||
[disable using ccache to speed up recompilations @<:@enabled@:>@])],
|
||||
[ENABLE_CCACHE=${enable_ccache}], [ENABLE_CCACHE=yes])
|
||||
if test "x$ENABLE_CCACHE" = xyes; then
|
||||
OLD_PATH="$PATH"
|
||||
if test "x$TOOLS_DIR" != x; then
|
||||
PATH=$TOOLS_DIR:$PATH
|
||||
fi
|
||||
AC_PATH_PROG(CCACHE, ccache)
|
||||
PATH="$OLD_PATH"
|
||||
else
|
||||
AC_MSG_CHECKING([for ccache])
|
||||
AC_MSG_RESULT([explicitly disabled])
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -123,11 +123,17 @@ if test "x$SYS_ROOT" != "x/"; then
|
||||
if test "x$x_includes" = xNONE; then
|
||||
if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
|
||||
x_includes="$SYS_ROOT/usr/X11R6/include"
|
||||
elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
|
||||
x_includes="$SYS_ROOT/usr/include"
|
||||
fi
|
||||
fi
|
||||
if test "x$x_libraries" = xNONE; then
|
||||
if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
|
||||
x_libraries="$SYS_ROOT/usr/X11R6/lib"
|
||||
elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
|
||||
x_libraries="$SYS_ROOT/usr/lib64"
|
||||
elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then
|
||||
x_libraries="$SYS_ROOT/usr/lib"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@ -153,8 +159,7 @@ fi
|
||||
if test "x$OPENJDK_TARGET_OS" = xlinux; then
|
||||
if test -d "$SYS_ROOT/usr/X11R6"; then
|
||||
OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
|
||||
fi
|
||||
if test -d "$SYS_ROOT/usr/include/X11"; then
|
||||
elif test -d "$SYS_ROOT/usr/include/X11"; then
|
||||
OPENWIN_HOME="$SYS_ROOT/usr"
|
||||
fi
|
||||
fi
|
||||
@ -359,12 +364,12 @@ else
|
||||
if test "x$FREETYPE2_FOUND" = xno; then
|
||||
AC_MSG_CHECKING([for freetype in some standard locations])
|
||||
|
||||
if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then
|
||||
DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include"
|
||||
DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype"
|
||||
if test -s $SYS_ROOT/usr/X11/include/ft2build.h && test -d $SYS_ROOT/usr/X11/include/freetype2/freetype; then
|
||||
DEFAULT_FREETYPE_CFLAGS="-I$SYS_ROOT/usr/X11/include/freetype2 -I$SYS_ROOT/usr/X11/include"
|
||||
DEFAULT_FREETYPE_LIBS="-L$SYS_ROOT/usr/X11/lib -lfreetype"
|
||||
fi
|
||||
if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then
|
||||
DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2"
|
||||
if test -s $SYS_ROOT/usr/include/ft2build.h && test -d $SYS_ROOT/usr/include/freetype2/freetype; then
|
||||
DEFAULT_FREETYPE_CFLAGS="-I$SYS_ROOT/usr/include/freetype2"
|
||||
DEFAULT_FREETYPE_LIBS="-lfreetype"
|
||||
fi
|
||||
|
||||
|
@ -275,6 +275,8 @@ FREETYPE2_LIBS:=@FREETYPE2_LIBS@
|
||||
FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
|
||||
USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
|
||||
CUPS_CFLAGS:=@CUPS_CFLAGS@
|
||||
ALSA_LIBS:=@ALSA_LIBS@
|
||||
ALSA_CFLAGS:=@ALSA_CFLAGS@
|
||||
|
||||
PACKAGE_PATH=@PACKAGE_PATH@
|
||||
|
||||
@ -508,6 +510,7 @@ TAR:=@TAR@
|
||||
TAIL:=@TAIL@
|
||||
TEE:=@TEE@
|
||||
TIME:=@TIME@
|
||||
IS_GNU_TIME:=@IS_GNU_TIME@
|
||||
TR:=@TR@
|
||||
TOUCH:=@TOUCH@
|
||||
UNIQ:=@UNIQ@
|
||||
|
@ -47,7 +47,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_COMPILER_VERSION],
|
||||
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
|
||||
# First line typically looks something like:
|
||||
# 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_VENDOR="Microsoft CL.EXE"
|
||||
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.
|
||||
ORG_CFLAGS="$CFLAGS"
|
||||
ORG_CXXFLAGS="$CXXFLAGS"
|
||||
@ -378,17 +369,20 @@ AS_IF([test "x$OPENJDK_TARGET_OS" = xwindows], [
|
||||
AS_IF([test "x$VARIANT" = xOPT], [
|
||||
RC_FLAGS="$RC_FLAGS -d NDEBUG"
|
||||
])
|
||||
JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
|
||||
AS_IF([test "x$JDK_UPDATE_VERSION" = x], [
|
||||
JDK_UPDATE_VERSION_NOTNULL=0
|
||||
])
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
|
||||
RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
|
||||
|
||||
# The version variables used to create RC_FLAGS may be overridden
|
||||
# in a custom configure script, or possibly the command line.
|
||||
# Let those variables be expanded at make time in spec.gmk.
|
||||
# The \$ are escaped to the shell, and the $(...) variables
|
||||
# are evaluated by make.
|
||||
RC_FLAGS="$RC_FLAGS \
|
||||
-d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
|
||||
-d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
|
||||
-d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
|
||||
-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.
|
||||
AC_CHECK_PROG([WINAR], [lib],[lib],,,)
|
||||
@ -629,7 +623,6 @@ CXX_FLAG_DEPS="-MMD -MF"
|
||||
|
||||
case $COMPILER_TYPE in
|
||||
CC )
|
||||
D_FLAG="-g"
|
||||
case $COMPILER_NAME in
|
||||
gcc )
|
||||
case $OPENJDK_TARGET_OS in
|
||||
@ -644,17 +637,17 @@ case $COMPILER_TYPE in
|
||||
C_O_FLAG_HI="-O3"
|
||||
C_O_FLAG_NORM="-O2"
|
||||
C_O_FLAG_NONE="-O0"
|
||||
CFLAGS_DEBUG_SYMBOLS="-g"
|
||||
CXXFLAGS_DEBUG_SYMBOLS="-g"
|
||||
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
|
||||
CFLAGS_DEBUG_SYMBOLS="-g1"
|
||||
CXXFLAGS_DEBUG_SYMBOLS="-g1"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
CXX_O_FLAG_HI="$C_O_FLAG_HI"
|
||||
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
|
||||
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
|
||||
CFLAGS_DEBUG_SYMBOLS="-g"
|
||||
CXXFLAGS_DEBUG_SYMBOLS="-g"
|
||||
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
|
||||
CFLAGS_DEBUG_SYMBOLS="-g1"
|
||||
CXXFLAGS_DEBUG_SYMBOLS="-g1"
|
||||
fi
|
||||
;;
|
||||
ossc )
|
||||
#
|
||||
@ -735,7 +728,6 @@ case $COMPILER_TYPE in
|
||||
esac
|
||||
;;
|
||||
CL )
|
||||
D_FLAG=
|
||||
C_O_FLAG_HIGHEST="-O2"
|
||||
C_O_FLAG_HI="-O1"
|
||||
C_O_FLAG_NORM="-O1"
|
||||
@ -861,6 +853,28 @@ esac
|
||||
|
||||
###############################################################################
|
||||
|
||||
# Adjust flags according to debug level.
|
||||
case $DEBUG_LEVEL in
|
||||
fastdebug )
|
||||
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
|
||||
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
|
||||
C_O_FLAG_HI="$C_O_FLAG_NORM"
|
||||
C_O_FLAG_NORM="$C_O_FLAG_NORM"
|
||||
CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
|
||||
CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
|
||||
JAVAC_FLAGS="$JAVAC_FLAGS -g"
|
||||
;;
|
||||
slowdebug )
|
||||
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
|
||||
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
|
||||
C_O_FLAG_HI="$C_O_FLAG_NONE"
|
||||
C_O_FLAG_NORM="$C_O_FLAG_NONE"
|
||||
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
|
||||
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
|
||||
JAVAC_FLAGS="$JAVAC_FLAGS -g"
|
||||
;;
|
||||
esac
|
||||
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
|
||||
|
||||
# The package path is used only on macosx?
|
||||
@ -1004,23 +1018,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Adjust flags according to debug level.
|
||||
case $DEBUG_LEVEL in
|
||||
fastdebug )
|
||||
CFLAGS="$CFLAGS $D_FLAG"
|
||||
JAVAC_FLAGS="$JAVAC_FLAGS -g"
|
||||
;;
|
||||
slowdebug )
|
||||
CFLAGS="$CFLAGS $D_FLAG"
|
||||
C_O_FLAG_HI="$C_O_FLAG_NONE"
|
||||
C_O_FLAG_NORM="$C_O_FLAG_NONE"
|
||||
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
|
||||
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
|
||||
JAVAC_FLAGS="$JAVAC_FLAGS -g"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
AC_SUBST(CFLAGS_JDKLIB)
|
||||
AC_SUBST(CFLAGS_JDKEXE)
|
||||
|
||||
|
@ -208,6 +208,8 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
|
||||
# Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
|
||||
VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
|
||||
VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
|
||||
# Remove any paths containing # (typically F#) as that messes up make
|
||||
PATH=`$ECHO "$PATH" | $SED 's/[[^:#]]*#[^:]*://g'`
|
||||
VS_PATH="$PATH"
|
||||
AC_SUBST(VS_INCLUDE)
|
||||
AC_SUBST(VS_LIB)
|
||||
|
@ -155,7 +155,7 @@ define SetupArchive
|
||||
# lines, but not here for use in make dependencies.
|
||||
$1_DEPS+=$$(subst \,,$$(foreach src,$$($1_SRCS),$$(addprefix $$(src)/,$$($1_EXTRA_FILES))))
|
||||
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
|
||||
|
||||
@ -255,12 +255,21 @@ define SetupZipArchive
|
||||
$(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))
|
||||
|
||||
# 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.
|
||||
$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),)
|
||||
$1_SRC_INCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_INCLUDES))))
|
||||
ifneq ($$($1_SUFFIXES),)
|
||||
$1_ZIP_INCLUDES := $$(foreach s,$$($1_SUFFIXES),\
|
||||
$$(addprefix -i$(SPACE)$(DQUOTE),$$(addsuffix /*$$s$(DQUOTE),$$($1_INCLUDES))))
|
||||
@ -269,12 +278,8 @@ define SetupZipArchive
|
||||
endif
|
||||
endif
|
||||
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))
|
||||
endif
|
||||
ifneq ($$($1_SRC_INCLUDES),)
|
||||
$1_ALL_SRCS := $$(filter $$($1_SRC_INCLUDES),$$($1_ALL_SRCS))
|
||||
endif
|
||||
ifneq ($$($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)))
|
||||
|
@ -183,7 +183,7 @@ bootcycle-images-only: start-make
|
||||
test: images test-only
|
||||
test-only: start-make
|
||||
@$(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)
|
||||
|
||||
# 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
|
||||
@$(MKDIR) -p $(@D)
|
||||
@$(RM) $@
|
||||
@$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@)
|
||||
@$(call GetSourceTips)
|
||||
|
||||
|
||||
# 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
|
||||
# For each target executed, will print
|
||||
# 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).
|
||||
OLD_SHELL:=$$(SHELL)
|
||||
WRAPPER_SHELL:=$$(OLD_SHELL) $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(TIME),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log $$(OLD_SHELL)
|
||||
# but with a limit of 20 on <ALL NEWER PREREQUISITES>, to avoid cluttering logs too much
|
||||
# (and causing a crash on Cygwin).
|
||||
# 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)
|
||||
endif
|
||||
# Never remove warning messages; this is just for completeness
|
||||
|
@ -108,7 +108,11 @@ define add_native_source
|
||||
# setting -showIncludes, all included files are printed. These are filtered out and
|
||||
# parsed into make dependences.
|
||||
ifeq ($(COMPILER_TYPE),CL)
|
||||
$$($1_$2_COMP) $$($1_$2_FLAGS) -showIncludes $$($1_$2_DEBUG_OUT_FLAGS) $(CC_OUT_OPTION)$$($1_$2_OBJ) $2 | $(TEE) $$($1_$2_DEP).raw | $(GREP) -v "^Note: including file:"
|
||||
($$($1_$2_COMP) $$($1_$2_FLAGS) -showIncludes $$($1_$2_DEBUG_OUT_FLAGS) \
|
||||
$(CC_OUT_OPTION)$$($1_$2_OBJ) $2 ; echo $$$$? > $$($1_$2_DEP).exitvalue) \
|
||||
| $(TEE) $$($1_$2_DEP).raw | $(GREP) -v "^Note: including file:" \
|
||||
&& exit `cat $$($1_$2_DEP).exitvalue`
|
||||
$(RM) $$($1_$2_DEP).exitvalue
|
||||
($(ECHO) $$@: \\ \
|
||||
&& $(SED) -e '/^Note: including file:/!d' \
|
||||
-e 's|Note: including file: *||' \
|
||||
|
123
common/makefiles/devkit/Makefile
Normal file
123
common/makefiles/devkit/Makefile
Normal file
@ -0,0 +1,123 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
##########################################################################################
|
||||
#
|
||||
# This Makefile, together with Tools.gmk, can be used to compile a set of
|
||||
# gcc based cross compilation, portable, self contained packages, capable
|
||||
# of building OpenJDK.
|
||||
#
|
||||
# In addition to the makefiles, access to Oracle Linux installation
|
||||
# media is required. This has been tested against Oracle Enterprise Linux
|
||||
# 5.5. Set variables RPM_DIR_x86_64 and RPM_DIR_i686 respectively to point
|
||||
# to directory containing the RPMs.
|
||||
#
|
||||
# By default this Makefile will build crosstools for:
|
||||
# * i686-unknown-linux-gnu
|
||||
# * x86_64-unknown-linux-gnu
|
||||
# The x86_64 version of the compilers will work in multi arch mode and will
|
||||
# be able to compile 32bit binaries with the -m32 flag. This makes the
|
||||
# explicit cross compiler for i686 somewhat redundant and is a known issue.
|
||||
#
|
||||
# To build the full set of crosstools, use a command line looking like this:
|
||||
#
|
||||
# make tars RPM_DIR_x86_64=/tmp/oel55-x86_64/Server/ RPM_DIR_i686=/tmp/oel55-i686/Server/
|
||||
#
|
||||
# To create a x86_64 package without the redundant i686 cross compiler, do
|
||||
# like this:
|
||||
#
|
||||
# make tars platforms=x86_64-unknown-linux-gnu RPM_DIR_x86_64=/tmp/oel55-x86_64/Server/ RPM_DIR_i686=/tmp/oel55-i686/Server/
|
||||
|
||||
#
|
||||
# Main makefile which iterates over all host and target platforms.
|
||||
#
|
||||
|
||||
os := $(shell uname -o)
|
||||
cpu := x86_64
|
||||
#$(shell uname -p)
|
||||
|
||||
#
|
||||
# This wrapper script can handle exactly these platforms
|
||||
#
|
||||
platforms := $(foreach p,x86_64 i686,$(p)-unknown-linux-gnu)
|
||||
#platforms := $(foreach p,x86_64,$(p)-unknown-linux-gnu)
|
||||
|
||||
# Figure out what platform this is building on.
|
||||
me := $(cpu)-$(if $(findstring Linux,$(os)),unknown-linux-gnu)
|
||||
|
||||
$(info Building on platform $(me))
|
||||
|
||||
all compile : $(platforms)
|
||||
|
||||
ifeq (,$(SKIP_ME))
|
||||
$(foreach p,$(filter-out $(me),$(platforms)),$(eval $(p) : $$(me)))
|
||||
endif
|
||||
|
||||
OUTPUT_ROOT = $(abspath ../../../build/devkit)
|
||||
RESULT = $(OUTPUT_ROOT)/result
|
||||
|
||||
submakevars = HOST=$@ BUILD=$(me) \
|
||||
RESULT=$(RESULT) PREFIX=$(RESULT)/$@ \
|
||||
OUTPUT_ROOT=$(OUTPUT_ROOT)
|
||||
$(platforms) :
|
||||
@echo 'Building compilers for $@'
|
||||
@echo 'Targets: $(platforms)'
|
||||
for p in $@ $(filter-out $@,$(platforms)); do \
|
||||
$(MAKE) -f Tools.gmk all $(submakevars) \
|
||||
TARGET=$$p || exit 1 ; \
|
||||
done
|
||||
@echo 'Building ccache program for $@'
|
||||
$(MAKE) -f Tools.gmk ccache $(submakevars) TARGET=$@
|
||||
@echo 'All done"'
|
||||
|
||||
$(foreach a,i686 x86_64,$(eval $(a) : $(filter $(a)%,$(platforms))))
|
||||
|
||||
ia32 : i686
|
||||
today := $(shell date +%Y%m%d)
|
||||
|
||||
|
||||
define Mktar
|
||||
$(1)_tar = $$(RESULT)/sdk-$(1)-$$(today).tar.gz
|
||||
$$($(1)_tar) : PLATFORM = $(1)
|
||||
TARFILES += $$($(1)_tar)
|
||||
$$($(1)_tar) : $(1) $$(shell find $$(RESULT)/$(1))
|
||||
endef
|
||||
|
||||
$(foreach p,$(platforms),$(eval $(call Mktar,$(p))))
|
||||
|
||||
tars : all $(TARFILES)
|
||||
onlytars : $(TARFILES)
|
||||
%.tar.gz :
|
||||
@echo 'Creating compiler package $@'
|
||||
cd $(RESULT)/$(PLATFORM) && tar -czf $@ *
|
||||
touch $@
|
||||
|
||||
clean :
|
||||
rm -rf build result
|
||||
|
||||
FORCE :
|
||||
.PHONY : $(configs) $(platforms)
|
||||
|
||||
|
473
common/makefiles/devkit/Tools.gmk
Normal file
473
common/makefiles/devkit/Tools.gmk
Normal file
@ -0,0 +1,473 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
##########################################################################################
|
||||
#
|
||||
# Workhorse makefile for creating ONE cross compiler
|
||||
# Needs either to be from BUILD -> BUILD OR have
|
||||
# BUILD -> HOST prebuilt
|
||||
#
|
||||
# NOTE: There is a bug here. We don't limit the
|
||||
# PATH when building BUILD -> BUILD, which means that
|
||||
# if you configure after you've once build the BUILD->BUILD
|
||||
# compiler THAT one will be picked up as the compiler for itself.
|
||||
# This is not so great, especially if you did a partial delete
|
||||
# of the target tree.
|
||||
#
|
||||
# Fix this...
|
||||
#
|
||||
|
||||
$(info TARGET=$(TARGET))
|
||||
$(info HOST=$(HOST))
|
||||
$(info BUILD=$(BUILD))
|
||||
|
||||
ARCH := $(word 1,$(subst -, ,$(TARGET)))
|
||||
|
||||
##########################################################################################
|
||||
# Define external dependencies
|
||||
|
||||
# Latest that could be made to work.
|
||||
gcc_ver := gcc-4.7.3
|
||||
binutils_ver := binutils-2.22
|
||||
ccache_ver := ccache-3.1.9
|
||||
mpfr_ver := mpfr-3.0.1
|
||||
gmp_ver := gmp-4.3.2
|
||||
mpc_ver := mpc-1.0.1
|
||||
|
||||
GCC := http://ftp.gnu.org/pub/gnu/gcc/$(gcc_ver)/$(gcc_ver).tar.bz2
|
||||
BINUTILS := http://ftp.gnu.org/pub/gnu/binutils/$(binutils_ver).tar.bz2
|
||||
CCACHE := http://samba.org/ftp/ccache/$(ccache_ver).tar.gz
|
||||
MPFR := http://www.mpfr.org/${mpfr_ver}/${mpfr_ver}.tar.bz2
|
||||
GMP := http://ftp.gnu.org/pub/gnu/gmp/${gmp_ver}.tar.bz2
|
||||
MPC := http://www.multiprecision.org/mpc/download/${mpc_ver}.tar.gz
|
||||
|
||||
# RPMs in OEL5.5
|
||||
RPM_LIST := \
|
||||
kernel-headers \
|
||||
glibc-2 glibc-headers glibc-devel \
|
||||
cups-libs cups-devel \
|
||||
libX11 libX11-devel \
|
||||
xorg-x11-proto-devel \
|
||||
alsa-lib alsa-lib-devel \
|
||||
libXext libXext-devel \
|
||||
libXtst libXtst-devel \
|
||||
libXrender libXrender-devel \
|
||||
freetype freetype-devel \
|
||||
libXt libXt-devel \
|
||||
libSM libSM-devel \
|
||||
libICE libICE-devel \
|
||||
libXi libXi-devel \
|
||||
libXdmcp libXdmcp-devel \
|
||||
libXau libXau-devel \
|
||||
libgcc
|
||||
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
RPM_DIR ?= $(RPM_DIR_x86_64)
|
||||
RPM_ARCHS := x86_64
|
||||
ifeq ($(BUILD),$(HOST))
|
||||
ifeq ($(TARGET),$(HOST))
|
||||
# When building the native compiler for x86_64, enable mixed mode.
|
||||
RPM_ARCHS += i386 i686
|
||||
endif
|
||||
endif
|
||||
else
|
||||
RPM_DIR ?= $(RPM_DIR_i686)
|
||||
RPM_ARCHS := i386 i686
|
||||
endif
|
||||
|
||||
# Sort to remove duplicates
|
||||
RPM_FILE_LIST := $(sort $(foreach a,$(RPM_ARCHS),$(wildcard $(patsubst %,$(RPM_DIR)/%*$a.rpm,$(RPM_LIST)))))
|
||||
|
||||
ifeq ($(RPM_FILE_LIST),)
|
||||
$(error Found no RPMs, RPM_DIR must point to list of directories to search for RPMs)
|
||||
endif
|
||||
|
||||
##########################################################################################
|
||||
# Define common directories and files
|
||||
|
||||
# Ensure we have 32-bit libs also for x64. We enable mixed-mode.
|
||||
ifeq (x86_64,$(ARCH))
|
||||
LIBDIRS := lib64 lib
|
||||
CFLAGS_lib := -m32
|
||||
else
|
||||
LIBDIRS := lib
|
||||
endif
|
||||
|
||||
# Define directories
|
||||
RESULT := $(OUTPUT_ROOT)/result
|
||||
BUILDDIR := $(OUTPUT_ROOT)/$(HOST)/$(TARGET)
|
||||
PREFIX := $(RESULT)/$(HOST)
|
||||
TARGETDIR := $(PREFIX)/$(TARGET)
|
||||
SYSROOT := $(TARGETDIR)/sys-root
|
||||
DOWNLOAD := $(OUTPUT_ROOT)/download
|
||||
SRCDIR := $(OUTPUT_ROOT)/src
|
||||
|
||||
# Marker file for unpacking rpms
|
||||
rpms := $(SYSROOT)/rpms_unpacked
|
||||
|
||||
# Need to patch libs that are linker scripts to use non-absolute paths
|
||||
libs := $(SYSROOT)/libs_patched
|
||||
|
||||
##########################################################################################
|
||||
# Unpack source packages
|
||||
|
||||
# Generate downloading + unpacking of sources.
|
||||
define Download
|
||||
$(1)_DIR = $(abspath $(SRCDIR)/$(basename $(basename $(notdir $($(1))))))
|
||||
$(1)_CFG = $$($(1)_DIR)/configure
|
||||
$(1)_FILE = $(DOWNLOAD)/$(notdir $($(1)))
|
||||
|
||||
$$($(1)_CFG) : $$($(1)_FILE)
|
||||
mkdir -p $$(SRCDIR)
|
||||
tar -C $$(SRCDIR) -x$$(if $$(findstring .gz, $$<),z,j)f $$<
|
||||
$$(foreach p,$$(abspath $$(wildcard $$(notdir $$($(1)_DIR)).patch)), \
|
||||
echo PATCHING $$(p) ; \
|
||||
patch -d $$($(1)_DIR) -p1 -i $$(p) ; \
|
||||
)
|
||||
touch $$@
|
||||
|
||||
$$($(1)_FILE) :
|
||||
wget -P $(DOWNLOAD) $$($(1))
|
||||
endef
|
||||
|
||||
# Download and unpack all source packages
|
||||
$(foreach p,GCC BINUTILS CCACHE MPFR GMP MPC,$(eval $(call Download,$(p))))
|
||||
|
||||
##########################################################################################
|
||||
# Unpack RPMS
|
||||
|
||||
# Note. For building linux you should install rpm2cpio.
|
||||
define unrpm
|
||||
$(SYSROOT)/$(notdir $(1)).unpacked \
|
||||
: $(1)
|
||||
$$(rpms) : $(SYSROOT)/$(notdir $(1)).unpacked
|
||||
endef
|
||||
|
||||
%.unpacked :
|
||||
$(info Unpacking target rpms and libraries from $<)
|
||||
@(mkdir -p $(@D); \
|
||||
cd $(@D); \
|
||||
rpm2cpio $< | \
|
||||
cpio --extract --make-directories \
|
||||
-f \
|
||||
"./usr/share/doc/*" \
|
||||
"./usr/share/man/*" \
|
||||
"./usr/X11R6/man/*" \
|
||||
"*/X11/locale/*" \
|
||||
|| die ; )
|
||||
touch $@
|
||||
|
||||
$(foreach p,$(RPM_FILE_LIST),$(eval $(call unrpm,$(p))))
|
||||
|
||||
##########################################################################################
|
||||
|
||||
# Note: MUST create a <sys-root>/usr/lib even if not really needed.
|
||||
# gcc will use a path relative to it to resolve lib64. (x86_64).
|
||||
# we're creating multi-lib compiler with 32bit libc as well, so we should
|
||||
# have it anyway, but just to make sure...
|
||||
# Patch libc.so and libpthread.so to force linking against libraries in sysroot
|
||||
# and not the ones installed on the build machine.
|
||||
$(libs) : $(rpms)
|
||||
@echo Patching libc and pthreads
|
||||
@(for f in `find $(SYSROOT) -name libc.so -o -name libpthread.so`; do \
|
||||
(cat $$f | sed -e 's|/usr/lib64/||g' \
|
||||
-e 's|/usr/lib/||g' \
|
||||
-e 's|/lib64/||g' \
|
||||
-e 's|/lib/||g' ) > $$f.tmp ; \
|
||||
mv $$f.tmp $$f ; \
|
||||
done)
|
||||
@mkdir -p $(SYSROOT)/usr/lib
|
||||
@touch $@
|
||||
|
||||
##########################################################################################
|
||||
|
||||
# Define marker files for each source package to be compiled
|
||||
$(foreach t,binutils mpfr gmp mpc gcc ccache,$(eval $(t) = $(TARGETDIR)/$($(t)_ver).done))
|
||||
|
||||
##########################################################################################
|
||||
|
||||
# Default base config
|
||||
CONFIG = --target=$(TARGET) \
|
||||
--host=$(HOST) --build=$(BUILD) \
|
||||
--prefix=$(PREFIX)
|
||||
|
||||
PATHEXT = $(RESULT)/$(BUILD)/bin:
|
||||
|
||||
PATHPRE = PATH=$(PATHEXT)$(PATH)
|
||||
BUILDPAR = -j16
|
||||
|
||||
# Default commands to when making
|
||||
MAKECMD =
|
||||
INSTALLCMD = install
|
||||
|
||||
|
||||
declare_tools = CC$(1)=$(2)gcc LD$(1)=$(2)ld AR$(1)=$(2)ar AS$(1)=$(2)as RANLIB$(1)=$(2)ranlib CXX$(1)=$(2)g++ OBJDUMP$(1)=$(2)objdump
|
||||
|
||||
ifeq ($(HOST),$(BUILD))
|
||||
ifeq ($(HOST),$(TARGET))
|
||||
TOOLS = $(call declare_tools,_FOR_TARGET,)
|
||||
endif
|
||||
endif
|
||||
|
||||
TOOLS ?= $(call declare_tools,_FOR_TARGET,$(TARGET)-)
|
||||
|
||||
##########################################################################################
|
||||
|
||||
# Create a TARGET bfd + libiberty only.
|
||||
# Configure one or two times depending on mulitlib arch.
|
||||
# If multilib, the second should be 32-bit, and we resolve
|
||||
# CFLAG_<name> to most likely -m32.
|
||||
define mk_bfd
|
||||
$$(info Libs for $(1))
|
||||
$$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile \
|
||||
: CFLAGS += $$(CFLAGS_$(1))
|
||||
$$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile \
|
||||
: LIBDIRS = --libdir=$(TARGETDIR)/$(1)
|
||||
|
||||
bfdlib += $$(TARGETDIR)/$$(binutils_ver)-$(subst /,-,$(1)).done
|
||||
bfdmakes += $$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile
|
||||
endef
|
||||
|
||||
# Create one set of bfds etc for each multilib arch
|
||||
$(foreach l,$(LIBDIRS),$(eval $(call mk_bfd,$(l))))
|
||||
|
||||
# Only build these two libs.
|
||||
$(bfdlib) : MAKECMD = all-libiberty all-bfd
|
||||
$(bfdlib) : INSTALLCMD = install-libiberty install-bfd
|
||||
|
||||
# Building targets libbfd + libiberty. HOST==TARGET, i.e not
|
||||
# for a cross env.
|
||||
$(bfdmakes) : CONFIG = --target=$(TARGET) \
|
||||
--host=$(TARGET) --build=$(BUILD) \
|
||||
--prefix=$(TARGETDIR) \
|
||||
--with-sysroot=$(SYSROOT) \
|
||||
$(LIBDIRS)
|
||||
|
||||
$(bfdmakes) : TOOLS = $(call declare_tools,_FOR_TARGET,$(TARGET)-) $(call declare_tools,,$(TARGET)-)
|
||||
|
||||
##########################################################################################
|
||||
|
||||
$(gcc) \
|
||||
$(binutils) \
|
||||
$(gmp) \
|
||||
$(mpfr) \
|
||||
$(mpc) \
|
||||
$(bfdmakes) \
|
||||
$(ccache) : ENVS += $(TOOLS)
|
||||
|
||||
# libdir to work around hateful bfd stuff installing into wrong dirs...
|
||||
# ensure we have 64 bit bfd support in the HOST library. I.e our
|
||||
# compiler on i686 will know 64 bit symbols, BUT later
|
||||
# we build just the libs again for TARGET, then with whatever the arch
|
||||
# wants.
|
||||
$(BUILDDIR)/$(binutils_ver)/Makefile : CONFIG += --enable-64-bit-bfd --libdir=$(PREFIX)/$(word 1,$(LIBDIRS))
|
||||
|
||||
# Makefile creation. Simply run configure in build dir.
|
||||
$(bfdmakes) \
|
||||
$(BUILDDIR)/$(binutils_ver)/Makefile \
|
||||
: $(BINUTILS_CFG)
|
||||
$(info Configuring $@. Log in $(@D)/log.config)
|
||||
@mkdir -p $(@D)
|
||||
( \
|
||||
cd $(@D) ; \
|
||||
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
|
||||
$(BINUTILS_CFG) \
|
||||
$(CONFIG) \
|
||||
--with-sysroot=$(SYSROOT) \
|
||||
--disable-nls \
|
||||
--program-prefix=$(TARGET)- \
|
||||
--enable-multilib \
|
||||
) > $(@D)/log.config 2>&1
|
||||
@echo 'done'
|
||||
|
||||
$(BUILDDIR)/$(mpfr_ver)/Makefile \
|
||||
: $(MPFR_CFG)
|
||||
$(info Configuring $@. Log in $(@D)/log.config)
|
||||
@mkdir -p $(@D)
|
||||
( \
|
||||
cd $(@D) ; \
|
||||
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
|
||||
$(MPFR_CFG) \
|
||||
$(CONFIG) \
|
||||
--program-prefix=$(TARGET)- \
|
||||
--enable-shared=no \
|
||||
--with-gmp=$(PREFIX) \
|
||||
) > $(@D)/log.config 2>&1
|
||||
@echo 'done'
|
||||
|
||||
$(BUILDDIR)/$(gmp_ver)/Makefile \
|
||||
: $(GMP_CFG)
|
||||
$(info Configuring $@. Log in $(@D)/log.config)
|
||||
@mkdir -p $(@D)
|
||||
( \
|
||||
cd $(@D) ; \
|
||||
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
|
||||
$(GMP_CFG) \
|
||||
--host=$(HOST) --build=$(BUILD) \
|
||||
--prefix=$(PREFIX) \
|
||||
--disable-nls \
|
||||
--program-prefix=$(TARGET)- \
|
||||
--enable-shared=no \
|
||||
--with-mpfr=$(PREFIX) \
|
||||
) > $(@D)/log.config 2>&1
|
||||
@echo 'done'
|
||||
|
||||
$(BUILDDIR)/$(mpc_ver)/Makefile \
|
||||
: $(MPC_CFG)
|
||||
$(info Configuring $@. Log in $(@D)/log.config)
|
||||
@mkdir -p $(@D)
|
||||
( \
|
||||
cd $(@D) ; \
|
||||
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
|
||||
$(MPC_CFG) \
|
||||
$(CONFIG) \
|
||||
--program-prefix=$(TARGET)- \
|
||||
--enable-shared=no \
|
||||
--with-mpfr=$(PREFIX) \
|
||||
--with-gmp=$(PREFIX) \
|
||||
) > $(@D)/log.config 2>&1
|
||||
@echo 'done'
|
||||
|
||||
# Only valid if glibc target -> linux
|
||||
# proper destructor handling for c++
|
||||
ifneq (,$(findstring linux,$(TARGET)))
|
||||
$(BUILDDIR)/$(gcc_ver)/Makefile : CONFIG += --enable-__cxa_atexit
|
||||
endif
|
||||
|
||||
# Want:
|
||||
# c,c++
|
||||
# shared libs
|
||||
# multilib (-m32/-m64 on x64)
|
||||
# skip native language.
|
||||
# and link and assemble with the binutils we created
|
||||
# earlier, so --with-gnu*
|
||||
$(BUILDDIR)/$(gcc_ver)/Makefile \
|
||||
: $(GCC_CFG)
|
||||
$(info Configuring $@. Log in $(@D)/log.config)
|
||||
mkdir -p $(@D)
|
||||
( \
|
||||
cd $(@D) ; \
|
||||
$(PATHPRE) $(ENVS) $(GCC_CFG) $(EXTRA_CFLAGS) \
|
||||
$(CONFIG) \
|
||||
--with-sysroot=$(SYSROOT) \
|
||||
--enable-languages=c,c++ \
|
||||
--enable-shared \
|
||||
--enable-multilib \
|
||||
--disable-nls \
|
||||
--with-gnu-as \
|
||||
--with-gnu-ld \
|
||||
--with-mpfr=$(PREFIX) \
|
||||
--with-gmp=$(PREFIX) \
|
||||
--with-mpc=$(PREFIX) \
|
||||
) > $(@D)/log.config 2>&1
|
||||
@echo 'done'
|
||||
|
||||
# need binutils for gcc
|
||||
$(gcc) : $(binutils)
|
||||
|
||||
# as of 4.3 or so need these for doing config
|
||||
$(BUILDDIR)/$(gcc_ver)/Makefile : $(gmp) $(mpfr) $(mpc)
|
||||
$(mpfr) : $(gmp)
|
||||
$(mpc) : $(gmp) $(mpfr)
|
||||
|
||||
##########################################################################################
|
||||
# very straightforward. just build a ccache. it is only for host.
|
||||
$(BUILDDIR)/$(ccache_ver)/Makefile \
|
||||
: $(CCACHE_CFG)
|
||||
$(info Configuring $@. Log in $(@D)/log.config)
|
||||
@mkdir -p $(@D)
|
||||
@( \
|
||||
cd $(@D) ; \
|
||||
$(PATHPRE) $(ENVS) $(CCACHE_CFG) \
|
||||
$(CONFIG) \
|
||||
) > $(@D)/log.config 2>&1
|
||||
@echo 'done'
|
||||
|
||||
gccpatch = $(TARGETDIR)/gcc-patched
|
||||
|
||||
##########################################################################################
|
||||
# For some reason cpp is not created as a target-compiler
|
||||
ifeq ($(HOST),$(TARGET))
|
||||
$(gccpatch) : $(gcc) link_libs
|
||||
@echo -n 'Creating compiler symlinks...'
|
||||
@for f in cpp; do \
|
||||
if [ ! -e $(PREFIX)/bin/$(TARGET)-$$f ];\
|
||||
then \
|
||||
cd $(PREFIX)/bin && \
|
||||
ln -s $$f $(TARGET)-$$f ; \
|
||||
fi \
|
||||
done
|
||||
@touch $@
|
||||
@echo 'done'
|
||||
|
||||
##########################################################################################
|
||||
# Ugly at best. Seems that when we compile host->host compiler, that are NOT
|
||||
# the BUILD compiler, the result will not try searching for libs in package root.
|
||||
# "Solve" this by create links from the target libdirs to where they are.
|
||||
link_libs:
|
||||
@echo -n 'Creating library symlinks...'
|
||||
@$(foreach l,$(LIBDIRS), \
|
||||
for f in `cd $(PREFIX)/$(l) && ls`; do \
|
||||
if [ ! -e $(TARGETDIR)/$(l)/$$f ]; then \
|
||||
mkdir -p $(TARGETDIR)/$(l) && \
|
||||
cd $(TARGETDIR)/$(l)/ && \
|
||||
ln -s $(if $(findstring /,$(l)),../,)../../$(l)/$$f $$f; \
|
||||
fi \
|
||||
done;)
|
||||
@echo 'done'
|
||||
else
|
||||
$(gccpatch) :
|
||||
@echo 'done'
|
||||
endif
|
||||
|
||||
##########################################################################################
|
||||
# Build in two steps.
|
||||
# make <default>
|
||||
# make install.
|
||||
# Use path to our build hosts cross tools
|
||||
# Always need to build cross tools for build host self.
|
||||
$(TARGETDIR)/%.done : $(BUILDDIR)/%/Makefile
|
||||
$(info Building $(basename $@). Log in $(<D)/log.build)
|
||||
$(PATHPRE) $(ENVS) $(MAKE) $(BUILDPAR) -f $< -C $(<D) $(MAKECMD) $(MAKECMD.$(notdir $@)) > $(<D)/log.build 2>&1
|
||||
@echo -n 'installing...'
|
||||
$(PATHPRE) $(MAKE) $(INSTALLPAR) -f $< -C $(<D) $(INSTALLCMD) $(MAKECMD.$(notdir $@)) > $(<D)/log.install 2>&1
|
||||
@touch $@
|
||||
@echo 'done'
|
||||
|
||||
##########################################################################################
|
||||
|
||||
bfdlib : $(bfdlib)
|
||||
binutils : $(binutils)
|
||||
rpms : $(rpms)
|
||||
libs : $(libs)
|
||||
sysroot : rpms libs
|
||||
gcc : sysroot $(gcc) $(gccpatch)
|
||||
all : binutils gcc bfdlib
|
||||
|
||||
# this is only built for host. so separate.
|
||||
ccache : $(ccache)
|
||||
|
||||
.PHONY : gcc all binutils bfdlib link_libs rpms libs sysroot
|
@ -215,3 +215,7 @@ c8286839d0df04aba819ec4bef12b86babccf30e jdk8-b90
|
||||
8f7ffb296385f85a4a6d53f9f2d4a7b13a8fa1ff jdk8-b91
|
||||
717aa26f8e0a1c0e768aebb3a763aca56db0c83e jdk8-b92
|
||||
8dc9d7ccbb2d77fd89bc321bb02e67c152aca257 jdk8-b93
|
||||
22f5d7f261d9d61a953d2d9a53f2e9ce0ca361d1 jdk8-b94
|
||||
2cf36f43df36137980d9828cec27003ec10daeee jdk8-b95
|
||||
3357c2776431d51a8de326a85e0f41420e40774f jdk8-b96
|
||||
469995a8e97424f450c880606d689bf345277b19 jdk8-b97
|
||||
|
@ -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.
|
||||
#
|
||||
# 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/ORBConstants.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/RepositoryIdFactory.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.
|
||||
*
|
||||
* 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.orbutil.ORBConstants;
|
||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
||||
import com.sun.corba.se.impl.orbutil.ORBUtility;
|
||||
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.
|
||||
*
|
||||
* 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.math.BigDecimal;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.util.List ;
|
||||
import java.util.ArrayList ;
|
||||
|
||||
@ -504,7 +506,13 @@ public class AnyImpl extends Any
|
||||
public org.omg.CORBA.portable.OutputStream 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.
|
||||
*
|
||||
* 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) {
|
||||
TypeCodeOutputStream tcos = new TypeCodeOutputStream((ORB)orb);
|
||||
TypeCodeOutputStream tcos =
|
||||
sun.corba.OutputStreamFactory.newTypeCodeOutputStream(orb);
|
||||
//if (debug) System.out.println("Created TypeCodeOutputStream " + tcos +
|
||||
// " with no parent");
|
||||
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.
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
public class IDLJavaSerializationOutputStream extends CDROutputStreamBase {
|
||||
final class IDLJavaSerializationOutputStream extends CDROutputStreamBase {
|
||||
|
||||
private ORB orb;
|
||||
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.
|
||||
*
|
||||
* 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) {
|
||||
TypeCodeOutputStream encap = new TypeCodeOutputStream((ORB)_orb, isLittleEndian());
|
||||
TypeCodeOutputStream encap =
|
||||
sun.corba.OutputStreamFactory.newTypeCodeOutputStream((ORB)_orb, isLittleEndian());
|
||||
encap.setEnclosingOutputStream(this);
|
||||
encap.makeEncapsulation();
|
||||
//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) {
|
||||
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);
|
||||
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + tos + " with parent " + os);
|
||||
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.
|
||||
*
|
||||
* 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.
|
||||
|
||||
// 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 );
|
||||
|
||||
// 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.
|
||||
*
|
||||
* 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.OMGSystemException;
|
||||
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.ORBUtility;
|
||||
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.
|
||||
*
|
||||
* 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.orbutil.ORBUtility;
|
||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
||||
|
||||
import com.sun.corba.se.impl.util.RepositoryId;
|
||||
|
||||
import com.sun.corba.se.impl.logging.InterceptorsSystemException;
|
||||
import com.sun.corba.se.impl.logging.OMGSystemException;
|
||||
|
||||
import sun.corba.SharedSecrets;
|
||||
|
||||
/**
|
||||
* Implementation of the RequestInfo interface as specified in
|
||||
* orbos/99-12-02 section 5.4.1.
|
||||
@ -452,7 +453,8 @@ public abstract class RequestInfoImpl
|
||||
|
||||
// Find the read method on the helper class:
|
||||
String helperClassName = className + "Helper";
|
||||
Class helperClass = ORBClassLoader.loadClass( helperClassName );
|
||||
Class<?> helperClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass( helperClassName );
|
||||
Class[] readParams = new Class[1];
|
||||
readParams[0] = org.omg.CORBA.portable.InputStream.class;
|
||||
Method readMethod = helperClass.getMethod( "read", readParams );
|
||||
@ -512,7 +514,8 @@ public abstract class RequestInfoImpl
|
||||
Class exceptionClass = userException.getClass();
|
||||
String className = exceptionClass.getName();
|
||||
String helperClassName = className + "Helper";
|
||||
Class helperClass = ORBClassLoader.loadClass( helperClassName );
|
||||
Class<?> helperClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass( helperClassName );
|
||||
|
||||
// Find insert( Any, class ) method
|
||||
Class[] insertMethodParams = new Class[2];
|
||||
@ -656,7 +659,8 @@ public abstract class RequestInfoImpl
|
||||
// Convert the "core" service context to an
|
||||
// "IOP" ServiceContext by writing it to a
|
||||
// CDROutputStream and reading it back.
|
||||
EncapsOutputStream out = new EncapsOutputStream(myORB);
|
||||
EncapsOutputStream out =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(myORB);
|
||||
|
||||
context.write( out, GIOPVersion.V1_2 );
|
||||
InputStream inputStream = out.create_input_stream();
|
||||
@ -692,8 +696,8 @@ public abstract class RequestInfoImpl
|
||||
{
|
||||
int id = 0 ;
|
||||
// Convert IOP.service_context to core.ServiceContext:
|
||||
EncapsOutputStream outputStream = new EncapsOutputStream(
|
||||
myORB );
|
||||
EncapsOutputStream outputStream =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(myORB);
|
||||
InputStream inputStream = null;
|
||||
UnknownServiceContext coreServiceContext = null;
|
||||
ServiceContextHelper.write( outputStream, service_context );
|
||||
|
@ -300,11 +300,11 @@ public class IIOPInputStream
|
||||
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;
|
||||
}
|
||||
|
||||
public final org.omg.CORBA_2_3.portable.InputStream getOrbStream() {
|
||||
final org.omg.CORBA_2_3.portable.InputStream getOrbStream() {
|
||||
return orbStream;
|
||||
}
|
||||
|
||||
@ -327,11 +327,11 @@ public class IIOPInputStream
|
||||
return (javax.rmi.CORBA.ValueHandler) vhandler;
|
||||
}
|
||||
|
||||
public final void increaseRecursionDepth(){
|
||||
final void increaseRecursionDepth(){
|
||||
recursionDepth++;
|
||||
}
|
||||
|
||||
public final int decreaseRecursionDepth(){
|
||||
final int decreaseRecursionDepth(){
|
||||
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.
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
public final org.omg.CORBA_2_3.portable.OutputStream getOrbStream() {
|
||||
final org.omg.CORBA_2_3.portable.OutputStream getOrbStream() {
|
||||
return orbStream;
|
||||
}
|
||||
|
||||
public final void increaseRecursionDepth(){
|
||||
final void increaseRecursionDepth(){
|
||||
recursionDepth++;
|
||||
}
|
||||
|
||||
public final int decreaseRecursionDepth(){
|
||||
final int decreaseRecursionDepth(){
|
||||
return --recursionDepth;
|
||||
}
|
||||
|
||||
|
@ -251,7 +251,7 @@ public abstract class InputStreamHook extends ObjectInputStream
|
||||
}
|
||||
|
||||
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
|
||||
protected static class ReadObjectState {
|
||||
|
@ -179,7 +179,7 @@ public abstract class OutputStreamHook extends ObjectOutputStream
|
||||
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();
|
||||
|
||||
|
@ -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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -98,6 +98,14 @@ public class ValueUtility {
|
||||
public ValueHandlerImpl newValueHandlerImpl() {
|
||||
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,
|
||||
OutputStream os )
|
||||
{
|
||||
EncapsOutputStream out = new EncapsOutputStream( (ORB)os.orb() ) ;
|
||||
EncapsOutputStream out =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)os.orb());
|
||||
|
||||
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.
|
||||
*
|
||||
* 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()
|
||||
{
|
||||
EncapsOutputStream os = new EncapsOutputStream( orb ) ;
|
||||
EncapsOutputStream os =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(orb);
|
||||
write( os ) ;
|
||||
InputStream is = (InputStream)(os.create_input_stream()) ;
|
||||
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.
|
||||
*
|
||||
* 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;
|
||||
|
||||
MarshalOutputStream s = new EncapsOutputStream(factory);
|
||||
MarshalOutputStream s =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
|
||||
s.putEndian();
|
||||
write( (OutputStream)s );
|
||||
bs = new StringWriter();
|
||||
@ -237,7 +238,8 @@ public class IORImpl extends IdentifiableContainerBase implements IOR
|
||||
}
|
||||
|
||||
public org.omg.IOP.IOR getIOPIOR() {
|
||||
EncapsOutputStream os = new EncapsOutputStream(factory);
|
||||
EncapsOutputStream os =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
|
||||
write(os);
|
||||
InputStream is = (InputStream) (os.create_input_stream());
|
||||
return org.omg.IOP.IORHelper.read(is);
|
||||
|
@ -87,7 +87,8 @@ public class ObjectKeyImpl implements ObjectKey
|
||||
|
||||
public byte[] getBytes( org.omg.CORBA.ORB orb )
|
||||
{
|
||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
|
||||
EncapsOutputStream os =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
|
||||
write( os ) ;
|
||||
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.
|
||||
*
|
||||
* 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,
|
||||
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 ) ;
|
||||
InputStream is = (InputStream)(os.create_input_stream() ) ;
|
||||
// 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.
|
||||
*
|
||||
* 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()
|
||||
{
|
||||
EncapsOutputStream os = new EncapsOutputStream( orb ) ;
|
||||
EncapsOutputStream os =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(orb);
|
||||
os.write_long( getId() ) ;
|
||||
write( os ) ;
|
||||
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.
|
||||
*
|
||||
* 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!
|
||||
|
||||
// Use the byte order of the given stream
|
||||
OutputStream encapsulatedOS = new EncapsOutputStream( (ORB)os.orb(),
|
||||
((CDROutputStream)os).isLittleEndian() ) ;
|
||||
OutputStream encapsulatedOS =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream(
|
||||
(ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;
|
||||
|
||||
okeyTemplate.write( id, encapsulatedOS ) ;
|
||||
EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;
|
||||
|
@ -147,6 +147,14 @@ public class StubDelegateImpl implements javax.rmi.CORBA.StubDelegate
|
||||
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
|
||||
* 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.
|
||||
*
|
||||
* 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.IdentityHashtable;
|
||||
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.spi.logging.CORBALogDomains;
|
||||
import sun.corba.SharedSecrets;
|
||||
import sun.corba.JavaCorbaAccess;
|
||||
|
||||
|
||||
/**
|
||||
* 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);
|
||||
} else if (ex instanceof ACTIVITY_REQUIRED) {
|
||||
try {
|
||||
Class cl = ORBClassLoader.loadClass(
|
||||
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
|
||||
"javax.activity.ActivityRequiredException");
|
||||
Class[] params = new Class[2];
|
||||
params[0] = java.lang.String.class;
|
||||
@ -279,7 +276,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
|
||||
}
|
||||
} else if (ex instanceof ACTIVITY_COMPLETED) {
|
||||
try {
|
||||
Class cl = ORBClassLoader.loadClass(
|
||||
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
|
||||
"javax.activity.ActivityCompletedException");
|
||||
Class[] params = new Class[2];
|
||||
params[0] = java.lang.String.class;
|
||||
@ -295,7 +292,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
|
||||
}
|
||||
} else if (ex instanceof INVALID_ACTIVITY) {
|
||||
try {
|
||||
Class cl = ORBClassLoader.loadClass(
|
||||
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
|
||||
"javax.activity.InvalidActivityException");
|
||||
Class[] params = new Class[2];
|
||||
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.
|
||||
*
|
||||
* 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.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.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.
|
||||
*
|
||||
* 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.DelegateImpl;
|
||||
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.ORBUtility;
|
||||
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()
|
||||
{
|
||||
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.
|
||||
*
|
||||
* 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() {
|
||||
return new EncapsOutputStream(this);
|
||||
return sun.corba.OutputStreamFactory.newEncapsOutputStream(this);
|
||||
}
|
||||
|
||||
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.
|
||||
*
|
||||
* 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.logging.ORBUtilSystemException ;
|
||||
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.protocol.giopmsgheaders.KeyAddr ;
|
||||
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.DefaultSocketFactoryImpl;
|
||||
|
||||
import sun.corba.SharedSecrets;
|
||||
|
||||
/** Initialize the parser data for the standard ORB parser. This is used both
|
||||
* to implement ORBDataParserImpl and to provide the basic testing framework
|
||||
* for ORBDataParserImpl.
|
||||
@ -455,6 +456,10 @@ public class ParserTable {
|
||||
return other instanceof TestBadServerIdHandler ;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void handle( ObjectKey objectKey )
|
||||
{
|
||||
}
|
||||
@ -518,6 +523,10 @@ public class ParserTable {
|
||||
return other instanceof TestLegacyORBSocketFactory ;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public ServerSocket createServerSocket( String type, int port )
|
||||
{
|
||||
return null ;
|
||||
@ -543,6 +552,10 @@ public class ParserTable {
|
||||
return other instanceof TestORBSocketFactory ;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void setORB(ORB orb)
|
||||
{
|
||||
}
|
||||
@ -572,6 +585,10 @@ public class ParserTable {
|
||||
return other instanceof TestIORToSocketInfo;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public List getSocketInfo(IOR ior)
|
||||
{
|
||||
return null;
|
||||
@ -608,6 +625,10 @@ public class ParserTable {
|
||||
return other instanceof TestContactInfoListFactory;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void setORB(ORB orb) { }
|
||||
|
||||
public CorbaContactInfoList create( IOR ior ) { return null; }
|
||||
@ -640,8 +661,8 @@ public class ParserTable {
|
||||
String param = (String)value ;
|
||||
|
||||
try {
|
||||
Class legacySocketFactoryClass =
|
||||
ORBClassLoader.loadClass(param);
|
||||
Class<?> legacySocketFactoryClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||
// For security reasons avoid creating an instance if
|
||||
// this socket factory class is not one that would fail
|
||||
// the class cast anyway.
|
||||
@ -670,7 +691,8 @@ public class ParserTable {
|
||||
String param = (String)value ;
|
||||
|
||||
try {
|
||||
Class socketFactoryClass = ORBClassLoader.loadClass(param);
|
||||
Class<?> socketFactoryClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||
// For security reasons avoid creating an instance if
|
||||
// this socket factory class is not one that would fail
|
||||
// the class cast anyway.
|
||||
@ -699,7 +721,8 @@ public class ParserTable {
|
||||
String param = (String)value ;
|
||||
|
||||
try {
|
||||
Class iorToSocketInfoClass = ORBClassLoader.loadClass(param);
|
||||
Class<?> iorToSocketInfoClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||
// For security reasons avoid creating an instance if
|
||||
// this socket factory class is not one that would fail
|
||||
// the class cast anyway.
|
||||
@ -728,7 +751,8 @@ public class ParserTable {
|
||||
String param = (String)value ;
|
||||
|
||||
try {
|
||||
Class iiopPrimaryToContactInfoClass = ORBClassLoader.loadClass(param);
|
||||
Class<?> iiopPrimaryToContactInfoClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||
// For security reasons avoid creating an instance if
|
||||
// this socket factory class is not one that would fail
|
||||
// the class cast anyway.
|
||||
@ -757,8 +781,8 @@ public class ParserTable {
|
||||
String param = (String)value ;
|
||||
|
||||
try {
|
||||
Class contactInfoListFactoryClass =
|
||||
ORBClassLoader.loadClass(param);
|
||||
Class<?> contactInfoListFactoryClass =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass(param);
|
||||
// For security reasons avoid creating an instance if
|
||||
// this socket factory class is not one that would fail
|
||||
// the class cast anyway.
|
||||
@ -865,6 +889,10 @@ public class ParserTable {
|
||||
return other instanceof TestORBInitializer1 ;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void pre_init( ORBInitInfo info )
|
||||
{
|
||||
}
|
||||
@ -882,6 +910,10 @@ public class ParserTable {
|
||||
return other instanceof TestORBInitializer2 ;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void pre_init( ORBInitInfo info )
|
||||
{
|
||||
}
|
||||
@ -950,6 +982,8 @@ public class ParserTable {
|
||||
{
|
||||
return other instanceof TestAcceptor1 ;
|
||||
}
|
||||
|
||||
public int hashCode() { return 1; }
|
||||
public boolean initialize() { return true; }
|
||||
public boolean initialized() { return true; }
|
||||
public String getConnectionCacheType() { return "FOO"; }
|
||||
@ -981,6 +1015,7 @@ public class ParserTable {
|
||||
{
|
||||
return other instanceof TestAcceptor2 ;
|
||||
}
|
||||
public int hashCode() { return 1; }
|
||||
public boolean initialize() { return true; }
|
||||
public boolean initialized() { return true; }
|
||||
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.
|
||||
*
|
||||
* 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.ior.iiop.JavaSerializationComponent;
|
||||
|
||||
import sun.corba.SharedSecrets;
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
String name = classNameOf(strm.read_string());
|
||||
SystemException ex
|
||||
= (SystemException)ORBClassLoader.loadClass(name).newInstance();
|
||||
SystemException ex = (SystemException)SharedSecrets.
|
||||
getJavaCorbaAccess().loadClass(name).newInstance();
|
||||
ex.minor = strm.read_long();
|
||||
ex.completed = CompletionStatus.from_int(strm.read_long());
|
||||
return ex;
|
||||
|
@ -151,7 +151,9 @@ public final class RepIdDelegator
|
||||
}
|
||||
|
||||
// Constructor used for factory/utility cases
|
||||
public RepIdDelegator() {}
|
||||
public RepIdDelegator() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
// Constructor used by getIdFromString. All non-static
|
||||
// RepositoryId methods will use the provided delegate.
|
||||
@ -159,7 +161,7 @@ public final class RepIdDelegator
|
||||
this.delegate = _delegate;
|
||||
}
|
||||
|
||||
private RepositoryId delegate;
|
||||
private final RepositoryId delegate;
|
||||
|
||||
public String toString() {
|
||||
if (delegate != null)
|
||||
@ -174,4 +176,12 @@ public final class RepIdDelegator
|
||||
else
|
||||
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
|
||||
|
||||
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.baddef=\uC798\uBABB\uB41C \uC11C\uBC84 \uC815\uC758: {0}
|
||||
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.
|
||||
*
|
||||
* 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)) {
|
||||
// locate msgs 1.0 & 1.1 :=> grow,
|
||||
// REVISIT - build from factory
|
||||
outputObject = new CDROutputObject(
|
||||
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
|
||||
(ORB) messageMediator.getBroker(),
|
||||
this,
|
||||
GIOPVersion.V1_0,
|
||||
@ -1804,8 +1803,7 @@ public class CorbaMessageMediatorImpl
|
||||
ORBConstants.STREAM_FORMAT_VERSION_1);
|
||||
} else {
|
||||
// 1.2 :=> stream
|
||||
// REVISIT - build from factory
|
||||
outputObject = new CDROutputObject(
|
||||
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
|
||||
(ORB) messageMediator.getBroker(),
|
||||
messageMediator,
|
||||
reply,
|
||||
@ -1959,7 +1957,8 @@ public class CorbaMessageMediatorImpl
|
||||
ReplyMessage.NEEDS_ADDRESSING_MODE,
|
||||
null, null);
|
||||
// REVISIT: via acceptor factory.
|
||||
CDROutputObject outputObject = new CDROutputObject(
|
||||
CDROutputObject outputObject =
|
||||
sun.corba.OutputStreamFactory.newCDROutputObject(
|
||||
(ORB)messageMediator.getBroker(),
|
||||
this,
|
||||
messageMediator.getGIOPVersion(),
|
||||
@ -2126,7 +2125,7 @@ public class CorbaMessageMediatorImpl
|
||||
ex.printStackTrace(pw);
|
||||
pw.flush(); // NOTE: you must flush or baos will be empty.
|
||||
EncapsOutputStream encapsOutputStream =
|
||||
new EncapsOutputStream((ORB)mediator.getBroker());
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)mediator.getBroker());
|
||||
encapsOutputStream.putEndian();
|
||||
encapsOutputStream.write_wstring(baos.toString());
|
||||
UnknownServiceContext serviceContext =
|
||||
@ -2203,12 +2202,11 @@ public class CorbaMessageMediatorImpl
|
||||
// REVISIT = do not use null.
|
||||
//
|
||||
if (messageMediator.getConnection() == null) {
|
||||
// REVISIT - needs factory
|
||||
replyOutputObject =
|
||||
new CDROutputObject(orb, messageMediator,
|
||||
messageMediator.getReplyHeader(),
|
||||
messageMediator.getStreamFormatVersion(),
|
||||
BufferManagerFactory.GROW);
|
||||
sun.corba.OutputStreamFactory.newCDROutputObject(orb,
|
||||
messageMediator, messageMediator.getReplyHeader(),
|
||||
messageMediator.getStreamFormatVersion(),
|
||||
BufferManagerFactory.GROW);
|
||||
} else {
|
||||
replyOutputObject = messageMediator.getConnection().getAcceptor()
|
||||
.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.
|
||||
*
|
||||
* 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.ORBConstants;
|
||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
|
||||
|
||||
import com.sun.corba.se.spi.logging.CORBALogDomains ;
|
||||
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.
|
||||
*
|
||||
* 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.orbutil.ORBUtility;
|
||||
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 sun.corba.SharedSecrets;
|
||||
|
||||
/**
|
||||
* 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
|
||||
@ -909,7 +910,8 @@ public abstract class MessageBase implements Message{
|
||||
SystemException sysEx = null;
|
||||
|
||||
try {
|
||||
Class clazz = ORBClassLoader.loadClass(exClassName);
|
||||
Class<?> clazz =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass(exClassName);
|
||||
if (message == null) {
|
||||
sysEx = (SystemException) clazz.newInstance();
|
||||
} 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.
|
||||
*
|
||||
* 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.ior.iiop.GIOPVersion;
|
||||
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.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.
|
||||
*
|
||||
* 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.ior.iiop.GIOPVersion;
|
||||
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.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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -214,7 +214,7 @@ public abstract class CorbaContactInfoBase
|
||||
messageMediator;
|
||||
|
||||
OutputObject outputObject =
|
||||
new CDROutputObject(orb, messageMediator,
|
||||
sun.corba.OutputStreamFactory.newCDROutputObject(orb, messageMediator,
|
||||
corbaMessageMediator.getRequestHeader(),
|
||||
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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -134,7 +134,7 @@ public class SharedCDRContactInfoImpl
|
||||
messageMediator;
|
||||
// NOTE: GROW.
|
||||
OutputObject outputObject =
|
||||
new CDROutputObject(orb, messageMediator,
|
||||
sun.corba.OutputStreamFactory.newCDROutputObject(orb, messageMediator,
|
||||
corbaMessageMediator.getRequestHeader(),
|
||||
corbaMessageMediator.getStreamFormatVersion(),
|
||||
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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -534,9 +534,9 @@ public class SocketOrChannelAcceptorImpl
|
||||
{
|
||||
CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
|
||||
messageMediator;
|
||||
return new CDROutputObject((ORB) broker, corbaMessageMediator,
|
||||
corbaMessageMediator.getReplyHeader(),
|
||||
corbaMessageMediator.getStreamFormatVersion());
|
||||
return sun.corba.OutputStreamFactory.newCDROutputObject((ORB) broker,
|
||||
corbaMessageMediator, corbaMessageMediator.getReplyHeader(),
|
||||
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.
|
||||
*
|
||||
* 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.
|
||||
CDROutputObject outputObject =
|
||||
new CDROutputObject((ORB)orb, null, giopVersion, this, msg,
|
||||
ORBConstants.STREAM_FORMAT_VERSION_1);
|
||||
sun.corba.OutputStreamFactory.newCDROutputObject((ORB)orb, null, giopVersion,
|
||||
this, msg, ORBConstants.STREAM_FORMAT_VERSION_1);
|
||||
msg.write(outputObject);
|
||||
|
||||
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.
|
||||
*
|
||||
* 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(
|
||||
org.omg.CORBA.ORB orb )
|
||||
{
|
||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
|
||||
EncapsOutputStream os =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
|
||||
write( os ) ;
|
||||
InputStream is = (InputStream)(os.create_input_stream() ) ;
|
||||
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.
|
||||
*
|
||||
* 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.orbutil.ORBClassLoader ;
|
||||
import sun.awt.AppContext;
|
||||
import sun.corba.SharedSecrets;
|
||||
|
||||
public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
|
||||
implements Broker, TypeCodeFactory
|
||||
@ -201,7 +201,7 @@ public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
|
||||
|
||||
try {
|
||||
// First try the configured class name, if any
|
||||
Class cls = ORBClassLoader.loadClass( className ) ;
|
||||
Class<?> cls = SharedSecrets.getJavaCorbaAccess().loadClass( className ) ;
|
||||
sff = (PresentationManager.StubFactoryFactory)cls.newInstance() ;
|
||||
} catch (Exception exc) {
|
||||
// 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.
|
||||
*
|
||||
* 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.impl.logging.ORBUtilSystemException ;
|
||||
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
|
||||
import com.sun.corba.se.impl.orbutil.ObjectUtility ;
|
||||
|
||||
import sun.corba.SharedSecrets;
|
||||
|
||||
/** This is a static factory class for commonly used operations
|
||||
* for property parsing. The following operations are supported:
|
||||
* <ul>
|
||||
@ -247,7 +248,8 @@ public abstract class OperationFactory {
|
||||
String className = getString( value ) ;
|
||||
|
||||
try {
|
||||
Class result = ORBClassLoader.loadClass( className ) ;
|
||||
Class<?> result =
|
||||
SharedSecrets.getJavaCorbaAccess().loadClass( className ) ;
|
||||
return result ;
|
||||
} catch (Exception exc) {
|
||||
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.
|
||||
*
|
||||
* 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
|
||||
{
|
||||
EncapsOutputStream os = new EncapsOutputStream( (ORB)(s.orb()), gv ) ;
|
||||
EncapsOutputStream os =
|
||||
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)(s.orb()), gv);
|
||||
os.putEndian() ;
|
||||
writeData( os ) ;
|
||||
byte[] data = os.toByteArray() ;
|
||||
|
@ -64,7 +64,7 @@
|
||||
#
|
||||
# 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.generating=\u6B63\u5728\u751F\u6210 %0
|
||||
Compile.genDone=\u5B8C\u6210 - %0
|
||||
@ -165,7 +165,7 @@ Token.identifier=<\u6807\u8BC6\u7B26>
|
||||
Token.endOfFile=EOF
|
||||
Token.unknown=?
|
||||
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
|
||||
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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,6 +31,10 @@
|
||||
|
||||
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
|
||||
* 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 {
|
||||
|
||||
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.
|
||||
* @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.
|
||||
*
|
||||
* 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 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;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Vector;
|
||||
import sun.tools.java.Identifier;
|
||||
import sun.tools.java.ClassNotFound;
|
||||
@ -1851,6 +1852,10 @@ public abstract class CompoundType extends Type {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return getName().hashCode() ^ Arrays.hashCode(arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a new Method object that is a legal combination of
|
||||
* this method object and another one.
|
||||
|
@ -349,3 +349,13 @@ b19517cecc2e91636d7c16ba2f35e3d3dc628099 hs25-b33
|
||||
573d86d412cd9d3df7912194c1a540be50e9544e jdk8-b93
|
||||
b786c04b7be15194febe88dc1f0c9443e737a84b hs25-b35
|
||||
3c78a14da19d26d6937af5f98b97e2a21c653b04 hs25-b36
|
||||
1beed1f6f9edefe47ba8ed1355fbd3e7606b8288 jdk8-b94
|
||||
69689078dff8b21e6df30870464f5d736eebdf72 hs25-b37
|
||||
5d65c078cd0ac455aa5e58a09844c7acce54b487 jdk8-b95
|
||||
2cc5a9d1ba66dfdff578918b393c727bd9450210 hs25-b38
|
||||
e6a4b8c71fa6f225bd989a34de2d0d0a656a8be8 jdk8-b96
|
||||
2b9380b0bf0b649f40704735773e8956c2d88ba0 hs25-b39
|
||||
d197d377ab2e016d024e8c86cb06a57bd7eae590 jdk8-b97
|
||||
c9dd82da51ed34a28f7c6b3245163ee962e94572 hs25-b40
|
||||
30b5b75c42ac5174b640fbef8aa87527668e8400 jdk8-b98
|
||||
2b9946e10587f74ef75ae8145bea484df4a2738b hs25-b41
|
||||
|
@ -31,13 +31,19 @@ import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public class CLHSDB {
|
||||
|
||||
public CLHSDB(JVMDebugger d) {
|
||||
jvmDebugger = d;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new CLHSDB(args).run();
|
||||
}
|
||||
|
||||
private void run() {
|
||||
// At this point, if pidText != null we are supposed to attach to it.
|
||||
// Else, if execPath != null, it is the path of a jdk/bin/java
|
||||
public void run() {
|
||||
// If jvmDebugger is already set, we have been given a JVMDebugger.
|
||||
// Otherwise, if pidText != null we are supposed to attach to it.
|
||||
// Finally, if execPath != null, it is the path of a jdk/bin/java
|
||||
// and coreFilename is the pathname of a core file we are
|
||||
// supposed to attach to.
|
||||
|
||||
@ -49,7 +55,9 @@ public class CLHSDB {
|
||||
}
|
||||
});
|
||||
|
||||
if (pidText != null) {
|
||||
if (jvmDebugger != null) {
|
||||
attachDebugger(jvmDebugger);
|
||||
} else if (pidText != null) {
|
||||
attachDebugger(pidText);
|
||||
} else if (execPath != null) {
|
||||
attachDebugger(execPath, coreFilename);
|
||||
@ -96,6 +104,7 @@ public class CLHSDB {
|
||||
// Internals only below this point
|
||||
//
|
||||
private HotSpotAgent agent;
|
||||
private JVMDebugger jvmDebugger;
|
||||
private boolean attached;
|
||||
// These had to be made data members because they are referenced in inner classes.
|
||||
private String pidText;
|
||||
@ -120,7 +129,7 @@ public class CLHSDB {
|
||||
case (1):
|
||||
if (args[0].equals("help") || args[0].equals("-help")) {
|
||||
doUsage();
|
||||
System.exit(0);
|
||||
return;
|
||||
}
|
||||
// If all numbers, it is a PID to attach to
|
||||
// Else, it is a pathname to a .../bin/java for a core file.
|
||||
@ -142,10 +151,15 @@ public class CLHSDB {
|
||||
default:
|
||||
System.out.println("HSDB Error: Too many options specified");
|
||||
doUsage();
|
||||
System.exit(1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void attachDebugger(JVMDebugger d) {
|
||||
agent.attach(d);
|
||||
attached = true;
|
||||
}
|
||||
|
||||
/** NOTE we are in a different thread here than either the main
|
||||
thread or the Swing/AWT event handler thread, so we must be very
|
||||
careful when creating or removing widgets */
|
||||
|
@ -101,6 +101,9 @@ import sun.jvm.hotspot.utilities.soql.JSJavaFactoryImpl;
|
||||
import sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine;
|
||||
|
||||
public class CommandProcessor {
|
||||
|
||||
volatile boolean quit;
|
||||
|
||||
public abstract static class DebuggerInterface {
|
||||
public abstract HotSpotAgent getAgent();
|
||||
public abstract boolean isAttached();
|
||||
@ -1135,7 +1138,7 @@ public class CommandProcessor {
|
||||
usage();
|
||||
} else {
|
||||
debugger.detach();
|
||||
System.exit(0);
|
||||
quit = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1714,7 +1717,7 @@ public class CommandProcessor {
|
||||
}
|
||||
protected void quit() {
|
||||
debugger.detach();
|
||||
System.exit(0);
|
||||
quit = true;
|
||||
}
|
||||
protected BufferedReader getInputReader() {
|
||||
return in;
|
||||
@ -1781,7 +1784,7 @@ public class CommandProcessor {
|
||||
|
||||
public void run(boolean prompt) {
|
||||
// Process interactive commands.
|
||||
while (true) {
|
||||
while (!quit) {
|
||||
if (prompt) printPrompt();
|
||||
String ln = null;
|
||||
try {
|
||||
|
@ -59,8 +59,11 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
// Internals only below this point
|
||||
//
|
||||
private HotSpotAgent agent;
|
||||
private JVMDebugger jvmDebugger;
|
||||
private JDesktopPane desktop;
|
||||
private boolean attached;
|
||||
private boolean argError;
|
||||
private JFrame frame;
|
||||
/** List <JMenuItem> */
|
||||
private java.util.List attachMenuItems;
|
||||
/** List <JMenuItem> */
|
||||
@ -85,6 +88,11 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
System.out.println(" path-to-corefile: Debug this corefile. The default is 'core'");
|
||||
System.out.println(" If no arguments are specified, you can select what to do from the GUI.\n");
|
||||
HotSpotAgent.showUsage();
|
||||
argError = true;
|
||||
}
|
||||
|
||||
public HSDB(JVMDebugger d) {
|
||||
jvmDebugger = d;
|
||||
}
|
||||
|
||||
private HSDB(String[] args) {
|
||||
@ -95,7 +103,6 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
case (1):
|
||||
if (args[0].equals("help") || args[0].equals("-help")) {
|
||||
doUsage();
|
||||
System.exit(0);
|
||||
}
|
||||
// If all numbers, it is a PID to attach to
|
||||
// Else, it is a pathname to a .../bin/java for a core file.
|
||||
@ -117,24 +124,29 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
default:
|
||||
System.out.println("HSDB Error: Too many options specified");
|
||||
doUsage();
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
private void run() {
|
||||
// At this point, if pidText != null we are supposed to attach to it.
|
||||
// Else, if execPath != null, it is the path of a jdk/bin/java
|
||||
// and coreFilename is the pathname of a core file we are
|
||||
// supposed to attach to.
|
||||
// close this tool without calling System.exit
|
||||
protected void closeUI() {
|
||||
workerThread.shutdown();
|
||||
frame.dispose();
|
||||
}
|
||||
|
||||
public void run() {
|
||||
// Don't start the UI if there were bad arguments.
|
||||
if (argError) {
|
||||
return;
|
||||
}
|
||||
|
||||
agent = new HotSpotAgent();
|
||||
workerThread = new WorkerThread();
|
||||
attachMenuItems = new java.util.ArrayList();
|
||||
detachMenuItems = new java.util.ArrayList();
|
||||
|
||||
JFrame frame = new JFrame("HSDB - HotSpot Debugger");
|
||||
frame = new JFrame("HSDB - HotSpot Debugger");
|
||||
frame.setSize(800, 600);
|
||||
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
|
||||
|
||||
JMenuBar menuBar = new JMenuBar();
|
||||
|
||||
@ -197,7 +209,7 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
item = createMenuItem("Exit",
|
||||
new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
System.exit(0);
|
||||
closeUI();
|
||||
}
|
||||
});
|
||||
item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
|
||||
@ -406,7 +418,15 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
}
|
||||
});
|
||||
|
||||
if (pidText != null) {
|
||||
// If jvmDebugger is already set, we have been given a JVMDebugger.
|
||||
// Otherwise, if pidText != null we are supposed to attach to it.
|
||||
// Finally, if execPath != null, it is the path of a jdk/bin/java
|
||||
// and coreFilename is the pathname of a core file we are
|
||||
// supposed to attach to.
|
||||
|
||||
if (jvmDebugger != null) {
|
||||
attach(jvmDebugger);
|
||||
} else if (pidText != null) {
|
||||
attach(pidText);
|
||||
} else if (execPath != null) {
|
||||
attach(execPath, coreFilename);
|
||||
@ -1113,6 +1133,12 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener {
|
||||
});
|
||||
}
|
||||
|
||||
// Attach to existing JVMDebugger, which should be already attached to a core/process.
|
||||
private void attach(JVMDebugger d) {
|
||||
attached = true;
|
||||
showThreadsDialog();
|
||||
}
|
||||
|
||||
/** NOTE we are in a different thread here than either the main
|
||||
thread or the Swing/AWT event handler thread, so we must be very
|
||||
careful when creating or removing widgets */
|
||||
|
@ -25,6 +25,8 @@
|
||||
package sun.jvm.hotspot;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import sun.jvm.hotspot.debugger.Debugger;
|
||||
import sun.jvm.hotspot.debugger.DebuggerException;
|
||||
@ -63,7 +65,6 @@ public class HotSpotAgent {
|
||||
|
||||
private String os;
|
||||
private String cpu;
|
||||
private String fileSep;
|
||||
|
||||
// The system can work in several ways:
|
||||
// - Attaching to local process
|
||||
@ -155,6 +156,14 @@ public class HotSpotAgent {
|
||||
go();
|
||||
}
|
||||
|
||||
/** This uses a JVMDebugger that is already attached to the core or process */
|
||||
public synchronized void attach(JVMDebugger d)
|
||||
throws DebuggerException {
|
||||
debugger = d;
|
||||
isServer = false;
|
||||
go();
|
||||
}
|
||||
|
||||
/** This attaches to a "debug server" on a remote machine; this
|
||||
remote server has already attached to a process or opened a
|
||||
core file and is waiting for RMI calls on the Debugger object to
|
||||
@ -303,28 +312,37 @@ public class HotSpotAgent {
|
||||
// server, but not client attaching to server)
|
||||
//
|
||||
|
||||
try {
|
||||
os = PlatformInfo.getOS();
|
||||
cpu = PlatformInfo.getCPU();
|
||||
}
|
||||
catch (UnsupportedPlatformException e) {
|
||||
throw new DebuggerException(e);
|
||||
}
|
||||
fileSep = System.getProperty("file.separator");
|
||||
// Handle existing or alternate JVMDebugger:
|
||||
// these will set os, cpu independently of our PlatformInfo implementation.
|
||||
String alternateDebugger = System.getProperty("sa.altDebugger");
|
||||
if (debugger != null) {
|
||||
setupDebuggerExisting();
|
||||
|
||||
} else if (alternateDebugger != null) {
|
||||
setupDebuggerAlternate(alternateDebugger);
|
||||
|
||||
if (os.equals("solaris")) {
|
||||
setupDebuggerSolaris();
|
||||
} else if (os.equals("win32")) {
|
||||
setupDebuggerWin32();
|
||||
} else if (os.equals("linux")) {
|
||||
setupDebuggerLinux();
|
||||
} else if (os.equals("bsd")) {
|
||||
setupDebuggerBsd();
|
||||
} else if (os.equals("darwin")) {
|
||||
setupDebuggerDarwin();
|
||||
} else {
|
||||
// Add support for more operating systems here
|
||||
throw new DebuggerException("Operating system " + os + " not yet supported");
|
||||
// Otherwise, os, cpu are those of our current platform:
|
||||
try {
|
||||
os = PlatformInfo.getOS();
|
||||
cpu = PlatformInfo.getCPU();
|
||||
} catch (UnsupportedPlatformException e) {
|
||||
throw new DebuggerException(e);
|
||||
}
|
||||
if (os.equals("solaris")) {
|
||||
setupDebuggerSolaris();
|
||||
} else if (os.equals("win32")) {
|
||||
setupDebuggerWin32();
|
||||
} else if (os.equals("linux")) {
|
||||
setupDebuggerLinux();
|
||||
} else if (os.equals("bsd")) {
|
||||
setupDebuggerBsd();
|
||||
} else if (os.equals("darwin")) {
|
||||
setupDebuggerDarwin();
|
||||
} else {
|
||||
// Add support for more operating systems here
|
||||
throw new DebuggerException("Operating system " + os + " not yet supported");
|
||||
}
|
||||
}
|
||||
|
||||
if (isServer) {
|
||||
@ -423,6 +441,41 @@ public class HotSpotAgent {
|
||||
// OS-specific debugger setup/connect routines
|
||||
//
|
||||
|
||||
// Use the existing JVMDebugger, as passed to our constructor.
|
||||
// Retrieve os and cpu from that debugger, not the current platform.
|
||||
private void setupDebuggerExisting() {
|
||||
|
||||
os = debugger.getOS();
|
||||
cpu = debugger.getCPU();
|
||||
setupJVMLibNames(os);
|
||||
machDesc = debugger.getMachineDescription();
|
||||
}
|
||||
|
||||
// Given a classname, load an alternate implementation of JVMDebugger.
|
||||
private void setupDebuggerAlternate(String alternateName) {
|
||||
|
||||
try {
|
||||
Class c = Class.forName(alternateName);
|
||||
Constructor cons = c.getConstructor();
|
||||
debugger = (JVMDebugger) cons.newInstance();
|
||||
attachDebugger();
|
||||
setupDebuggerExisting();
|
||||
|
||||
} catch (ClassNotFoundException cnfe) {
|
||||
throw new DebuggerException("Cannot find alternate SA Debugger: '" + alternateName + "'");
|
||||
} catch (NoSuchMethodException nsme) {
|
||||
throw new DebuggerException("Alternate SA Debugger: '" + alternateName + "' has missing constructor.");
|
||||
} catch (InstantiationException ie) {
|
||||
throw new DebuggerException("Alternate SA Debugger: '" + alternateName + "' fails to initialise: ", ie);
|
||||
} catch (IllegalAccessException iae) {
|
||||
throw new DebuggerException("Alternate SA Debugger: '" + alternateName + "' fails to initialise: ", iae);
|
||||
} catch (InvocationTargetException iae) {
|
||||
throw new DebuggerException("Alternate SA Debugger: '" + alternateName + "' fails to initialise: ", iae);
|
||||
}
|
||||
|
||||
System.err.println("Loaded alternate HotSpot SA Debugger: " + alternateName);
|
||||
}
|
||||
|
||||
//
|
||||
// Solaris
|
||||
//
|
||||
@ -466,6 +519,11 @@ public class HotSpotAgent {
|
||||
debugger = new RemoteDebuggerClient(remote);
|
||||
machDesc = ((RemoteDebuggerClient) debugger).getMachineDescription();
|
||||
os = debugger.getOS();
|
||||
setupJVMLibNames(os);
|
||||
cpu = debugger.getCPU();
|
||||
}
|
||||
|
||||
private void setupJVMLibNames(String os) {
|
||||
if (os.equals("solaris")) {
|
||||
setupJVMLibNamesSolaris();
|
||||
} else if (os.equals("win32")) {
|
||||
@ -479,8 +537,6 @@ public class HotSpotAgent {
|
||||
} else {
|
||||
throw new RuntimeException("Unknown OS type");
|
||||
}
|
||||
|
||||
cpu = debugger.getCPU();
|
||||
}
|
||||
|
||||
private void setupJVMLibNamesSolaris() {
|
||||
|
@ -26,11 +26,11 @@ package sun.jvm.hotspot.debugger.linux;
|
||||
|
||||
import sun.jvm.hotspot.debugger.*;
|
||||
|
||||
class LinuxAddress implements Address {
|
||||
public class LinuxAddress implements Address {
|
||||
protected LinuxDebugger debugger;
|
||||
protected long addr;
|
||||
|
||||
LinuxAddress(LinuxDebugger debugger, long addr) {
|
||||
public LinuxAddress(LinuxDebugger debugger, long addr) {
|
||||
this.debugger = debugger;
|
||||
this.addr = addr;
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ package sun.jvm.hotspot.debugger.linux;
|
||||
|
||||
import sun.jvm.hotspot.debugger.*;
|
||||
|
||||
class LinuxOopHandle extends LinuxAddress implements OopHandle {
|
||||
LinuxOopHandle(LinuxDebugger debugger, long addr) {
|
||||
public class LinuxOopHandle extends LinuxAddress implements OopHandle {
|
||||
public LinuxOopHandle(LinuxDebugger debugger, long addr) {
|
||||
super(debugger, addr);
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,6 @@ public class ArrayKlass extends Klass {
|
||||
higherDimension = new MetadataField(type.getAddressField("_higher_dimension"), 0);
|
||||
lowerDimension = new MetadataField(type.getAddressField("_lower_dimension"), 0);
|
||||
vtableLen = new CIntField(type.getCIntegerField("_vtable_len"), 0);
|
||||
allocSize = new CIntField(type.getCIntegerField("_alloc_size"), 0);
|
||||
componentMirror = new OopField(type.getOopField("_component_mirror"), 0);
|
||||
javaLangCloneableName = null;
|
||||
javaLangObjectName = null;
|
||||
@ -64,7 +63,6 @@ public class ArrayKlass extends Klass {
|
||||
private static MetadataField higherDimension;
|
||||
private static MetadataField lowerDimension;
|
||||
private static CIntField vtableLen;
|
||||
private static CIntField allocSize;
|
||||
private static OopField componentMirror;
|
||||
|
||||
public Klass getJavaSuper() {
|
||||
@ -76,7 +74,6 @@ public class ArrayKlass extends Klass {
|
||||
public Klass getHigherDimension() { return (Klass) higherDimension.getValue(this); }
|
||||
public Klass getLowerDimension() { return (Klass) lowerDimension.getValue(this); }
|
||||
public long getVtableLen() { return vtableLen.getValue(this); }
|
||||
public long getAllocSize() { return allocSize.getValue(this); }
|
||||
public Oop getComponentMirror() { return componentMirror.getValue(this); }
|
||||
|
||||
// constant class names - javaLangCloneable, javaIoSerializable, javaLangObject
|
||||
@ -147,7 +144,6 @@ public class ArrayKlass extends Klass {
|
||||
visitor.doMetadata(higherDimension, true);
|
||||
visitor.doMetadata(lowerDimension, true);
|
||||
visitor.doCInt(vtableLen, true);
|
||||
visitor.doCInt(allocSize, true);
|
||||
visitor.doOop(componentMirror, true);
|
||||
}
|
||||
}
|
||||
|
@ -57,7 +57,6 @@ public class Klass extends Metadata implements ClassConstants {
|
||||
accessFlags = new CIntField(type.getCIntegerField("_access_flags"), 0);
|
||||
subklass = new MetadataField(type.getAddressField("_subklass"), 0);
|
||||
nextSibling = new MetadataField(type.getAddressField("_next_sibling"), 0);
|
||||
allocCount = new CIntField(type.getCIntegerField("_alloc_count"), 0);
|
||||
|
||||
LH_INSTANCE_SLOW_PATH_BIT = db.lookupIntConstant("Klass::_lh_instance_slow_path_bit").intValue();
|
||||
LH_LOG2_ELEMENT_SIZE_SHIFT = db.lookupIntConstant("Klass::_lh_log2_element_size_shift").intValue();
|
||||
@ -87,7 +86,6 @@ public class Klass extends Metadata implements ClassConstants {
|
||||
private static CIntField accessFlags;
|
||||
private static MetadataField subklass;
|
||||
private static MetadataField nextSibling;
|
||||
private static CIntField allocCount;
|
||||
|
||||
private Address getValue(AddressField field) {
|
||||
return addr.getAddressAt(field.getOffset());
|
||||
@ -108,7 +106,6 @@ public class Klass extends Metadata implements ClassConstants {
|
||||
public AccessFlags getAccessFlagsObj(){ return new AccessFlags(getAccessFlags()); }
|
||||
public Klass getSubklassKlass() { return (Klass) subklass.getValue(this); }
|
||||
public Klass getNextSiblingKlass() { return (Klass) nextSibling.getValue(this); }
|
||||
public long getAllocCount() { return allocCount.getValue(this); }
|
||||
|
||||
// computed access flags - takes care of inner classes etc.
|
||||
// This is closer to actual source level than getAccessFlags() etc.
|
||||
@ -172,7 +169,6 @@ public class Klass extends Metadata implements ClassConstants {
|
||||
visitor.doCInt(accessFlags, true);
|
||||
visitor.doMetadata(subklass, true);
|
||||
visitor.doMetadata(nextSibling, true);
|
||||
visitor.doCInt(allocCount, true);
|
||||
}
|
||||
|
||||
public long getObjectSize() {
|
||||
|
@ -246,7 +246,7 @@ public class VM {
|
||||
}
|
||||
}
|
||||
|
||||
private static final boolean disableDerivedPrinterTableCheck;
|
||||
private static final boolean disableDerivedPointerTableCheck;
|
||||
private static final Properties saProps;
|
||||
|
||||
static {
|
||||
@ -256,12 +256,12 @@ public class VM {
|
||||
url = VM.class.getClassLoader().getResource("sa.properties");
|
||||
saProps.load(new BufferedInputStream(url.openStream()));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Unable to load properties " +
|
||||
System.err.println("Unable to load properties " +
|
||||
(url == null ? "null" : url.toString()) +
|
||||
": " + e.getMessage());
|
||||
}
|
||||
|
||||
disableDerivedPrinterTableCheck = System.getProperty("sun.jvm.hotspot.runtime.VM.disableDerivedPointerTableCheck") != null;
|
||||
disableDerivedPointerTableCheck = System.getProperty("sun.jvm.hotspot.runtime.VM.disableDerivedPointerTableCheck") != null;
|
||||
}
|
||||
|
||||
private VM(TypeDataBase db, JVMDebugger debugger, boolean isBigEndian) {
|
||||
@ -371,7 +371,8 @@ public class VM {
|
||||
/** This is used by the debugging system */
|
||||
public static void initialize(TypeDataBase db, JVMDebugger debugger) {
|
||||
if (soleInstance != null) {
|
||||
throw new RuntimeException("Attempt to initialize VM twice");
|
||||
// Using multiple SA Tool classes in the same process creates a call here.
|
||||
return;
|
||||
}
|
||||
soleInstance = new VM(db, debugger, debugger.getMachineDescription().isBigEndian());
|
||||
|
||||
@ -683,7 +684,7 @@ public class VM {
|
||||
|
||||
/** Returns true if C2 derived pointer table should be used, false otherwise */
|
||||
public boolean useDerivedPointerTable() {
|
||||
return !disableDerivedPrinterTableCheck;
|
||||
return !disableDerivedPointerTableCheck;
|
||||
}
|
||||
|
||||
/** Returns the code cache; should not be used if is core build */
|
||||
|
@ -41,6 +41,14 @@ import sun.jvm.hotspot.utilities.*;
|
||||
public class ClassLoaderStats extends Tool {
|
||||
boolean verbose = true;
|
||||
|
||||
public ClassLoaderStats() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ClassLoaderStats(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
ClassLoaderStats cls = new ClassLoaderStats();
|
||||
cls.start(args);
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.tools.*;
|
||||
|
||||
import sun.jvm.hotspot.oops.*;
|
||||
@ -42,6 +43,15 @@ import java.util.Comparator;
|
||||
* summary of these objects in the form of a histogram.
|
||||
*/
|
||||
public class FinalizerInfo extends Tool {
|
||||
|
||||
public FinalizerInfo() {
|
||||
super();
|
||||
}
|
||||
|
||||
public FinalizerInfo(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
FinalizerInfo finfo = new FinalizerInfo();
|
||||
finfo.start(args);
|
||||
|
@ -25,10 +25,19 @@
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.runtime.*;
|
||||
|
||||
public class FlagDumper extends Tool {
|
||||
|
||||
public FlagDumper() {
|
||||
super();
|
||||
}
|
||||
|
||||
public FlagDumper(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
VM.Flag[] flags = VM.getVM().getCommandLineFlags();
|
||||
PrintStream out = System.out;
|
||||
|
@ -25,6 +25,7 @@
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import sun.jvm.hotspot.utilities.HeapHprofBinWriter;
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import java.io.IOException;
|
||||
|
||||
/*
|
||||
@ -42,6 +43,11 @@ public class HeapDumper extends Tool {
|
||||
this.dumpFile = dumpFile;
|
||||
}
|
||||
|
||||
public HeapDumper(String dumpFile, JVMDebugger d) {
|
||||
super(d);
|
||||
this.dumpFile = dumpFile;
|
||||
}
|
||||
|
||||
protected void printFlagsUsage() {
|
||||
System.out.println(" <no option>\tto dump heap to " +
|
||||
DEFAULT_DUMP_FILE);
|
||||
|
@ -29,12 +29,21 @@ import sun.jvm.hotspot.gc_interface.*;
|
||||
import sun.jvm.hotspot.gc_implementation.g1.*;
|
||||
import sun.jvm.hotspot.gc_implementation.parallelScavenge.*;
|
||||
import sun.jvm.hotspot.gc_implementation.shared.*;
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.memory.*;
|
||||
import sun.jvm.hotspot.oops.*;
|
||||
import sun.jvm.hotspot.runtime.*;
|
||||
|
||||
public class HeapSummary extends Tool {
|
||||
|
||||
public HeapSummary() {
|
||||
super();
|
||||
}
|
||||
|
||||
public HeapSummary(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
HeapSummary hs = new HeapSummary();
|
||||
hs.start(args);
|
||||
|
@ -25,12 +25,21 @@
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import sun.jvm.hotspot.runtime.*;
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
|
||||
public class JInfo extends Tool {
|
||||
public JInfo() {
|
||||
super();
|
||||
}
|
||||
|
||||
public JInfo(int m) {
|
||||
mode = m;
|
||||
}
|
||||
|
||||
public JInfo(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
protected boolean needsJavaPrefix() {
|
||||
return false;
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import java.io.*;
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.utilities.*;
|
||||
|
||||
public class JMap extends Tool {
|
||||
@ -36,6 +37,10 @@ public class JMap extends Tool {
|
||||
this(MODE_PMAP);
|
||||
}
|
||||
|
||||
public JMap(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
protected boolean needsJavaPrefix() {
|
||||
return false;
|
||||
}
|
||||
|
@ -25,9 +25,19 @@
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import java.io.*;
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.runtime.*;
|
||||
|
||||
public class JSnap extends Tool {
|
||||
|
||||
public JSnap() {
|
||||
super();
|
||||
}
|
||||
|
||||
public JSnap(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
final PrintStream out = System.out;
|
||||
if (PerfMemory.initialized()) {
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
package sun.jvm.hotspot.tools;
|
||||
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
|
||||
public class JStack extends Tool {
|
||||
public JStack(boolean mixedMode, boolean concurrentLocks) {
|
||||
this.mixedMode = mixedMode;
|
||||
@ -34,6 +36,10 @@ public class JStack extends Tool {
|
||||
this(true, true);
|
||||
}
|
||||
|
||||
public JStack(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
protected boolean needsJavaPrefix() {
|
||||
return false;
|
||||
}
|
||||
|
@ -33,6 +33,14 @@ import java.io.PrintStream;
|
||||
an object histogram from a remote or crashed VM. */
|
||||
public class ObjectHistogram extends Tool {
|
||||
|
||||
public ObjectHistogram() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ObjectHistogram(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
run(System.out, System.err);
|
||||
}
|
||||
|
@ -31,6 +31,15 @@ import sun.jvm.hotspot.debugger.cdbg.*;
|
||||
import sun.jvm.hotspot.runtime.*;
|
||||
|
||||
public class PMap extends Tool {
|
||||
|
||||
public PMap() {
|
||||
super();
|
||||
}
|
||||
|
||||
public PMap(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
run(System.out);
|
||||
}
|
||||
|
@ -45,6 +45,10 @@ public class PStack extends Tool {
|
||||
this(true, true);
|
||||
}
|
||||
|
||||
public PStack(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
run(System.out);
|
||||
}
|
||||
|
@ -45,6 +45,16 @@ public class StackTrace extends Tool {
|
||||
run(System.out);
|
||||
}
|
||||
|
||||
public StackTrace(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public StackTrace(JVMDebugger d, boolean v, boolean concurrentLocks) {
|
||||
super(d);
|
||||
this.verbose = v;
|
||||
this.concurrentLocks = concurrentLocks;
|
||||
}
|
||||
|
||||
public void run(java.io.PrintStream tty) {
|
||||
// Ready to go with the database...
|
||||
try {
|
||||
|
@ -27,10 +27,19 @@ package sun.jvm.hotspot.tools;
|
||||
import java.io.PrintStream;
|
||||
import java.util.*;
|
||||
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.runtime.*;
|
||||
|
||||
public class SysPropsDumper extends Tool {
|
||||
|
||||
public SysPropsDumper() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SysPropsDumper(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
Properties sysProps = VM.getVM().getSystemProperties();
|
||||
PrintStream out = System.out;
|
||||
|
@ -35,6 +35,7 @@ import sun.jvm.hotspot.debugger.*;
|
||||
|
||||
public abstract class Tool implements Runnable {
|
||||
private HotSpotAgent agent;
|
||||
private JVMDebugger jvmDebugger;
|
||||
private int debugeeType;
|
||||
|
||||
// debugeeType is one of constants below
|
||||
@ -42,6 +43,13 @@ public abstract class Tool implements Runnable {
|
||||
protected static final int DEBUGEE_CORE = 1;
|
||||
protected static final int DEBUGEE_REMOTE = 2;
|
||||
|
||||
public Tool() {
|
||||
}
|
||||
|
||||
public Tool(JVMDebugger d) {
|
||||
jvmDebugger = d;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return getClass().getName();
|
||||
}
|
||||
@ -90,7 +98,6 @@ public abstract class Tool implements Runnable {
|
||||
|
||||
protected void usage() {
|
||||
printUsage();
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -106,13 +113,13 @@ public abstract class Tool implements Runnable {
|
||||
protected void stop() {
|
||||
if (agent != null) {
|
||||
agent.detach();
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
protected void start(String[] args) {
|
||||
if ((args.length < 1) || (args.length > 2)) {
|
||||
usage();
|
||||
return;
|
||||
}
|
||||
|
||||
// Attempt to handle -h or -help or some invalid flag
|
||||
@ -185,13 +192,31 @@ public abstract class Tool implements Runnable {
|
||||
}
|
||||
if (e.getMessage() != null) {
|
||||
err.print(e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
err.println();
|
||||
System.exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
err.println("Debugger attached successfully.");
|
||||
startInternal();
|
||||
}
|
||||
|
||||
// When using an existing JVMDebugger.
|
||||
public void start() {
|
||||
|
||||
if (jvmDebugger == null) {
|
||||
throw new RuntimeException("Tool.start() called with no JVMDebugger set.");
|
||||
}
|
||||
agent = new HotSpotAgent();
|
||||
agent.attach(jvmDebugger);
|
||||
startInternal();
|
||||
}
|
||||
|
||||
// Remains of the start mechanism, common to both start methods.
|
||||
private void startInternal() {
|
||||
|
||||
PrintStream err = System.err;
|
||||
VM vm = VM.getVM();
|
||||
if (vm.isCore()) {
|
||||
err.println("Core build detected.");
|
||||
|
@ -25,6 +25,7 @@
|
||||
package sun.jvm.hotspot.tools.jcore;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.util.jar.JarOutputStream;
|
||||
import java.util.jar.JarEntry;
|
||||
import java.util.jar.Manifest;
|
||||
@ -38,6 +39,16 @@ public class ClassDump extends Tool {
|
||||
private ClassFilter classFilter;
|
||||
private String outputDirectory;
|
||||
private JarOutputStream jarStream;
|
||||
private String pkgList;
|
||||
|
||||
public ClassDump() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ClassDump(JVMDebugger d, String pkgList) {
|
||||
super(d);
|
||||
this.pkgList = pkgList;
|
||||
}
|
||||
|
||||
public void setClassFilter(ClassFilter cf) {
|
||||
classFilter = cf;
|
||||
@ -63,6 +74,25 @@ public class ClassDump extends Tool {
|
||||
public void run() {
|
||||
// Ready to go with the database...
|
||||
try {
|
||||
// The name of the filter always comes from a System property.
|
||||
// If we have a pkgList, pass it, otherwise let the filter read
|
||||
// its own System property for the list of classes.
|
||||
String filterClassName = System.getProperty("sun.jvm.hotspot.tools.jcore.filter",
|
||||
"sun.jvm.hotspot.tools.jcore.PackageNameFilter");
|
||||
try {
|
||||
Class filterClass = Class.forName(filterClassName);
|
||||
if (pkgList == null) {
|
||||
classFilter = (ClassFilter) filterClass.newInstance();
|
||||
} else {
|
||||
Constructor con = filterClass.getConstructor(String.class);
|
||||
classFilter = (ClassFilter) con.newInstance(pkgList);
|
||||
}
|
||||
} catch(Exception exp) {
|
||||
System.err.println("Warning: Can not create class filter!");
|
||||
}
|
||||
|
||||
String outputDirectory = System.getProperty("sun.jvm.hotspot.tools.jcore.outputDir", ".");
|
||||
setOutputDirectory(outputDirectory);
|
||||
|
||||
// walk through the system dictionary
|
||||
SystemDictionary dict = VM.getVM().getSystemDictionary();
|
||||
@ -139,26 +169,8 @@ public class ClassDump extends Tool {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
// load class filters
|
||||
ClassFilter classFilter = null;
|
||||
String filterClassName = System.getProperty("sun.jvm.hotspot.tools.jcore.filter");
|
||||
if (filterClassName != null) {
|
||||
try {
|
||||
Class filterClass = Class.forName(filterClassName);
|
||||
classFilter = (ClassFilter) filterClass.newInstance();
|
||||
} catch(Exception exp) {
|
||||
System.err.println("Warning: Can not create class filter!");
|
||||
}
|
||||
}
|
||||
|
||||
String outputDirectory = System.getProperty("sun.jvm.hotspot.tools.jcore.outputDir");
|
||||
if (outputDirectory == null)
|
||||
outputDirectory = ".";
|
||||
|
||||
|
||||
ClassDump cd = new ClassDump();
|
||||
cd.setClassFilter(classFilter);
|
||||
cd.setOutputDirectory(outputDirectory);
|
||||
cd.start(args);
|
||||
cd.stop();
|
||||
}
|
||||
|
@ -24,12 +24,22 @@
|
||||
|
||||
package sun.jvm.hotspot.tools.soql;
|
||||
|
||||
import sun.jvm.hotspot.debugger.JVMDebugger;
|
||||
import sun.jvm.hotspot.tools.*;
|
||||
import sun.jvm.hotspot.utilities.*;
|
||||
import sun.jvm.hotspot.utilities.soql.*;
|
||||
|
||||
/** This is command line JavaScript debugger console */
|
||||
public class JSDB extends Tool {
|
||||
|
||||
public JSDB() {
|
||||
super();
|
||||
}
|
||||
|
||||
public JSDB(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
JSDB jsdb = new JSDB();
|
||||
jsdb.start(args);
|
||||
|
@ -44,6 +44,14 @@ public class SOQL extends Tool {
|
||||
soql.stop();
|
||||
}
|
||||
|
||||
public SOQL() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SOQL(JVMDebugger d) {
|
||||
super(d);
|
||||
}
|
||||
|
||||
protected SOQLEngine soqlEngine;
|
||||
protected BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
|
||||
protected PrintStream out = System.out;
|
||||
|
@ -486,7 +486,7 @@ $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/%
|
||||
JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi)
|
||||
# export jfr.h
|
||||
ifeq ($JFR_EXISTS,1)
|
||||
$(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/agent/%
|
||||
$(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/%
|
||||
$(install-file)
|
||||
else
|
||||
$(EXPORT_INCLUDE_DIR)/jfr.h:
|
||||
|
@ -7,6 +7,6 @@ else
|
||||
NM=nm
|
||||
fi
|
||||
|
||||
$NM --defined-only $* | awk '
|
||||
{ if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" }
|
||||
$NM -Uj $* | awk '
|
||||
{ if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 }
|
||||
'
|
||||
|
@ -47,6 +47,7 @@
|
||||
# flags.make - with macro settings
|
||||
# vm.make - to support making "$(MAKE) -v vm.make" in makefiles
|
||||
# adlc.make -
|
||||
# trace.make - generate tracing event and type definitions
|
||||
# jvmti.make - generate JVMTI bindings from the spec (JSR-163)
|
||||
# sa.make - generate SA jar file and natives
|
||||
#
|
||||
@ -119,6 +120,7 @@ SIMPLE_DIRS = \
|
||||
$(PLATFORM_DIR)/generated/dependencies \
|
||||
$(PLATFORM_DIR)/generated/adfiles \
|
||||
$(PLATFORM_DIR)/generated/jvmtifiles \
|
||||
$(PLATFORM_DIR)/generated/tracefiles \
|
||||
$(PLATFORM_DIR)/generated/dtracefiles
|
||||
|
||||
TARGETS = debug fastdebug optimized product
|
||||
@ -128,7 +130,7 @@ SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
|
||||
BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
|
||||
|
||||
# dtrace.make is used on BSD versions that implement Dtrace (like MacOS X)
|
||||
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make dtrace.make
|
||||
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make trace.make sa.make dtrace.make
|
||||
|
||||
BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
|
||||
SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
|
||||
@ -331,6 +333,16 @@ jvmti.make: $(BUILDTREE_MAKE)
|
||||
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
|
||||
) > $@
|
||||
|
||||
trace.make: $(BUILDTREE_MAKE)
|
||||
@echo Creating $@ ...
|
||||
$(QUIETLY) ( \
|
||||
$(BUILDTREE_COMMENT); \
|
||||
echo; \
|
||||
echo include flags.make; \
|
||||
echo; \
|
||||
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
|
||||
) > $@
|
||||
|
||||
sa.make: $(BUILDTREE_MAKE)
|
||||
@echo Creating $@ ...
|
||||
$(QUIETLY) ( \
|
||||
|
@ -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.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@ -368,8 +368,8 @@ ifeq ($(OS_VENDOR), Darwin)
|
||||
# Standard linker flags
|
||||
LFLAGS +=
|
||||
|
||||
# Darwin doesn't use ELF and doesn't support version scripts
|
||||
LDNOMAP = true
|
||||
# The apple linker has its own variant of mapfiles/version-scripts
|
||||
MAPFLAG = -Xlinker -exported_symbols_list -Xlinker FILENAME
|
||||
|
||||
# Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
|
||||
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.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
@ -23,273 +19,243 @@
|
||||
# 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.
|
||||
#
|
||||
#
|
||||
#
|
||||
# Only used for OSX/Darwin builds
|
||||
|
||||
# Define public interface.
|
||||
# _JNI
|
||||
_JNI_CreateJavaVM
|
||||
_JNI_GetCreatedJavaVMs
|
||||
_JNI_GetDefaultJavaVMInitArgs
|
||||
|
||||
SUNWprivate_1.1 {
|
||||
global:
|
||||
# JNI
|
||||
JNI_CreateJavaVM;
|
||||
JNI_GetCreatedJavaVMs;
|
||||
JNI_GetDefaultJavaVMInitArgs;
|
||||
# _JVM
|
||||
_JVM_Accept
|
||||
_JVM_ActiveProcessorCount
|
||||
_JVM_AllocateNewArray
|
||||
_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_SetNativeThreadName
|
||||
_JVM_SetPrimitiveArrayElement
|
||||
_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
|
||||
JVM_Accept;
|
||||
JVM_ActiveProcessorCount;
|
||||
JVM_AllocateNewArray;
|
||||
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;
|
||||
# debug _JVM
|
||||
_JVM_AccessVMBooleanFlag
|
||||
_JVM_AccessVMIntFlag
|
||||
_JVM_VMBreakPoint
|
||||
|
||||
# miscellaneous functions
|
||||
jio_fprintf;
|
||||
jio_printf;
|
||||
jio_snprintf;
|
||||
jio_vfprintf;
|
||||
jio_vsnprintf;
|
||||
fork1;
|
||||
numa_warn;
|
||||
numa_error;
|
||||
|
||||
# Needed because there is no JVM interface for this.
|
||||
sysThreadAvailableStackWithSlack;
|
||||
_jio_fprintf
|
||||
_jio_printf
|
||||
_jio_snprintf
|
||||
_jio_vfprintf
|
||||
_jio_vsnprintf
|
||||
|
||||
# This is for Forte Analyzer profiling support.
|
||||
AsyncGetCallTrace;
|
||||
_AsyncGetCallTrace
|
||||
|
||||
# INSERT VTABLE SYMBOLS HERE
|
||||
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user