Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
a301faab
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看板
提交
a301faab
编写于
2月 17, 2020
作者:
N
neugens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8230707: JFR related tests are failing
Reviewed-by: shade, andrew
上级
348f2314
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
18 addition
and
12 deletion
+18
-12
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+8
-0
test/runtime/EnableTracing/TestEnableTracing.java
test/runtime/EnableTracing/TestEnableTracing.java
+0
-11
test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
+10
-1
未找到文件。
src/share/vm/runtime/globals.hpp
浏览文件 @
a301faab
...
...
@@ -3990,6 +3990,14 @@ class CommandLineFlags {
"Use the FP register for holding the frame pointer " \
"and not as a general purpose register.") \
\
product(bool, EnableTracing, false, \
"Enable event-based tracing" \
"Deprecated: use FlightRecorder instead") \
\
product(bool, UseLockedTracing, false, \
"Use locked-tracing when doing event-based tracing" \
"Deprecated: use FlightRecorder instead") \
\
JFR_ONLY(product(bool, FlightRecorder, false, \
"Enable Flight Recorder")) \
\
...
...
test/runtime/EnableTracing/TestEnableTracing.java
浏览文件 @
a301faab
...
...
@@ -33,24 +33,13 @@ import com.oracle.java.testlibrary.ProcessTools;
import
com.oracle.java.testlibrary.OutputAnalyzer
;
public
class
TestEnableTracing
{
public
static
final
String
OPENJDK_MARK
=
"OpenJDK"
;
public
static
void
main
(
String
[]
args
)
throws
Exception
{
ProcessBuilder
pb
=
ProcessTools
.
createJavaProcessBuilder
(
"-XX:+EnableTracing"
,
"-version"
);
OutputAnalyzer
output
=
new
OutputAnalyzer
(
pb
.
start
());
if
(
output
.
getStderr
().
contains
(
OPENJDK_MARK
))
{
output
.
shouldMatch
(
"^Class Load"
);
output
.
shouldContain
(
"Loaded Class ="
);
// verify TraceStream print_val Klass*
}
output
.
shouldHaveExitValue
(
0
);
pb
=
ProcessTools
.
createJavaProcessBuilder
(
"-XX:+EnableTracing"
,
"-XX:+UseLockedTracing"
,
"-Xcomp "
,
"-version"
);
output
=
new
OutputAnalyzer
(
pb
.
start
());
if
(
output
.
getStderr
().
contains
(
OPENJDK_MARK
))
{
output
.
shouldMatch
(
"^Class Load"
);
output
.
shouldMatch
(
"^Compilation"
);
output
.
shouldContain
(
"Java Method ="
);
// verify TraceStream print_val Method*
}
output
.
shouldHaveExitValue
(
0
);
}
}
test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
浏览文件 @
a301faab
...
...
@@ -76,6 +76,7 @@ public class WhiteBox {
// Memory
public
native
long
getObjectAddress
(
Object
o
);
public
native
int
getHeapOopSize
();
public
native
long
getHeapAlignment
();
public
native
int
getVMPageSize
();
public
native
long
getVMLargePageSize
();
...
...
@@ -160,7 +161,12 @@ public class WhiteBox {
public
boolean
enqueueMethodForCompilation
(
Executable
method
,
int
compLevel
)
{
return
enqueueMethodForCompilation
(
method
,
compLevel
,
-
1
/*InvocationEntryBci*/
);
}
public
native
boolean
enqueueMethodForCompilation
(
Executable
method
,
int
compLevel
,
int
entry_bci
);
public
boolean
enqueueMethodForCompilation
(
Executable
method
,
int
compLevel
,
int
entry_bci
)
{
return
enqueueMethodForCompilation0
(
method
,
compLevel
,
entry_bci
);
}
public
native
boolean
enqueueInitializerForCompilation0
(
Class
clazz
,
int
compLevel
);
public
native
boolean
enqueueMethodForCompilation0
(
Executable
method
,
int
compLevel
,
int
entry_bci
);
public
native
void
clearMethodState
(
Executable
method
);
public
native
void
markMethodProfiled
(
Executable
method
);
public
native
int
getMethodEntryBci
(
Executable
method
);
...
...
@@ -171,6 +177,9 @@ public class WhiteBox {
// Memory
public
native
void
readReservedMemory
();
public
native
long
allocateCodeBlob
(
int
size
,
int
blobType
);
public
native
void
freeCodeBlob
(
long
address
);
public
native
Object
[]
getCodeBlob
(
long
address
);
public
native
long
allocateMetaspace
(
ClassLoader
classLoader
,
long
size
);
public
native
void
freeMetaspace
(
ClassLoader
classLoader
,
long
addr
,
long
size
);
public
native
long
incMetaspaceCapacityUntilGC
(
long
increment
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录