Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
65fadff1
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
65fadff1
编写于
2月 20, 2013
作者:
H
hseigel
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
b36d5705
12ac8713
变更
29
隐藏空白更改
内联
并排
Showing
29 changed file
with
212 addition
and
264 deletion
+212
-264
make/Makefile
make/Makefile
+0
-3
make/bsd/makefiles/defs.make
make/bsd/makefiles/defs.make
+0
-2
make/bsd/makefiles/vm.make
make/bsd/makefiles/vm.make
+2
-5
make/bsd/makefiles/wb.make
make/bsd/makefiles/wb.make
+0
-46
make/linux/makefiles/defs.make
make/linux/makefiles/defs.make
+0
-2
make/linux/makefiles/vm.make
make/linux/makefiles/vm.make
+1
-4
make/linux/makefiles/wb.make
make/linux/makefiles/wb.make
+0
-46
make/solaris/makefiles/defs.make
make/solaris/makefiles/defs.make
+0
-2
make/solaris/makefiles/vm.make
make/solaris/makefiles/vm.make
+1
-4
make/solaris/makefiles/wb.make
make/solaris/makefiles/wb.make
+0
-46
make/windows/makefiles/debug.make
make/windows/makefiles/debug.make
+1
-2
make/windows/makefiles/defs.make
make/windows/makefiles/defs.make
+0
-2
make/windows/makefiles/fastdebug.make
make/windows/makefiles/fastdebug.make
+1
-2
make/windows/makefiles/product.make
make/windows/makefiles/product.make
+1
-2
make/windows/makefiles/wb.make
make/windows/makefiles/wb.make
+0
-54
src/share/vm/runtime/arguments.cpp
src/share/vm/runtime/arguments.cpp
+0
-13
test/compiler/whitebox/DeoptimizeAllTest.java
test/compiler/whitebox/DeoptimizeAllTest.java
+4
-3
test/compiler/whitebox/DeoptimizeMethodTest.java
test/compiler/whitebox/DeoptimizeMethodTest.java
+4
-3
test/compiler/whitebox/IsMethodCompilableTest.java
test/compiler/whitebox/IsMethodCompilableTest.java
+4
-3
test/compiler/whitebox/MakeMethodNotCompilableTest.java
test/compiler/whitebox/MakeMethodNotCompilableTest.java
+4
-3
test/compiler/whitebox/SetDontInlineMethodTest.java
test/compiler/whitebox/SetDontInlineMethodTest.java
+4
-3
test/runtime/NMT/AllocTestType.java
test/runtime/NMT/AllocTestType.java
+4
-3
test/runtime/NMT/PrintNMTStatistics.java
test/runtime/NMT/PrintNMTStatistics.java
+2
-2
test/runtime/NMT/SummarySanityCheck.java
test/runtime/NMT/SummarySanityCheck.java
+4
-3
test/sanity/WBApi.java
test/sanity/WBApi.java
+27
-2
test/serviceability/ParserTest.java
test/serviceability/ParserTest.java
+28
-3
test/testlibrary/ClassFileInstaller.java
test/testlibrary/ClassFileInstaller.java
+53
-0
test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
+1
-1
test/testlibrary/whitebox/sun/hotspot/parser/DiagnosticCommand.java
...ibrary/whitebox/sun/hotspot/parser/DiagnosticCommand.java
+66
-0
未找到文件。
make/Makefile
浏览文件 @
65fadff1
...
...
@@ -464,9 +464,6 @@ endif
$(EXPORT_LIB_DIR)/%.jar
:
$(GEN_DIR)/%.jar
$
(
install-file
)
$(EXPORT_JRE_LIB_DIR)/%.jar
:
$(GEN_DIR)/%.jar
$
(
install-file
)
# Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h, jfr.h)
$(EXPORT_INCLUDE_DIR)/%
:
$(GEN_DIR)/jvmtifiles/%
$
(
install-file
)
...
...
make/bsd/makefiles/defs.make
浏览文件 @
65fadff1
...
...
@@ -157,8 +157,6 @@ EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
EXPORT_CLIENT_DIR
=
$(EXPORT_JRE_LIB_ARCH_DIR)
/client
EXPORT_MINIMAL_DIR
=
$(EXPORT_JRE_LIB_ARCH_DIR)
/minimal
EXPORT_LIST
+=
$(EXPORT_JRE_LIB_DIR)
/wb.jar
ifeq
($(findstring true, $(JVM_VARIANT_SERVER) $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
EXPORT_LIST
+=
$(EXPORT_SERVER_DIR)
/Xusage.txt
EXPORT_LIST
+=
$(EXPORT_SERVER_DIR)
/libjvm.
$(LIBRARY_SUFFIX)
...
...
make/bsd/makefiles/vm.make
浏览文件 @
65fadff1
...
...
@@ -337,9 +337,6 @@ include $(MAKEFILES_DIR)/jsig.make
# Serviceability agent
include
$(MAKEFILES_DIR)/saproc.make
# Whitebox testing API
include
$(MAKEFILES_DIR)/wb.make
#----------------------------------------------------------------------
ifeq
($(OS_VENDOR), Darwin)
...
...
@@ -347,10 +344,10 @@ $(LIBJVM).dSYM: $(LIBJVM)
dsymutil
$(LIBJVM)
# no libjvm_db for macosx
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(BUILDLIBSAPROC) dtraceCheck $(LIBJVM).dSYM
$(WB_JAR)
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(BUILDLIBSAPROC) dtraceCheck $(LIBJVM).dSYM
echo
"Doing vm.make build:"
else
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
$(WB_JAR)
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
endif
install
:
install_jvm install_jsig install_saproc
...
...
make/bsd/makefiles/wb.make
已删除
100644 → 0
浏览文件 @
b36d5705
#
# Copyright (c) 2012, 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.
#
# 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.
#
#
# Rules to build whitebox testing library, used by vm.make
WB
=
wb
WBSRCDIR
=
$(GAMMADIR)
/src/share/tools/whitebox
WB_JAR
=
$(GENERATED)
/
$(WB)
.jar
WB_JAVA_SRCS
=
$(
shell
find
$(WBSRCDIR)
-name
'*.java'
)
WB_JAVA_CLASSDIR
=
$(GENERATED)
/wb/classes
WB_JAVA_CLASSES
=
$(
patsubst
$(WBSRCDIR)
/%,
$(WB_JAVA_CLASSDIR)
/%,
\
$(
patsubst
%.java,%.class,
$(WB_JAVA_SRCS)
))
$(WB_JAVA_CLASSDIR)/%.class
:
$(WBSRCDIR)/%.java $(WB_JAVA_CLASSDIR)
$(REMOTE)
$(COMPILE.JAVAC)
-sourcepath
$(WBSRCDIR)
-nowarn
-d
$(WB_JAVA_CLASSDIR)
$<
$(WB_JAR)
:
$(WB_JAVA_CLASSES)
$(QUIETLY)
$(REMOTE)
$(RUN.JAR)
cf
$@
-C
$(WB_JAVA_CLASSDIR)
/ .
$(WB_JAVA_CLASSDIR)
:
$(QUIETLY)
mkdir
-p
$@
make/linux/makefiles/defs.make
浏览文件 @
65fadff1
...
...
@@ -258,8 +258,6 @@ EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
EXPORT_CLIENT_DIR
=
$(EXPORT_JRE_LIB_ARCH_DIR)
/client
EXPORT_MINIMAL_DIR
=
$(EXPORT_JRE_LIB_ARCH_DIR)
/minimal
EXPORT_LIST
+=
$(EXPORT_JRE_LIB_DIR)
/wb.jar
ifeq
($(findstring true, $(JVM_VARIANT_SERVER) $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
EXPORT_LIST
+=
$(EXPORT_SERVER_DIR)
/Xusage.txt
EXPORT_LIST
+=
$(EXPORT_SERVER_DIR)
/libjvm.
$(LIBRARY_SUFFIX)
...
...
make/linux/makefiles/vm.make
浏览文件 @
65fadff1
...
...
@@ -381,12 +381,9 @@ include $(MAKEFILES_DIR)/jsig.make
# Serviceability agent
include
$(MAKEFILES_DIR)/saproc.make
# Whitebox testing API
include
$(MAKEFILES_DIR)/wb.make
#----------------------------------------------------------------------
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC) dtraceCheck
$(WB_JAR)
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC) dtraceCheck
install
:
install_jvm install_jsig install_saproc
...
...
make/linux/makefiles/wb.make
已删除
100644 → 0
浏览文件 @
b36d5705
#
# Copyright (c) 2012, 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.
#
# 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.
#
#
# Rules to build whitebox testing library, used by vm.make
WB
=
wb
WBSRCDIR
=
$(GAMMADIR)
/src/share/tools/whitebox
WB_JAR
=
$(GENERATED)
/
$(WB)
.jar
WB_JAVA_SRCS
=
$(
shell
find
$(WBSRCDIR)
-name
'*.java'
)
WB_JAVA_CLASSDIR
=
$(GENERATED)
/wb/classes
WB_JAVA_CLASSES
=
$(
patsubst
$(WBSRCDIR)
/%,
$(WB_JAVA_CLASSDIR)
/%,
\
$(
patsubst
%.java,%.class,
$(WB_JAVA_SRCS)
))
$(WB_JAVA_CLASSDIR)/%.class
:
$(WBSRCDIR)/%.java $(WB_JAVA_CLASSDIR)
$(REMOTE)
$(COMPILE.JAVAC)
-sourcepath
$(WBSRCDIR)
-nowarn
-d
$(WB_JAVA_CLASSDIR)
$<
$(WB_JAR)
:
$(WB_JAVA_CLASSES)
$(QUIETLY)
$(REMOTE)
$(RUN.JAR)
cf
$@
-C
$(WB_JAVA_CLASSDIR)
/ .
$(WB_JAVA_CLASSDIR)
:
$(QUIETLY)
mkdir
-p
$@
make/solaris/makefiles/defs.make
浏览文件 @
65fadff1
...
...
@@ -187,8 +187,6 @@ ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
endif
endif
EXPORT_LIST
+=
$(EXPORT_JRE_LIB_DIR)
/wb.jar
EXPORT_SERVER_DIR
=
$(EXPORT_JRE_LIB_ARCH_DIR)
/server
EXPORT_CLIENT_DIR
=
$(EXPORT_JRE_LIB_ARCH_DIR)
/client
...
...
make/solaris/makefiles/vm.make
浏览文件 @
65fadff1
...
...
@@ -347,12 +347,9 @@ include $(MAKEFILES_DIR)/jsig.make
# Serviceability agent
include
$(MAKEFILES_DIR)/saproc.make
# Whitebox testing API
include
$(MAKEFILES_DIR)/wb.make
#----------------------------------------------------------------------
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(LIBJVM_DTRACE) $(BUILDLIBSAPROC) dtraceCheck
$(WB_JAR)
build
:
$(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(LIBJVM_DTRACE) $(BUILDLIBSAPROC) dtraceCheck
install
:
install_jvm install_jsig install_saproc
...
...
make/solaris/makefiles/wb.make
已删除
100644 → 0
浏览文件 @
b36d5705
#
# Copyright (c) 2012, 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.
#
# 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.
#
# Rules to build whitebox testing library, used by vm.make
WB
=
wb
WBSRCDIR
=
$(GAMMADIR)
/src/share/tools/whitebox
WB_JAR
=
$(GENERATED)
/
$(WB)
.jar
WB_JAVA_SRCS
=
$(
shell
find
$(WBSRCDIR)
-name
'*.java'
)
WB_JAVA_CLASSDIR
=
$(GENERATED)
/wb/classes
WB_JAVA_CLASSES
=
$(
patsubst
$(WBSRCDIR)
/%,
$(WB_JAVA_CLASSDIR)
/%,
\
$(
patsubst
%.java,%.class,
$(WB_JAVA_SRCS)
))
$(WB_JAVA_CLASSDIR)/%.class
:
$(WBSRCDIR)/%.java $(WB_JAVA_CLASSDIR)
$(REMOTE)
$(COMPILE.JAVAC)
-sourcepath
$(WBSRCDIR)
-nowarn
-d
$(WB_JAVA_CLASSDIR)
$<
$(WB_JAR)
:
$(WB_JAVA_CLASSES)
$(QUIETLY)
$(REMOTE)
$(RUN.JAR)
cf
$@
-C
$(WB_JAVA_CLASSDIR)
/ .
$(WB_JAVA_CLASSDIR)
:
$(QUIETLY)
mkdir
-p
$@
make/windows/makefiles/debug.make
浏览文件 @
65fadff1
...
...
@@ -33,7 +33,7 @@ GENERATED=../generated
BUILD_PCH_FILE
=
_build_pch_file.obj
!
endif
default
::
$(BUILD_PCH_FILE) $(AOUT) launcher checkAndBuildSA
wb
default
::
$(BUILD_PCH_FILE) $(AOUT) launcher checkAndBuildSA
!
include
../local.make
!
include
compile.make
...
...
@@ -72,4 +72,3 @@ $(AOUT): $(Res_Files) $(Obj_Files) vm.def
!
include
$(WorkSpace)/make/windows/makefiles/shared.make
!
include
$(WorkSpace)/make/windows/makefiles/sa.make
!
include
$(WorkSpace)/make/windows/makefiles/launcher.make
!
include
$(WorkSpace)/make/windows/makefiles/wb.make
make/windows/makefiles/defs.make
浏览文件 @
65fadff1
...
...
@@ -277,8 +277,6 @@ ifeq ($(JVM_VARIANT_CLIENT),true)
endif
endif
EXPORT_LIST
+=
$(EXPORT_JRE_LIB_DIR)
/wb.jar
ifeq
($(BUILD_WIN_SA), 1)
EXPORT_LIST
+=
$(EXPORT_JRE_BIN_DIR)
/sawindbg.
$(LIBRARY_SUFFIX)
ifeq
($(ENABLE_FULL_DEBUG_SYMBOLS),1)
...
...
make/windows/makefiles/fastdebug.make
浏览文件 @
65fadff1
...
...
@@ -33,7 +33,7 @@ GENERATED=../generated
BUILD_PCH_FILE
=
_build_pch_file.obj
!
endif
default
::
$(BUILD_PCH_FILE) $(AOUT) launcher checkAndBuildSA
wb
default
::
$(BUILD_PCH_FILE) $(AOUT) launcher checkAndBuildSA
!
include
../local.make
!
include
compile.make
...
...
@@ -71,4 +71,3 @@ $(AOUT): $(Res_Files) $(Obj_Files) vm.def
!
include
$(WorkSpace)/make/windows/makefiles/shared.make
!
include
$(WorkSpace)/make/windows/makefiles/sa.make
!
include
$(WorkSpace)/make/windows/makefiles/launcher.make
!
include
$(WorkSpace)/make/windows/makefiles/wb.make
make/windows/makefiles/product.make
浏览文件 @
65fadff1
...
...
@@ -32,7 +32,7 @@ GENERATED=../generated
BUILD_PCH_FILE
=
_build_pch_file.obj
!
endif
default
::
$(BUILD_PCH_FILE) $(AOUT) launcher checkAndBuildSA
wb
default
::
$(BUILD_PCH_FILE) $(AOUT) launcher checkAndBuildSA
!
include
../local.make
!
include
compile.make
...
...
@@ -82,4 +82,3 @@ $(AOUT): $(Res_Files) $(Obj_Files) vm.def
!
include
$(WorkSpace)/make/windows/makefiles/shared.make
!
include
$(WorkSpace)/make/windows/makefiles/sa.make
!
include
$(WorkSpace)/make/windows/makefiles/launcher.make
!
include
$(WorkSpace)/make/windows/makefiles/wb.make
make/windows/makefiles/wb.make
已删除
100644 → 0
浏览文件 @
b36d5705
#
# Copyright (c) 2012, 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.
#
# 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 is used to build the whitebox testing lib
# and compile the tests which use it
!
include
$(WorkSpace)/make/windows/makefiles/rules.make
WBSRCDIR
=
$(WorkSpace)
/src/share/tools/whitebox
# turn GENERATED into a windows path to get sane dependencies
WB_CLASSES
=
$
(
GENERATED:/
=
\)\w
b
\c
lasses
WB_JAR
=
$
(
GENERATED:/
=
\)\w
b.jar
# call recursive make to do wildcard expansion
.SUFFIXES
:
.java .class
wb_java_srcs
:
$(WorkSpace)
\s
rc
\s
hare
\t
ools
\w
hitebox
\s
un
\h
otspot
\*
.java $(WB_CLASSES)
$(MAKE)
-f
$(WorkSpace)
\m
ake
\w
indows
\m
akefiles
\$
(
BUILD_FLAVOR
)
.make
$
(
**
:.java
=
.class
)
{$(WorkSpace)\src\share\tools\whitebox\sun\hotspot}.java.class
::
$(COMPILE_JAVAC)
-sourcepath
$(WBSRCDIR)
-d
$(WB_CLASSES)
$<
$(WB_JAR)
:
wb_java_srcs
$(RUN_JAR)
cf
$@
-C
$(WB_CLASSES)
.
# turn $@ to a unix path because mkdir in PATH is cygwin/mks mkdir
$(WB_CLASSES)
:
mkdir
-p
$
(
@:
\=
/
)
# main target to build wb
wb
:
$(WB_JAR)
src/share/vm/runtime/arguments.cpp
浏览文件 @
65fadff1
...
...
@@ -2191,19 +2191,6 @@ jint Arguments::parse_vm_init_args(const JavaVMInitArgs* args) {
FREE_C_HEAP_ARRAY
(
char
,
altclasses_path
,
mtInternal
);
}
if
(
WhiteBoxAPI
)
{
// Append wb.jar to bootclasspath if enabled
const
char
*
wb_jar
=
"wb.jar"
;
size_t
wb_path_len
=
strlen
(
get_meta_index_dir
())
+
1
+
strlen
(
wb_jar
);
char
*
wb_path
=
NEW_C_HEAP_ARRAY
(
char
,
wb_path_len
,
mtInternal
);
strcpy
(
wb_path
,
get_meta_index_dir
());
strcat
(
wb_path
,
wb_jar
);
scp
.
add_suffix
(
wb_path
);
scp_assembly_required
=
true
;
FREE_C_HEAP_ARRAY
(
char
,
wb_path
,
mtInternal
);
}
// Parse _JAVA_OPTIONS environment variable (if present) (mimics classic VM)
result
=
parse_java_options_environment_variable
(
&
scp
,
&
scp_assembly_required
);
if
(
result
!=
JNI_OK
)
{
...
...
test/compiler/whitebox/DeoptimizeAllTest.java
浏览文件 @
65fadff1
...
...
@@ -23,9 +23,10 @@
/*
* @test DeoptimizeAllTest
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI CompilerWhiteBoxTest.java
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI DeoptimizeAllTest.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DeoptimizeAllTest
* @library /testlibrary /testlibrary/whitebox
* @build DeoptimizeAllTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DeoptimizeAllTest
* @author igor.ignatyev@oracle.com
*/
public
class
DeoptimizeAllTest
extends
CompilerWhiteBoxTest
{
...
...
test/compiler/whitebox/DeoptimizeMethodTest.java
浏览文件 @
65fadff1
...
...
@@ -23,9 +23,10 @@
/*
* @test DeoptimizeMethodTest
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI CompilerWhiteBoxTest.java
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI DeoptimizeMethodTest.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DeoptimizeMethodTest
* @library /testlibrary /testlibrary/whitebox
* @build DeoptimizeMethodTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DeoptimizeMethodTest
* @author igor.ignatyev@oracle.com
*/
public
class
DeoptimizeMethodTest
extends
CompilerWhiteBoxTest
{
...
...
test/compiler/whitebox/IsMethodCompilableTest.java
浏览文件 @
65fadff1
...
...
@@ -24,9 +24,10 @@
/*
* @test IsMethodCompilableTest
* @bug 8007270
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI CompilerWhiteBoxTest.java
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI IsMethodCompilableTest.java
* @run main/othervm/timeout=600 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI IsMethodCompilableTest
* @library /testlibrary /testlibrary/whitebox
* @build IsMethodCompilableTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI IsMethodCompilableTest
* @author igor.ignatyev@oracle.com
*/
public
class
IsMethodCompilableTest
extends
CompilerWhiteBoxTest
{
...
...
test/compiler/whitebox/MakeMethodNotCompilableTest.java
浏览文件 @
65fadff1
...
...
@@ -23,9 +23,10 @@
/*
* @test MakeMethodNotCompilableTest
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI CompilerWhiteBoxTest.java
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI MakeMethodNotCompilableTest.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI MakeMethodNotCompilableTest
* @library /testlibrary /testlibrary/whitebox
* @build MakeMethodNotCompilableTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI MakeMethodNotCompilableTest
* @author igor.ignatyev@oracle.com
*/
public
class
MakeMethodNotCompilableTest
extends
CompilerWhiteBoxTest
{
...
...
test/compiler/whitebox/SetDontInlineMethodTest.java
浏览文件 @
65fadff1
...
...
@@ -23,9 +23,10 @@
/*
* @test SetDontInlineMethodTest
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI CompilerWhiteBoxTest.java
* @compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI SetDontInlineMethodTest.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI SetDontInlineMethodTest
* @library /testlibrary /testlibrary/whitebox
* @build SetDontInlineMethodTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI SetDontInlineMethodTest
* @author igor.ignatyev@oracle.com
*/
public
class
SetDontInlineMethodTest
extends
CompilerWhiteBoxTest
{
...
...
test/runtime/NMT/AllocTestType.java
浏览文件 @
65fadff1
...
...
@@ -25,9 +25,10 @@
* @test
* @summary Test consistency of NMT by leaking a few select allocations of the Test type and then verify visibility with jcmd
* @key nmt jcmd
* @library /testlibrary
* @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI AllocTestType.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail AllocTestType
* @library /testlibrary /testlibrary/whitebox
* @build AllocTestType
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail AllocTestType
*/
import
com.oracle.java.testlibrary.*
;
...
...
test/runtime/NMT/PrintNMTStatistics.java
浏览文件 @
65fadff1
...
...
@@ -26,8 +26,8 @@
* @key nmt regression
* @bug 8005936
* @summary Make sure PrintNMTStatistics works on normal JVM exit
* @library /testlibrary
* @run compile
-J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI
PrintNMTStatistics.java
* @library /testlibrary
/testlibrary/whitebox
* @run compile PrintNMTStatistics.java
*/
import
com.oracle.java.testlibrary.*
;
...
...
test/runtime/NMT/SummarySanityCheck.java
浏览文件 @
65fadff1
...
...
@@ -25,9 +25,10 @@
* @test
* @key nmt jcmd
* @summary Sanity check the output of NMT
* @library /testlibrary
* @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI SummarySanityCheck.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+WhiteBoxAPI SummarySanityCheck
* @library /testlibrary /testlibrary/whitebox
* @build SummarySanityCheck
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+WhiteBoxAPI SummarySanityCheck
*/
import
com.oracle.java.testlibrary.*
;
...
...
test/sanity/WBApi.java
浏览文件 @
65fadff1
/*
* 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* 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.
*/
/*
* @test WBApi
* @summary verify that whitebox functions can be linked and executed
* @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI WBApi.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI WBApi
* @library /testlibrary /testlibrary/whitebox
* @build WBApi
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI WBApi
*/
import
sun.hotspot.WhiteBox
;
...
...
test/serviceability/ParserTest.java
浏览文件 @
65fadff1
/*
* 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* 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.
*/
/*
* @test ParserTest
* @summary verify that whitebox functions can be linked and executed
* @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI ParserTest.java
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ParserTest
* @summary Test that the diagnostic command arguemnt parser works
* @library /testlibrary /testlibrary/whitebox
* @build ParserTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ParserTest
*/
import
java.math.BigInteger
;
...
...
test/testlibrary/ClassFileInstaller.java
0 → 100644
浏览文件 @
65fadff1
/*
* 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.
*
* 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.
*/
import
java.io.InputStream
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.nio.file.StandardCopyOption
;
/**
* Dump a class file for a class on the class path in the current directory
*/
public
class
ClassFileInstaller
{
/**
* @param args The names of the classes to dump
* @throws Exception
*/
public
static
void
main
(
String
...
args
)
throws
Exception
{
for
(
String
arg
:
args
)
{
ClassLoader
cl
=
ClassFileInstaller
.
class
.
getClassLoader
();
// Convert dotted class name to a path to a class file
String
pathName
=
arg
.
replace
(
'.'
,
'/'
).
concat
(
".class"
);
InputStream
is
=
cl
.
getResourceAsStream
(
pathName
);
// Create the class file's package directory
Path
p
=
Paths
.
get
(
pathName
);
Files
.
createDirectories
(
p
.
getParent
());
// Create the class file
Files
.
copy
(
is
,
p
,
StandardCopyOption
.
REPLACE_EXISTING
);
}
}
}
src/share/tools
/whitebox/sun/hotspot/WhiteBox.java
→
test/testlibrary
/whitebox/sun/hotspot/WhiteBox.java
浏览文件 @
65fadff1
/*
* 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
...
...
src/share/tools
/whitebox/sun/hotspot/parser/DiagnosticCommand.java
→
test/testlibrary
/whitebox/sun/hotspot/parser/DiagnosticCommand.java
浏览文件 @
65fadff1
/*
* 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* 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.hotspot.parser
;
public
class
DiagnosticCommand
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录