Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
b5bf76e2
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b5bf76e2
编写于
9月 21, 2011
作者:
M
michaelm
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
72c3a98c
7393bfd3
变更
63
隐藏空白更改
内联
并排
Showing
63 changed file
with
449 addition
and
172 deletion
+449
-172
make/common/Defs-linux.gmk
make/common/Defs-linux.gmk
+52
-0
make/common/Defs-solaris.gmk
make/common/Defs-solaris.gmk
+64
-0
make/java/redist/Makefile
make/java/redist/Makefile
+131
-0
make/java/redist/sajdi/Makefile
make/java/redist/sajdi/Makefile
+11
-0
make/netbeans/README
make/netbeans/README
+18
-27
make/netbeans/common/closed-share-view.ent
make/netbeans/common/closed-share-view.ent
+2
-2
make/netbeans/common/java-data-native.ent
make/netbeans/common/java-data-native.ent
+6
-1
make/netbeans/common/java-data-no-native.ent
make/netbeans/common/java-data-no-native.ent
+6
-1
make/netbeans/common/jtreg-view.ent
make/netbeans/common/jtreg-view.ent
+1
-1
make/netbeans/common/sample-view.ent
make/netbeans/common/sample-view.ent
+1
-1
make/netbeans/common/share-view.ent
make/netbeans/common/share-view.ent
+1
-1
make/netbeans/common/unix-view.ent
make/netbeans/common/unix-view.ent
+1
-1
make/netbeans/common/windows-view.ent
make/netbeans/common/windows-view.ent
+1
-1
make/netbeans/j2se/nbproject/project.xml
make/netbeans/j2se/nbproject/project.xml
+5
-1
src/share/classes/java/lang/Boolean.java
src/share/classes/java/lang/Boolean.java
+8
-11
src/share/classes/java/lang/Integer.java
src/share/classes/java/lang/Integer.java
+6
-0
src/share/classes/java/lang/Long.java
src/share/classes/java/lang/Long.java
+6
-0
test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java
.../jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java
+2
-1
test/sun/tools/common/ApplicationSetup.sh
test/sun/tools/common/ApplicationSetup.sh
+3
-3
test/sun/tools/jinfo/Basic.sh
test/sun/tools/jinfo/Basic.sh
+10
-10
test/sun/tools/jmap/Basic.sh
test/sun/tools/jmap/Basic.sh
+5
-5
test/sun/tools/jps/jps-Defaults.sh
test/sun/tools/jps/jps-Defaults.sh
+2
-2
test/sun/tools/jps/jps-V_2.sh
test/sun/tools/jps/jps-V_2.sh
+2
-2
test/sun/tools/jps/jps-Vm_2.sh
test/sun/tools/jps/jps-Vm_2.sh
+2
-2
test/sun/tools/jps/jps-Vvm.sh
test/sun/tools/jps/jps-Vvm.sh
+2
-2
test/sun/tools/jps/jps-Vvml.sh
test/sun/tools/jps/jps-Vvml.sh
+2
-2
test/sun/tools/jps/jps-Vvml_2.sh
test/sun/tools/jps/jps-Vvml_2.sh
+5
-1
test/sun/tools/jps/jps-help.sh
test/sun/tools/jps/jps-help.sh
+3
-3
test/sun/tools/jps/jps-l_1.sh
test/sun/tools/jps/jps-l_1.sh
+2
-2
test/sun/tools/jps/jps-l_2.sh
test/sun/tools/jps/jps-l_2.sh
+2
-2
test/sun/tools/jps/jps-lm.sh
test/sun/tools/jps/jps-lm.sh
+2
-2
test/sun/tools/jps/jps-m.sh
test/sun/tools/jps/jps-m.sh
+2
-2
test/sun/tools/jps/jps-m_2.sh
test/sun/tools/jps/jps-m_2.sh
+3
-3
test/sun/tools/jps/jps-q.sh
test/sun/tools/jps/jps-q.sh
+2
-2
test/sun/tools/jps/jps-v_1.sh
test/sun/tools/jps/jps-v_1.sh
+2
-2
test/sun/tools/jps/jps-vm_1.sh
test/sun/tools/jps/jps-vm_1.sh
+2
-2
test/sun/tools/jstack/Basic.sh
test/sun/tools/jstack/Basic.sh
+3
-3
test/sun/tools/jstat/jstatClassOutput1.sh
test/sun/tools/jstat/jstatClassOutput1.sh
+2
-2
test/sun/tools/jstat/jstatClassloadOutput1.sh
test/sun/tools/jstat/jstatClassloadOutput1.sh
+2
-2
test/sun/tools/jstat/jstatCompilerOutput1.sh
test/sun/tools/jstat/jstatCompilerOutput1.sh
+2
-2
test/sun/tools/jstat/jstatFileURITest1.sh
test/sun/tools/jstat/jstatFileURITest1.sh
+3
-3
test/sun/tools/jstat/jstatGcCapacityOutput1.sh
test/sun/tools/jstat/jstatGcCapacityOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcCauseOutput1.sh
test/sun/tools/jstat/jstatGcCauseOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh
test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcNewOutput1.sh
test/sun/tools/jstat/jstatGcNewOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh
test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcOldOutput1.sh
test/sun/tools/jstat/jstatGcOldOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcOutput1.sh
test/sun/tools/jstat/jstatGcOutput1.sh
+2
-2
test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh
test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh
+2
-2
test/sun/tools/jstat/jstatHelp.sh
test/sun/tools/jstat/jstatHelp.sh
+3
-3
test/sun/tools/jstat/jstatLineCounts1.sh
test/sun/tools/jstat/jstatLineCounts1.sh
+2
-2
test/sun/tools/jstat/jstatLineCounts2.sh
test/sun/tools/jstat/jstatLineCounts2.sh
+2
-2
test/sun/tools/jstat/jstatLineCounts3.sh
test/sun/tools/jstat/jstatLineCounts3.sh
+2
-2
test/sun/tools/jstat/jstatLineCounts4.sh
test/sun/tools/jstat/jstatLineCounts4.sh
+2
-2
test/sun/tools/jstat/jstatOptions1.sh
test/sun/tools/jstat/jstatOptions1.sh
+3
-3
test/sun/tools/jstat/jstatPrintCompilationOutput1.sh
test/sun/tools/jstat/jstatPrintCompilationOutput1.sh
+2
-2
test/sun/tools/jstat/jstatSnap1.sh
test/sun/tools/jstat/jstatSnap1.sh
+2
-2
test/sun/tools/jstat/jstatSnap2.sh
test/sun/tools/jstat/jstatSnap2.sh
+2
-2
test/sun/tools/jstat/jstatTimeStamp1.sh
test/sun/tools/jstat/jstatTimeStamp1.sh
+2
-2
test/sun/tools/jstatd/jstatdDefaults.sh
test/sun/tools/jstatd/jstatdDefaults.sh
+4
-4
test/sun/tools/jstatd/jstatdExternalRegistry.sh
test/sun/tools/jstatd/jstatdExternalRegistry.sh
+5
-5
test/sun/tools/jstatd/jstatdPort.sh
test/sun/tools/jstatd/jstatdPort.sh
+4
-4
test/sun/tools/jstatd/jstatdServerName.sh
test/sun/tools/jstatd/jstatdServerName.sh
+11
-11
未找到文件。
make/common/Defs-linux.gmk
浏览文件 @
b5bf76e2
...
...
@@ -74,6 +74,57 @@ SCRIPT_SUFFIX =
CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required!
CC_PROGRAM_OUTPUT_FLAG = -o #trailing blank required!
# Default OBJCOPY comes from GNU Binutils on Linux:
DEF_OBJCOPY=/usr/bin/objcopy
ifdef CROSS_COMPILE_ARCH
# don't try to generate .debuginfo files when cross compiling
_JUNK_ := $(shell \
echo >&2 "INFO: cross compiling for ARCH $(CROSS_COMPILE_ARCH)," \
"skipping .debuginfo generation.")
OBJCOPY=
else
OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))
ifneq ($(ALT_OBJCOPY),)
_JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)")
# disable .debuginfo support by setting ALT_OBJCOPY to a non-existent path
OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))
endif
endif
ifdef LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS
# The setting of OBJCOPY above enables the JDK build to import
# .debuginfo files from the HotSpot build. However, adding FDS
# support to the JDK build will occur in phases so a different
# make variable is used to indicate that a particular library
# supports FDS.
ifeq ($(OBJCOPY),)
_JUNK_ := $(shell \
echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo files.")
else
_JUNK_ := $(shell \
echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo files.")
# Library stripping policies for .debuginfo configs:
# all_strip - strips everything from the library
# min_strip - strips most stuff from the library; leaves minimum symbols
# no_strip - does not strip the library at all
#
# Oracle security policy requires "all_strip". A waiver was granted on
# 2011.09.01 that permits using "min_strip" in the Java JDK and Java JRE.
#
DEF_STRIP_POLICY="min_strip"
ifeq ($(ALT_STRIP_POLICY),)
STRIP_POLICY=$(DEF_STRIP_POLICY)
else
STRIP_POLICY=$(ALT_STRIP_POLICY)
endif
_JUNK_ := $(shell \
echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)")
endif
endif
#
# Default optimization
#
...
...
@@ -359,6 +410,7 @@ JA_TARGET_ENCODINGS = UTF-8
# Settings for the JDI - Serviceability Agent binding.
HOTSPOT_SALIB_PATH = $(HOTSPOT_IMPORT_PATH)/jre/lib/$(LIBARCH)
SALIB_NAME = $(LIB_PREFIX)saproc.$(LIBRARY_SUFFIX)
SA_DEBUGINFO_NAME = $(LIB_PREFIX)saproc.debuginfo
# The JDI - Serviceability Agent binding is not currently supported
# on Linux-ia64.
...
...
make/common/Defs-solaris.gmk
浏览文件 @
b5bf76e2
...
...
@@ -74,6 +74,69 @@ SCRIPT_SUFFIX =
CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required!
CC_PROGRAM_OUTPUT_FLAG = -o #trailing blank required!
ifdef ENABLE_FULL_DEBUG_SYMBOLS
# Only check for Full Debug Symbols support on Solaris if it is
# specifically enabled. Hopefully, it can be enabled by default
# once the .debuginfo size issues are worked out.
# Default OBJCOPY comes from the SUNWbinutils package:
DEF_OBJCOPY=/usr/sfw/bin/gobjcopy
ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
# On Solaris AMD64/X64, gobjcopy is not happy and fails:
#
# usr/sfw/bin/gobjcopy --add-gnu-debuglink=<lib>.debuginfo <lib>.so
# BFD: stKPaiop: Not enough room for program headers, try linking with -N
# /usr/sfw/bin/gobjcopy: stKPaiop: Bad value
# BFD: stKPaiop: Not enough room for program headers, try linking with -N
# /usr/sfw/bin/gobjcopy: libsaproc.debuginfo: Bad value
# BFD: stKPaiop: Not enough room for program headers, try linking with -N
# /usr/sfw/bin/gobjcopy: stKPaiop: Bad value
_JUNK_ := $(shell \
echo >&2 "INFO: $(DEF_OBJCOPY) is not working on Solaris AMD64/X64")
OBJCOPY=
else
OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))
ifneq ($(ALT_OBJCOPY),)
_JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)")
# disable .debuginfo support by setting ALT_OBJCOPY to a non-existent path
OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))
endif
endif
ifdef LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS
# The setting of OBJCOPY above enables the JDK build to import
# .debuginfo files from the HotSpot build. However, adding FDS
# support to the JDK build will occur in phases so a different
# make variable is used to indicate that a particular library
# supports FDS.
ifeq ($(OBJCOPY),)
_JUNK_ := $(shell \
echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo files.")
else
_JUNK_ := $(shell \
echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo files.")
# Library stripping policies for .debuginfo configs:
# all_strip - strips everything from the library
# min_strip - strips most stuff from the library; leaves minimum symbols
# no_strip - does not strip the library at all
#
# Oracle security policy requires "all_strip". A waiver was granted on
# 2011.09.01 that permits using "min_strip" in the Java JDK and Java JRE.
#
DEF_STRIP_POLICY="min_strip"
ifeq ($(ALT_STRIP_POLICY),)
STRIP_POLICY=$(DEF_STRIP_POLICY)
else
STRIP_POLICY=$(ALT_STRIP_POLICY)
endif
_JUNK_ := $(shell \
echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)")
endif
endif
endif
#
# Java default optimization (-x04/-O2) etc. Applies to the VM.
#
...
...
@@ -684,5 +747,6 @@ JA_TARGET_ENCODINGS = eucJP UTF-8 PCK
# Settings for the JDI - Serviceability Agent binding.
HOTSPOT_SALIB_PATH = $(HOTSPOT_IMPORT_PATH)/jre/lib/$(LIBARCH)
SALIB_NAME = $(LIB_PREFIX)saproc.$(LIBRARY_SUFFIX)
SA_DEBUGINFO_NAME = $(LIB_PREFIX)saproc.debuginfo
INCLUDE_SA=true
make/java/redist/Makefile
浏览文件 @
b5bf76e2
...
...
@@ -58,6 +58,11 @@ LIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
JVMDB_NAME
=
$(LIB_PREFIX)
jvm
$(DB_SUFFIX)
.
$(LIBRARY_SUFFIX)
JVMDTRACE_NAME
=
$(LIB_PREFIX)
jvm
$(DTRACE_SUFFIX)
.
$(LIBRARY_SUFFIX)
JVM_DEBUGINFO_NAME
=
$(LIB_PREFIX)
jvm.debuginfo
LIBJSIG_DEBUGINFO_NAME
=
$(LIB_PREFIX)
jsig.debuginfo
JVMDB_DEBUGINFO_NAME
=
$(LIB_PREFIX)
jvm
$(DB_SUFFIX)
.debuginfo
JVMDTRACE_DEBUGINFO_NAME
=
$(LIB_PREFIX)
jvm
$(DTRACE_SUFFIX)
.debuginfo
CLASSSHARINGDATA_DIR
=
$(BUILDDIR)
/tools/sharing
# Needed to do file copy
...
...
@@ -79,6 +84,12 @@ INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
ifndef
BUILD_CLIENT_ONLY
IMPORT_LIST
=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(JVM_NAME)
\
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/Xusage.txt
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(JVM_DEBUGINFO_NAME)
endif
endif
else
IMPORT_LIST
=
endif
...
...
@@ -88,6 +99,12 @@ ifneq ($(ZERO_BUILD), true)
ifeq
($(ARCH_DATA_MODEL), 32)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(JVM_NAME)
\
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/Xusage.txt
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(JVM_DEBUGINFO_NAME)
endif
endif
endif
endif
...
...
@@ -157,16 +174,40 @@ else # PLATFORM
# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(LIBJSIG_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(LIBJSIG_DEBUGINFO_NAME)
endif
endif
ifndef
BUILD_CLIENT_ONLY
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(LIBJSIG_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain the target of the symlink
ifneq
($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(LIBJSIG_DEBUGINFO_NAME)
endif
endif
endif
ifeq
($(PLATFORM), solaris)
ifndef
BUILD_CLIENT_ONLY
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(JVMDB_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(JVMDB_DEBUGINFO_NAME)
endif
endif
# The conditional can be removed when import JDKs contain these files.
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(JVMDTRACE_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/
$(JVMDTRACE_DEBUGINFO_NAME)
endif
endif
else
$(warning WARNING
:
$(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
endif
...
...
@@ -177,17 +218,37 @@ ifneq ($(ZERO_BUILD), true)
ifeq
($(ARCH_DATA_MODEL), 32)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(LIBJSIG_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain the target of the symlink
ifneq
($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(LIBJSIG_DEBUGINFO_NAME)
endif
endif
ifeq
($(PLATFORM), solaris)
# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(JVMDB_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(JVMDB_DEBUGINFO_NAME)
endif
endif
# The conditional can be removed when import JDKs contain these files.
ifneq
($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(JVMDTRACE_NAME)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/64/
$(JVMDB_NAME)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/64/
$(JVMDTRACE_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/
$(JVMDTRACE_DEBUGINFO_NAME)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/64/
$(JVMDB_DEBUGINFO_NAME)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(CLIENT_LOCATION)
/64/
$(JVMDTRACE_DEBUGINFO_NAME)
endif
endif
else
$(warning WARNING
:
$(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
endif
...
...
@@ -196,6 +257,12 @@ ifndef BUILD_CLIENT_ONLY
# The conditional can be removed when import JDKs contain these files.
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/64/
$(JVMDB_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/64/
$(JVMDB_DEBUGINFO_NAME)
endif
endif
else
$(warning WARNING
:
$(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
endif
...
...
@@ -203,6 +270,12 @@ ifndef BUILD_CLIENT_ONLY
# The conditional can be removed when import JDKs contain these files.
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/64/
$(JVMDTRACE_NAME)
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SERVER_LOCATION)
/64/
$(JVMDTRACE_DEBUGINFO_NAME)
endif
endif
else
$(warning WARNING
:
$(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
endif
...
...
@@ -229,6 +302,11 @@ $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAM
$
(
install-import-file
)
@
$(
call
binary_file_verification,
$@
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME)
:
$(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME)
:
$(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
$
(
install-file
)
@
$(
call
binary_file_verification,
$@
)
...
...
@@ -237,15 +315,33 @@ $(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJ
$
(
install-import-file
)
@
$(
call
binary_file_verification,
$@
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
:
$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
ifndef
BUILD_CLIENT_ONLY
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
\
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
:
@
$
(
prep-target
)
$(
call
install-sym-link, ../
$(LIBJSIG_NAME)
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
\
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
:
@
$
(
prep-target
)
$(
call
install-sym-link, ../
$(LIBJSIG_DEBUGINFO_NAME)
)
endif
else
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
:
@
$
(
prep-target
)
$(
call
install-sym-link, ../
$(LIBJSIG_NAME)
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
:
@
$
(
prep-target
)
$(
call
install-sym-link, ../
$(LIBJSIG_DEBUGINFO_NAME)
)
endif
endif
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
:
$(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
...
...
@@ -256,6 +352,14 @@ $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$
$
(
install-import-file
)
@
$(
call
binary_file_verification,
$@
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
:
$(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)
$
(
install-import-file
)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
:
$(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
ifndef
BUILD_CLIENT_ONLY
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
:
$(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
$
(
install-import-file
)
...
...
@@ -264,6 +368,14 @@ $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
:
$(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
$
(
install-import-file
)
@
$(
call
binary_file_verification,
$@
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
:
$(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)
$
(
install-import-file
)
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
:
$(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
endif
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
:
$(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)
...
...
@@ -274,6 +386,14 @@ $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/
$
(
install-import-file
)
@
$(
call
binary_file_verification,
$@
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
:
$(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
$
(
install-import-file
)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
:
$(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
ifndef
BUILD_CLIENT_ONLY
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
:
$(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)
$
(
install-import-file
)
...
...
@@ -287,6 +407,17 @@ $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAM
$
(
install-import-file
)
@
$(
call
binary_file_verification,
$@
)
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
:
$(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
$
(
install-import-file
)
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
:
$(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
$
(
install-import-file
)
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME)
:
$(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
:
$(HOTSPOT_SERVER_PATH)/Xusage.txt
$
(
install-import-file
)
endif
...
...
make/java/redist/sajdi/Makefile
浏览文件 @
b5bf76e2
...
...
@@ -56,6 +56,12 @@ ifeq ($(INCLUDE_SA), true)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SAMAP_NAME)
\
$(LIB_LOCATION)
/
$(SAPDB_NAME)
endif
ifneq
($(OBJCOPY),)
# the import JDK may not contain .debuginfo files
ifneq
($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(SA_DEBUGINFO_NAME)),)
IMPORT_LIST
+=
$(LIB_LOCATION)
/
$(SA_DEBUGINFO_NAME)
endif
endif
endif
# INCLUDE_SA
...
...
@@ -79,6 +85,11 @@ $(LIB_LOCATION)/$(SAPDB_NAME): $(HOTSPOT_SALIB_PATH)/$(SAPDB_NAME)
$(LIB_LOCATION)/$(SAMAP_NAME)
:
$(HOTSPOT_SALIB_PATH)/$(SAMAP_NAME)
$
(
install-import-file
)
endif
# windows
ifneq
($(OBJCOPY),)
$(LIB_LOCATION)/$(SA_DEBUGINFO_NAME)
:
$(HOTSPOT_SALIB_PATH)/$(SA_DEBUGINFO_NAME)
$
(
install-import-file
)
endif
endif
# INCLUDE_SA
all
:
$(IMPORT_LIST)
...
...
make/netbeans/README
浏览文件 @
b5bf76e2
...
...
@@ -5,7 +5,7 @@ Working on OpenJDK using NetBeans
Getting Started
In addition to the source bundle for Open JDK, you'll need to download
and install copies of the JDK and of NetBeans
6
. And if you want to run
and install copies of the JDK and of NetBeans. And if you want to run
tests on the JDK (you do want to run tests, right?), you'll need to
install the jtreg test harness.
...
...
@@ -20,30 +20,28 @@ Getting Started
Downloading the JDK
You've probably done this a million times. Download and install it
from http://
java.sun.com/javase
from http://
www.oracle.com/technetwork/java/javase/overview/index.html
Downloading the OpenJDK sources
Since you're reading this, d you've already downloaded the OpenJDK
source bundle. Later in this document we'll refer to the location
where you installed the Open JDK sources as *install-dir*.
Downloading a pre-built, JDK
7
Downloading a pre-built, JDK
8
This will be necessary to do builds of some of the projects. In
general, you want to download and install a pre-built JDK that
corresponds to the OpenJDK sources you download. Building the entire
OpenJDK depends on a few parts of the pre-built JDK. Get this from
http://download.java.net/jdk
7
/binaries
http://download.java.net/jdk
8
/binaries
Note: For working on certain projects, like JMX and JConsole, you
may find convenient to use a pre-built version of JDK
7 (or
Note: For working on certain projects, like JMX and JConsole, you
may find convenient to use a pre-built version of JDK
8 (or
OpenJDK) rather than building your own. This will allow you
to build only that part of the OpenJDK sources which correspond
to that project.
to that project.
NetBeans 6
Yep, NetBeans *6*. Nope, not FCS'd yet. We're on the edge here,
enjoy it! Get the latest working development build of NetBeans 6
from http://netbeans.org
NetBeans 7.0 or later
Older versions may also work but are unsupported.
jtreg
"jtreg" is the test harness for running OpenJDK's regression tests.
...
...
@@ -51,7 +49,7 @@ Getting Started
Ant
NetBeans comes with ant, but if you use a separately-installed copy
please make sure that it is at least version 1.
7.0
.
please make sure that it is at least version 1.
8.1
.
Configuring
Building OpenJDK is hard and complex. No, strike that. While it's not
...
...
@@ -92,8 +90,8 @@ Configuring
situation:
make.options=\
ALT_BOOTDIR=/home/me/bin/jdk1.
6
.0 \
ALT_JDK_IMPORT_PATH=/home/me/bin/jdk1.
7
.0 \
ALT_BOOTDIR=/home/me/bin/jdk1.
7
.0 \
ALT_JDK_IMPORT_PATH=/home/me/bin/jdk1.
8
.0 \
OPENJDK=true
The trailing '\' are important, so that make gets the above as a
...
...
@@ -107,7 +105,7 @@ Configuring
Windows-specific configuration
First, please note that the entire JDK cannot currently be built on
Windows platforms. This will likely limit your ability to build
make-based projects. See
make-based projects. See
*install-dir*/jdk/make/README-builds.html
for full information on issues with building on the Windows platform.
...
...
@@ -141,7 +139,7 @@ Configuring
editor.
Locale Requirements
To build the Open
JDK sources, be certain that you are using the "C"
To build the OpenJDK sources, be certain that you are using the "C"
locale on Unix (R) platforms, or "English (United States)" locale on
Windows.
...
...
@@ -220,13 +218,13 @@ Provided NetBeans projects
running and debugging JConsole.
This ant-based project does *not* require that you build the jdk
project first, provided that you use a pre-built version of JDK 7.
project first, provided that you use a pre-built version of JDK 7.
Java (TM) Management Extensions (JMX(TM)) API (directory "jmx")
For working on JMX source code. Creates ../dist/lib/jmx.jar.
This ant-based project does *not* require that you build the jdk
project first, provided that you use a pre-built version of JDK 7.
project first, provided that you use a pre-built version of JDK 7.
Jar & Zip (directory "jarzip")
For working on jar & zip. It builds the zip library (including
...
...
@@ -242,12 +240,12 @@ Provided NetBeans projects
running and debugging the SampleTree demo.
This ant-based project does *not* require that you build the jdk
project first, provided that you use a pre-built version of JDK 7.
project first, provided that you use a pre-built version of JDK 7.
In addition, there are projects for building the compiler, javadoc,
and related tools, in the OpenJDK langtools component. These
projects are separate from those described here, and have their
own set of guidelines and conventions. For more details, see the
own set of guidelines and conventions. For more details, see the
README files in make/netbeans in the OpenJDK langtools component.
Running Tests
...
...
@@ -603,13 +601,6 @@ Appendix 1: Customizations
* -clean-make
Known Issues
Tests won't run: waiting for lock
Occasionally when running tests, there will be a delay, followed by a
message like this:
Waiting to lock test result cache for
/tmp/jdk/build/linux-i586/jtreg/jconsole/JTwork for 20 seconds
The workaround is to stop the tests, rm -rf the offending jtreg/<project>
directory by hand, and re-run the tests.
Can't run nor debug a single test in the JConsole test
In most projects, you can run a single test by opening it in the editor,
...
...
make/netbeans/common/closed-share-view.ent
浏览文件 @
b5bf76e2
...
...
@@ -31,8 +31,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<source-folder
style=
"
packages
"
>
<label>
Closed
-Source Packag
es
</label>
<source-folder
style=
"
tree
"
>
<label>
Closed
Sourc
es
</label>
<location>
${root}/src/closed/share/classes
</location>
<includes>
${includes}
</includes>
<excludes>
${excludes}
</excludes>
...
...
make/netbeans/common/java-data-native.ent
浏览文件 @
b5bf76e2
...
...
@@ -38,7 +38,12 @@
<package-root>
${root}/src/solaris/classes
</package-root>
<classpath
mode=
"boot"
>
${bootstrap.jdk}/jre/lib/rt.jar
</classpath>
<built-to>
${root}/build/${platform}-${arch}/classes
</built-to>
<javadoc-built-to>
${root}/build/javadoc/${name}
</javadoc-built-to>
<javadoc-built-to>
${root}/build/${platform}-${arch}/docs/api
</javadoc-built-to>
<source-level>
1.7
</source-level>
</compilation-unit>
<compilation-unit>
<package-root>
${root}/test
</package-root>
<unit-tests/>
<source-level>
1.7
</source-level>
</compilation-unit>
</java-data>
make/netbeans/common/java-data-no-native.ent
浏览文件 @
b5bf76e2
...
...
@@ -36,7 +36,12 @@
<package-root>
${root}/src/share/classes
</package-root>
<classpath
mode=
"boot"
>
${bootstrap.jdk}/jre/lib/rt.jar
</classpath>
<built-to>
${root}/build/${platform}-${arch}/classes
</built-to>
<javadoc-built-to>
${root}/build/javadoc/${name}
</javadoc-built-to>
<javadoc-built-to>
${root}/build/${platform}-${arch}/docs/api
</javadoc-built-to>
<source-level>
1.7
</source-level>
</compilation-unit>
<compilation-unit>
<package-root>
${root}/test
</package-root>
<unit-tests/>
<source-level>
1.7
</source-level>
</compilation-unit>
</java-data>
make/netbeans/common/jtreg-view.ent
浏览文件 @
b5bf76e2
...
...
@@ -31,7 +31,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<source-folder
style=
"
packages
"
>
<source-folder
style=
"
tree
"
>
<label>
Tests
</label>
<location>
${root}/test
</location>
<includes>
${jtreg.tests}
</includes>
...
...
make/netbeans/common/sample-view.ent
浏览文件 @
b5bf76e2
...
...
@@ -31,7 +31,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<source-folder
style=
"
packages
"
>
<source-folder
style=
"
tree
"
>
<label>
Samples
</label>
<location>
${root}/src/share/sample
</location>
<includes>
${samples}
</includes>
...
...
make/netbeans/common/share-view.ent
浏览文件 @
b5bf76e2
...
...
@@ -31,7 +31,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<source-folder
style=
"
packages
"
>
<source-folder
style=
"
tree
"
>
<label>
Sources for All Platforms
</label>
<location>
${root}/src/share/classes
</location>
<includes>
${includes}
</includes>
...
...
make/netbeans/common/unix-view.ent
浏览文件 @
b5bf76e2
...
...
@@ -35,7 +35,7 @@
UNIX is a registered trademark in the United States and other countries,
exclusively licensed through X/Open Company, Ltd.
-->
<source-folder
style=
"
packages
"
>
<source-folder
style=
"
tree
"
>
<label>
Sources for Unix® Platform
</label>
<location>
${root}/src/solaris/classes
</location>
<includes>
${includes}
</includes>
...
...
make/netbeans/common/windows-view.ent
浏览文件 @
b5bf76e2
...
...
@@ -31,7 +31,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<source-folder
style=
"
packages
"
>
<source-folder
style=
"
tree
"
>
<label>
Sources for Windows Platform
</label>
<location>
${root}/src/windows/classes
</location>
<includes>
${includes}
</includes>
...
...
make/netbeans/j2se/nbproject/project.xml
浏览文件 @
b5bf76e2
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2007,
2011,
Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
...
...
@@ -36,11 +36,13 @@
<!ENTITY share-sources SYSTEM "../../common/share-sources.ent">
<!ENTITY unix-sources SYSTEM "../../common/unix-sources.ent">
<!ENTITY windows-sources SYSTEM "../../common/windows-sources.ent">
<!ENTITY jtreg-sources SYSTEM "../../common/jtreg-sources.ent">
<!ENTITY build-folder SYSTEM "../../common/build-folder.ent">
<!ENTITY standard-bindings SYSTEM "../../common/standard-bindings.ent">
<!ENTITY share-view SYSTEM "../../common/share-view.ent">
<!ENTITY unix-view SYSTEM "../../common/unix-view.ent">
<!ENTITY windows-view SYSTEM "../../common/windows-view.ent">
<!ENTITY jtreg-view SYSTEM "../../common/jtreg-view.ent">
<!ENTITY file-view SYSTEM "../../common/file-view.ent">
<!ENTITY standard-actions SYSTEM "../../common/standard-actions.ent">
<!ENTITY java-data-native SYSTEM "../../common/java-data-native.ent">
...
...
@@ -59,6 +61,7 @@
&unix-sources;
&windows-sources;
&build-folder;
&jtreg-sources;
</folders>
<ide-actions>
<action
name=
"build"
>
...
...
@@ -82,6 +85,7 @@
&share-view;
&unix-view;
&windows-view;
&jtreg-view;
&file-view;
</items>
<context-menu>
...
...
src/share/classes/java/lang/Boolean.java
浏览文件 @
b5bf76e2
/*
* Copyright (c) 1994, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 20
11
, 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
...
...
@@ -101,7 +101,7 @@ public final class Boolean implements java.io.Serializable,
* @param s the string to be converted to a {@code Boolean}.
*/
public
Boolean
(
String
s
)
{
this
(
to
Boolean
(
s
));
this
(
parse
Boolean
(
s
));
}
/**
...
...
@@ -118,7 +118,7 @@ public final class Boolean implements java.io.Serializable,
* @since 1.5
*/
public
static
boolean
parseBoolean
(
String
s
)
{
return
toBoolean
(
s
);
return
((
s
!=
null
)
&&
s
.
equalsIgnoreCase
(
"true"
)
);
}
/**
...
...
@@ -159,7 +159,7 @@ public final class Boolean implements java.io.Serializable,
* @return the {@code Boolean} value represented by the string.
*/
public
static
Boolean
valueOf
(
String
s
)
{
return
to
Boolean
(
s
)
?
TRUE
:
FALSE
;
return
parse
Boolean
(
s
)
?
TRUE
:
FALSE
;
}
/**
...
...
@@ -229,15 +229,16 @@ public final class Boolean implements java.io.Serializable,
*
* @param name the system property name.
* @return the {@code boolean} value of the system property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see java.lang.System#getProperty(java.lang.String)
* @see java.lang.System#getProperty(java.lang.String, java.lang.String)
*/
public
static
boolean
getBoolean
(
String
name
)
{
boolean
result
=
false
;
try
{
result
=
toBoolean
(
System
.
getProperty
(
name
));
}
catch
(
IllegalArgumentException
e
)
{
}
catch
(
NullPointerException
e
)
{
result
=
parseBoolean
(
System
.
getProperty
(
name
));
}
catch
(
IllegalArgumentException
|
NullPointerException
e
)
{
}
return
result
;
}
...
...
@@ -275,8 +276,4 @@ public final class Boolean implements java.io.Serializable,
public
static
int
compare
(
boolean
x
,
boolean
y
)
{
return
(
x
==
y
)
?
0
:
(
x
?
1
:
-
1
);
}
private
static
boolean
toBoolean
(
String
name
)
{
return
((
name
!=
null
)
&&
name
.
equalsIgnoreCase
(
"true"
));
}
}
src/share/classes/java/lang/Integer.java
浏览文件 @
b5bf76e2
...
...
@@ -797,6 +797,8 @@ public final class Integer extends Number implements Comparable<Integer> {
*
* @param nm property name.
* @return the {@code Integer} value of the property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see java.lang.System#getProperty(java.lang.String)
* @see java.lang.System#getProperty(java.lang.String, java.lang.String)
*/
...
...
@@ -841,6 +843,8 @@ public final class Integer extends Number implements Comparable<Integer> {
* @param nm property name.
* @param val default value.
* @return the {@code Integer} value of the property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see java.lang.System#getProperty(java.lang.String)
* @see java.lang.System#getProperty(java.lang.String, java.lang.String)
*/
...
...
@@ -881,6 +885,8 @@ public final class Integer extends Number implements Comparable<Integer> {
* @param nm property name.
* @param val default value.
* @return the {@code Integer} value of the property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see System#getProperty(java.lang.String)
* @see System#getProperty(java.lang.String, java.lang.String)
*/
...
...
src/share/classes/java/lang/Long.java
浏览文件 @
b5bf76e2
...
...
@@ -827,6 +827,8 @@ public final class Long extends Number implements Comparable<Long> {
*
* @param nm property name.
* @return the {@code Long} value of the property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see java.lang.System#getProperty(java.lang.String)
* @see java.lang.System#getProperty(java.lang.String, java.lang.String)
*/
...
...
@@ -870,6 +872,8 @@ public final class Long extends Number implements Comparable<Long> {
* @param nm property name.
* @param val default value.
* @return the {@code Long} value of the property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see java.lang.System#getProperty(java.lang.String)
* @see java.lang.System#getProperty(java.lang.String, java.lang.String)
*/
...
...
@@ -917,6 +921,8 @@ public final class Long extends Number implements Comparable<Long> {
* @param nm property name.
* @param val default value.
* @return the {@code Long} value of the property.
* @throws SecurityException for the same reasons as
* {@link System#getProperty(String) System.getProperty}
* @see System#getProperty(java.lang.String)
* @see System#getProperty(java.lang.String, java.lang.String)
*/
...
...
test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java
浏览文件 @
b5bf76e2
/*
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -24,6 +24,7 @@
/*
* @test
* @bug 4990825
* @run main/othervm -XX:+UsePerfData PrologSizeSanityCheck
* @summary prolog size and overflow sanity checks
*/
...
...
test/sun/tools/common/ApplicationSetup.sh
浏览文件 @
b5bf76e2
#!/bin/sh
#
# Copyright (c) 2005, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2005, 201
1
, 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
...
...
@@ -43,7 +43,7 @@ startApplication()
{
appOutput
=
"
${
TESTCLASSES
}
/Application.out"
${
JAVA
}
-classpath
"
${
TESTCLASSES
}
"
"
$@
"
>
"
$appOutput
"
2>&1 &
${
JAVA
}
-
XX
:+UsePerfData
-
classpath
"
${
TESTCLASSES
}
"
"
$@
"
>
"
$appOutput
"
2>&1 &
appJavaPid
=
"
$!
"
appOtherPid
=
appPidList
=
"
$appJavaPid
"
...
...
@@ -131,7 +131,7 @@ startApplication()
#
stopApplication
()
{
$JAVA
-classpath
"
${
TESTCLASSES
}
"
ShutdownSimpleApplication
$1
$JAVA
-
XX
:+UsePerfData
-
classpath
"
${
TESTCLASSES
}
"
ShutdownSimpleApplication
$1
}
...
...
test/sun/tools/jinfo/Basic.sh
浏览文件 @
b5bf76e2
#!/bin/sh
#
# Copyright (c) 2006, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2006, 201
1
, 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
...
...
@@ -46,39 +46,39 @@ failed=0
if
[
$isWindows
=
false
]
;
then
# -sysprops option
${
JINFO
}
-sysprops
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
sysprops
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
# -flags option
${
JINFO
}
-flags
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flags
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
# no option
${
JINFO
}
$appJavaPid
${
JINFO
}
-J-XX
:+UsePerfData
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
fi
# -flag option
${
JINFO
}
-flag
+PrintGC
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flag
+PrintGC
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
${
JINFO
}
-flag
-PrintGC
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flag
-PrintGC
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
${
JINFO
}
-flag
PrintGC
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flag
PrintGC
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
if
$isSolaris
;
then
${
JINFO
}
-flag
+ExtendedDTraceProbes
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flag
+ExtendedDTraceProbes
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
${
JINFO
}
-flag
-ExtendedDTraceProbes
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flag
-ExtendedDTraceProbes
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
${
JINFO
}
-flag
ExtendedDTraceProbes
$appJavaPid
${
JINFO
}
-
J-XX
:+UsePerfData
-
flag
ExtendedDTraceProbes
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
fi
...
...
test/sun/tools/jmap/Basic.sh
浏览文件 @
b5bf76e2
#!/bin/sh
#
# Copyright (c) 2005, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2005, 201
1
, 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
...
...
@@ -45,15 +45,15 @@ set +e
failed
=
0
# -histo[:live] option
${
JMAP
}
-histo
$appJavaPid
${
JMAP
}
-
J-XX
:+UsePerfData
-
histo
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
${
JMAP
}
-histo
:live
$appJavaPid
${
JMAP
}
-
J-XX
:+UsePerfData
-
histo
:live
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
# -dump option
DUMPFILE
=
"java_pid
${
appJavaPid
}
.hprof"
${
JMAP
}
-dump
:format
=
b,file
=
${
DUMPFILE
}
$appJavaPid
${
JMAP
}
-
J-XX
:+UsePerfData
-
dump
:format
=
b,file
=
${
DUMPFILE
}
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
# check that heap dump is parsable
...
...
@@ -64,7 +64,7 @@ if [ $? != 0 ]; then failed=1; fi
rm
${
DUMPFILE
}
# -dump:live option
${
JMAP
}
-dump
:live,format
=
b,file
=
${
DUMPFILE
}
$appJavaPid
${
JMAP
}
-
J-XX
:+UsePerfData
-
dump
:live,format
=
b,file
=
${
DUMPFILE
}
$appJavaPid
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
# check that heap dump is parsable
...
...
test/sun/tools/jps/jps-Defaults.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
2>&1 |
awk
-f
${
TESTSRC
}
/jps_Output1.awk
${
JPS
}
-J-XX
:+UsePerfData
2>&1 |
awk
-f
${
TESTSRC
}
/jps_Output1.awk
test/sun/tools/jps/jps-V_2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-J-XX
:Flags
=
${
TESTSRC
}
/vmflags
-V
|
awk
-f
${
TESTSRC
}
/jps-V_Output2.awk
${
JPS
}
-J-XX
:
+UsePerfData
-J-XX
:
Flags
=
${
TESTSRC
}
/vmflags
-V
|
awk
-f
${
TESTSRC
}
/jps-V_Output2.awk
test/sun/tools/jps/jps-Vm_2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-J-XX
:Flags
=
${
TESTSRC
}
/vmflags
-Vm
|
awk
-f
${
TESTSRC
}
/jps-Vm_Output2.awk
${
JPS
}
-J-XX
:
+UsePerfData
-J-XX
:
Flags
=
${
TESTSRC
}
/vmflags
-Vm
|
awk
-f
${
TESTSRC
}
/jps-Vm_Output2.awk
test/sun/tools/jps/jps-Vvm.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-J-XX
:Flags
=
${
TESTSRC
}
/vmflags
-Vvm
|
awk
-f
${
TESTSRC
}
/jps-Vvm_Output1.awk
${
JPS
}
-J-XX
:
+UsePerfData
-J-XX
:
Flags
=
${
TESTSRC
}
/vmflags
-Vvm
|
awk
-f
${
TESTSRC
}
/jps-Vvm_Output1.awk
test/sun/tools/jps/jps-Vvml.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-J-XX
:Flags
=
${
TESTSRC
}
/vmflags
-Vvml
|
awk
-f
${
TESTSRC
}
/jps-Vvml_Output1.awk
${
JPS
}
-J-XX
:
+UsePerfData
-J-XX
:
Flags
=
${
TESTSRC
}
/vmflags
-Vvml
|
awk
-f
${
TESTSRC
}
/jps-Vvml_Output1.awk
test/sun/tools/jps/jps-Vvml_2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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
...
...
@@ -47,6 +47,10 @@ JAVA="${TESTJAVA}/bin/java"
# any args to Sleeper.main() or any jvm flags or options, as we
# need to inspect jps output for the no args condition.
#
# Note: this test can not pass on a VM with UsePerfData disabled by default,
# and we can not set -XX:+UsePerfData as that invalidates the test premise of
# there being no jvm flags
${
JAVA
}
-cp
${
TESTCLASSES
}
Sleeper &
SLEEPER_PID
=
$!
...
...
test/sun/tools/jps/jps-help.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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,7 +33,7 @@ setup
JPS
=
"
${
TESTJAVA
}
/bin/jps"
rm
-f
jps.out 2>/dev/null
${
JPS
}
-?
>
jps.out 2>&1
${
JPS
}
-
J-XX
:+UsePerfData -
?
>
jps.out 2>&1
diff
-w
jps.out
${
TESTSRC
}
/usage.out
if
[
$?
!=
0
]
...
...
@@ -44,7 +44,7 @@ then
fi
rm
-f
jps.out 2>/dev/null
${
JPS
}
-help
>
jps.out 2>&1
${
JPS
}
-
J-XX
:+UsePerfData
-
help
>
jps.out 2>&1
diff
-w
jps.out
${
TESTSRC
}
/usage.out
if
[
$?
!=
0
]
...
...
test/sun/tools/jps/jps-l_1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-l
2>&1 |
awk
-f
${
TESTSRC
}
/jps-l_Output1.awk
${
JPS
}
-
J-XX
:+UsePerfData
-
l
2>&1 |
awk
-f
${
TESTSRC
}
/jps-l_Output1.awk
test/sun/tools/jps/jps-l_2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-l
|
awk
-f
${
TESTSRC
}
/jps-l_Output2.awk
${
JPS
}
-
J-XX
:+UsePerfData
-
l
|
awk
-f
${
TESTSRC
}
/jps-l_Output2.awk
test/sun/tools/jps/jps-lm.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-lm
|
awk
-f
${
TESTSRC
}
/jps-lm_Output1.awk
${
JPS
}
-
J-XX
:+UsePerfData
-
lm
|
awk
-f
${
TESTSRC
}
/jps-lm_Output1.awk
test/sun/tools/jps/jps-m.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-m
|
awk
-f
${
TESTSRC
}
/jps-m_Output1.awk
${
JPS
}
-
J-XX
:+UsePerfData
-
m
|
awk
-f
${
TESTSRC
}
/jps-m_Output1.awk
test/sun/tools/jps/jps-m_2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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
...
...
@@ -46,10 +46,10 @@ JAVA="${TESTJAVA}/bin/java"
# any args to Sleeper.main(), as we need to inspect jps output
# for the no args condition.
#
${
JAVA
}
-cp
${
TESTCLASSES
}
Sleeper &
${
JAVA
}
-
XX
:+UsePerfData
-
cp
${
TESTCLASSES
}
Sleeper &
SLEEPER_PID
=
$!
${
JPS
}
-m
|
awk
-f
${
TESTSRC
}
/jps-m_Output2.awk
${
JPS
}
-
J-XX
:+UsePerfData
-
m
|
awk
-f
${
TESTSRC
}
/jps-m_Output2.awk
RC
=
$?
cleanup
...
...
test/sun/tools/jps/jps-q.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-q
|
awk
-f
${
TESTSRC
}
/jps-q_Output1.awk
${
JPS
}
-
J-XX
:+UsePerfData
-
q
|
awk
-f
${
TESTSRC
}
/jps-q_Output1.awk
test/sun/tools/jps/jps-v_1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-J-XX
:+UseParallelGC
-v
|
awk
-f
${
TESTSRC
}
/jps-v_Output1.awk
${
JPS
}
-J-XX
:+UseP
erfData
-J-XX
:+UseP
arallelGC
-v
|
awk
-f
${
TESTSRC
}
/jps-v_Output1.awk
test/sun/tools/jps/jps-vm_1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JPS
=
"
${
TESTJAVA
}
/bin/jps"
${
JPS
}
-J-XX
:+UseParallelGC
-vm
|
awk
-f
${
TESTSRC
}
/jps-vm_Output1.awk
${
JPS
}
-J-XX
:+UseP
erfData
-J-XX
:+UseP
arallelGC
-vm
|
awk
-f
${
TESTSRC
}
/jps-vm_Output1.awk
test/sun/tools/jstack/Basic.sh
浏览文件 @
b5bf76e2
#!/bin/sh
#
# Copyright (c) 2005, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2005, 201
1
, 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
...
...
@@ -45,11 +45,11 @@ set +e
failed
=
0
# normal
$JSTACK
$appJavaPid
2>&1
$JSTACK
-J-XX
:+UsePerfData
$appJavaPid
2>&1
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
# long
$JSTACK
-l
$appJavaPid
2>&1
$JSTACK
-
J-XX
:+UsePerfData
-
l
$appJavaPid
2>&1
if
[
$?
!=
0
]
;
then
failed
=
1
;
fi
set
-e
...
...
test/sun/tools/jstat/jstatClassOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-class
0 2>&1 |
awk
-f
${
TESTSRC
}
/classOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
class
0 2>&1 |
awk
-f
${
TESTSRC
}
/classOutput1.awk
test/sun/tools/jstat/jstatClassloadOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2010,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-classload
-J-Djstat
.showUnsupported
=
true
0 2>&1 |
awk
-f
${
TESTSRC
}
/classloadOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
classload
-J-Djstat
.showUnsupported
=
true
0 2>&1 |
awk
-f
${
TESTSRC
}
/classloadOutput1.awk
test/sun/tools/jstat/jstatCompilerOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-compiler
0 2>&1 |
awk
-f
${
TESTSRC
}
/compilerOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
compiler
0 2>&1 |
awk
-f
${
TESTSRC
}
/compilerOutput1.awk
test/sun/tools/jstat/jstatFileURITest1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -40,12 +40,12 @@ Windows*)
# characters into forward slash characters in an effort to convert
# TESTSRC into a canonical form useable as URI path.
cp
${
TESTSRC
}
/hsperfdata_3433
.
${
JSTAT
}
-gcutil
file:/
`
pwd
`
/hsperfdata_3433 2>&1 |
awk
-f
${
TESTSRC
}
/fileURITest1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
file:/
`
pwd
`
/hsperfdata_3433 2>&1 |
awk
-f
${
TESTSRC
}
/fileURITest1.awk
RC
=
$?
rm
-f
hsperfdata_3433 2>&1
>
/dev/null
;;
*
)
${
JSTAT
}
-gcutil
file:
${
TESTSRC
}
/hsperfdata_3433 2>&1 |
awk
-f
${
TESTSRC
}
/fileURITest1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
file:
${
TESTSRC
}
/hsperfdata_3433 2>&1 |
awk
-f
${
TESTSRC
}
/fileURITest1.awk
RC
=
$?
;;
esac
...
...
test/sun/tools/jstat/jstatGcCapacityOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gccapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcCapacityOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gccapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcCapacityOutput1.awk
test/sun/tools/jstat/jstatGcCauseOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -37,4 +37,4 @@ JSTAT="${TESTJAVA}/bin/jstat"
# class machine, ergonomics will automatically use UseParallelGC.
# The UseParallelGC collector does not currently update the gc cause counters.
${
JSTAT
}
-J-XX
:+UseSerialGC
-gccause
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcCauseOutput1.awk
${
JSTAT
}
-J-XX
:+Use
PerfData
-J-XX
:+Use
SerialGC
-gccause
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcCauseOutput1.awk
test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcnewcapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcNewCapacityOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcnewcapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcNewCapacityOutput1.awk
test/sun/tools/jstat/jstatGcNewOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcnew
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcNewOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcnew
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcNewOutput1.awk
test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcoldcapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcOldCapacityOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcoldcapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcOldCapacityOutput1.awk
test/sun/tools/jstat/jstatGcOldOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcold
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcOldOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcold
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcOldOutput1.awk
test/sun/tools/jstat/jstatGcOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gc
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gc
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcOutput1.awk
test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcpermcapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcPermCapacityOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcpermcapacity
0 2>&1 |
awk
-f
${
TESTSRC
}
/gcPermCapacityOutput1.awk
test/sun/tools/jstat/jstatHelp.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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,7 +33,7 @@ setup
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
rm
-f
jstat.out 2>/dev/null
${
JSTAT
}
-?
>
jstat.out 2>&1
${
JSTAT
}
-
J-XX
:+UsePerfData -
?
>
jstat.out 2>&1
diff
-w
jstat.out
${
TESTSRC
}
/usage.out
if
[
$?
!=
0
]
...
...
@@ -43,7 +43,7 @@ then
fi
rm
-f
jstat.out 2>/dev/null
${
JSTAT
}
-help
>
jstat.out 2>&1
${
JSTAT
}
-
J-XX
:+UsePerfData
-
help
>
jstat.out 2>&1
diff
-w
jstat.out
${
TESTSRC
}
/usage.out
if
[
$?
!=
0
]
...
...
test/sun/tools/jstat/jstatLineCounts1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcutil
0 250 5 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
0 250 5 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts1.awk
test/sun/tools/jstat/jstatLineCounts2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcutil
0 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts2.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
0 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts2.awk
test/sun/tools/jstat/jstatLineCounts3.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcutil
-h
10 0 250 10 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts3.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
-h
10 0 250 10 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts3.awk
test/sun/tools/jstat/jstatLineCounts4.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcutil
-h
10 0 250 11 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts4.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
-h
10 0 250 11 2>&1 |
awk
-f
${
TESTSRC
}
/lineCounts4.awk
test/sun/tools/jstat/jstatOptions1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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,8 +33,8 @@ setup
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
rm
-f
jstat.out1 jstat.out2 2>/dev/null
${
JSTAT
}
-options
>
jstat.out1 2>&1
${
JSTAT
}
-options
-J-Djstat
.showUnsupported
=
true
>
jstat.out2 2>&1
${
JSTAT
}
-
J-XX
:+UsePerfData
-
options
>
jstat.out1 2>&1
${
JSTAT
}
-
J-XX
:+UsePerfData
-
options
-J-Djstat
.showUnsupported
=
true
>
jstat.out2 2>&1
diff
-w
jstat.out1
${
TESTSRC
}
/options1.out
diff
-w
jstat.out2
${
TESTSRC
}
/options2.out
test/sun/tools/jstat/jstatPrintCompilationOutput1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -35,4 +35,4 @@ JSTAT="${TESTJAVA}/bin/jstat"
# run with -Xcomp as jstat may complete too quickly to assure
# that compilation occurs.
${
JSTAT
}
-J-Xcomp
-printcompilation
0 2>&1 |
awk
-f
${
TESTSRC
}
/printCompilationOutput1.awk
${
JSTAT
}
-J-X
X
:+UsePerfData
-J-X
comp
-printcompilation
0 2>&1 |
awk
-f
${
TESTSRC
}
/printCompilationOutput1.awk
test/sun/tools/jstat/jstatSnap1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-snap
0 2>&1 |
awk
-f
${
TESTSRC
}
/snap1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
snap
0 2>&1 |
awk
-f
${
TESTSRC
}
/snap1.awk
test/sun/tools/jstat/jstatSnap2.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-J-Djstat
.showUnsupported
=
true
-snap
0 2>&1 |
awk
-f
${
TESTSRC
}
/snap2.awk
${
JSTAT
}
-J-
XX
:+UsePerfData
-J-
Djstat
.showUnsupported
=
true
-snap
0 2>&1 |
awk
-f
${
TESTSRC
}
/snap2.awk
test/sun/tools/jstat/jstatTimeStamp1.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004,
2011,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,4 +33,4 @@ verify_os
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
${
JSTAT
}
-gcutil
-t
0 2>&1 |
awk
-f
${
TESTSRC
}
/timeStamp1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
-t
0 2>&1 |
awk
-f
${
TESTSRC
}
/timeStamp1.awk
test/sun/tools/jstatd/jstatdDefaults.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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
...
...
@@ -45,13 +45,13 @@ HOSTNAME=`uname -n`
JSTATD_OUT
=
"jstatd_
$$
.out"
${
JSTATD
}
-J-Djava
.security.policy
=
${
TESTSRC
}
/all.policy 2>&1
>
${
JSTATD_OUT
}
&
${
JSTATD
}
-J-
XX
:+UsePerfData
-J-
Djava
.security.policy
=
${
TESTSRC
}
/all.policy 2>&1
>
${
JSTATD_OUT
}
&
JSTATD_PID
=
$!
echo
"jstatd started as pid
${
JSTATD_PID
}
"
sleep
3
${
JPS
}
${
HOSTNAME
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
${
JPS
}
-J-XX
:+UsePerfData
${
HOSTNAME
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
if
[
$?
-ne
0
]
then
...
...
@@ -60,7 +60,7 @@ then
exit
1
fi
${
JSTAT
}
-gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
if
[
${
RC
}
-ne
0
]
...
...
test/sun/tools/jstatd/jstatdExternalRegistry.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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
...
...
@@ -53,19 +53,19 @@ fi
RMIREGISTRY_OUT
=
"rmiregistry_
$$
.out"
JSTATD_OUT
=
"jstatd_
$$
.out"
${
RMIREGISTRY
}
${
PORT
}
>
${
RMIREGISTRY_OUT
}
2>&1 &
${
RMIREGISTRY
}
-J-XX
:+UsePerfData
${
PORT
}
>
${
RMIREGISTRY_OUT
}
2>&1 &
RMIREGISTRY_PID
=
$!
echo
"rmiregistry started on port
${
PORT
}
as pid
${
RMIREGISTRY_PID
}
"
sleep
3
${
JSTATD
}
-J-Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT
}
>
${
JSTATD_OUT
}
2>&1 &
${
JSTATD
}
-J-
XX
:+UsePerfData
-J-
Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT
}
>
${
JSTATD_OUT
}
2>&1 &
JSTATD_PID
=
$!
echo
"jstatd started as pid
${
JSTATD_PID
}
"
sleep
3
${
JPS
}
${
HOSTNAME
}
:
${
PORT
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
${
JPS
}
-J-XX
:+UsePerfData
${
HOSTNAME
}
:
${
PORT
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
if
[
$?
-ne
0
]
then
...
...
@@ -73,7 +73,7 @@ then
exit
1
fi
${
JSTAT
}
-gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
if
[
${
RC
}
-ne
0
]
...
...
test/sun/tools/jstatd/jstatdPort.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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
...
...
@@ -50,13 +50,13 @@ fi
JSTATD_OUT
=
"jstatd_
$$
.out"
${
JSTATD
}
-J-Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT
}
2>&1
>
${
JSTATD_OUT
}
&
${
JSTATD
}
-J-
XX
:+UsePerfData
-J-
Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT
}
2>&1
>
${
JSTATD_OUT
}
&
JSTATD_PID
=
$!
echo
"jstatd started as pid
${
JSTATD_PID
}
on port
${
PORT
}
"
sleep
3
${
JPS
}
${
HOSTNAME
}
:
${
PORT
}
2>&1
|
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
${
JPS
}
-J-XX
:+UsePerfData
${
HOSTNAME
}
:
${
PORT
}
2>&1 |
tee
jps.out
|
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
if
[
$?
-ne
0
]
then
...
...
@@ -65,7 +65,7 @@ then
exit
1
fi
${
JSTAT
}
-gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
if
[
${
RC
}
-ne
0
]
...
...
test/sun/tools/jstatd/jstatdServerName.sh
浏览文件 @
b5bf76e2
#
# Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
1
, 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
...
...
@@ -54,20 +54,20 @@ SERVERNAME="SecondJstatdServer"
JSTATD_1_OUT
=
"jstatd_
$$
_1.out"
JSTATD_2_OUT
=
"jstatd_
$$
_2.out"
${
JSTATD
}
-J-Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT_1
}
2>&1
>
${
JSTATD_1_OUT
}
&
${
JSTATD
}
-J-
XX
:+UsePerfData
-J-
Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT_1
}
2>&1
>
${
JSTATD_1_OUT
}
&
JSTATD_1_PID
=
$!
echo
"first jstatd started as pid
${
JSTATD_1_PID
}
on port
${
PORT_1
}
with default server name"
sleep
3
${
JSTATD
}
-J-Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT_2
}
-n
${
SERVERNAME
}
2>&1
>
${
JSTATD_2_OUT
}
&
${
JSTATD
}
-J-
XX
:+UsePerfData
-J-
Djava
.security.policy
=
${
TESTSRC
}
/all.policy
-p
${
PORT_2
}
-n
${
SERVERNAME
}
2>&1
>
${
JSTATD_2_OUT
}
&
JSTATD_2_PID
=
$!
echo
"second jstatd started as pid
${
JSTATD_2_PID
}
on port
${
PORT_2
}
with name
${
SERVERNAME
}
"
sleep
3
echo
"running:
${
JPS
}
${
HOSTNAME
}
:
${
PORT_1
}
"
${
JPS
}
${
HOSTNAME
}
:
${
PORT_1
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
echo
"running:
${
JPS
}
-J-XX:+UsePerfData
${
HOSTNAME
}
:
${
PORT_1
}
"
${
JPS
}
-J-XX
:+UsePerfData
${
HOSTNAME
}
:
${
PORT_1
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
if
[
$?
-ne
0
]
then
...
...
@@ -76,8 +76,8 @@ then
exit
1
fi
echo
"running:
${
JPS
}
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
"
${
JPS
}
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
echo
"running:
${
JPS
}
-J-XX:+UsePerfData
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
"
${
JPS
}
-J-XX
:+UsePerfData
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
2>&1 |
awk
-f
${
TESTSRC
}
/jpsOutput1.awk
if
[
$?
-ne
0
]
then
...
...
@@ -86,8 +86,8 @@ then
exit
1
fi
echo
"running:
${
JSTAT
}
-gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5"
${
JSTAT
}
-gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
echo
"running:
${
JSTAT
}
-
J-XX:+UsePerfData -
gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5"
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
if
[
${
RC
}
-ne
0
]
...
...
@@ -95,8 +95,8 @@ then
echo
"jstat output differs from expected output"
fi
echo
"running:
${
JSTAT
}
-gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5"
${
JSTAT
}
-gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
echo
"running:
${
JSTAT
}
-
J-XX:+UsePerfData -
gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5"
${
JSTAT
}
-
J-XX
:+UsePerfData
-
gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
if
[
${
RC
}
-ne
0
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录