Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ccccc01c
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看板
提交
ccccc01c
编写于
11月 20, 2013
作者:
M
mchung
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8028647: Add instrumentation in GetSafepointSyncTime.java and remove it from ProblemList.txt
Reviewed-by: sla, chegar
上级
18b5c0e7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
19 deletion
+13
-19
test/ProblemList.txt
test/ProblemList.txt
+0
-3
test/sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java
.../management/HotspotRuntimeMBean/GetSafepointSyncTime.java
+13
-16
未找到文件。
test/ProblemList.txt
浏览文件 @
ccccc01c
...
@@ -129,9 +129,6 @@ java/lang/management/MemoryMXBean/CollectionUsageThreshold.java generic-all
...
@@ -129,9 +129,6 @@ java/lang/management/MemoryMXBean/CollectionUsageThreshold.java generic-all
# jdk_management
# jdk_management
# 8010897
sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java macosx-all
# 8028150
# 8028150
sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh windows-all
sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh windows-all
...
...
test/sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java
浏览文件 @
ccccc01c
...
@@ -45,12 +45,9 @@ public class GetSafepointSyncTime {
...
@@ -45,12 +45,9 @@ public class GetSafepointSyncTime {
private
static
final
long
MIN_VALUE_FOR_PASS
=
1
;
private
static
final
long
MIN_VALUE_FOR_PASS
=
1
;
private
static
final
long
MAX_VALUE_FOR_PASS
=
Long
.
MAX_VALUE
;
private
static
final
long
MAX_VALUE_FOR_PASS
=
Long
.
MAX_VALUE
;
private
static
boolean
trace
=
false
;
public
static
void
main
(
String
args
[])
throws
Exception
{
public
static
void
main
(
String
args
[])
throws
Exception
{
if
(
args
.
length
>
0
&&
args
[
0
].
equals
(
"trace"
))
{
long
count
=
mbean
.
getSafepointCount
();
trace
=
true
;
long
value
=
mbean
.
getSafepointSyncTime
();
}
// Thread.getAllStackTraces() should cause safepoints.
// Thread.getAllStackTraces() should cause safepoints.
// If this test is failing because it doesn't,
// If this test is failing because it doesn't,
...
@@ -59,15 +56,15 @@ public class GetSafepointSyncTime {
...
@@ -59,15 +56,15 @@ public class GetSafepointSyncTime {
Thread
.
getAllStackTraces
();
Thread
.
getAllStackTraces
();
}
}
long
value
=
mbean
.
getSafepointSyncTime
();
long
count1
=
mbean
.
getSafepointCount
();
long
value1
=
mbean
.
getSafepointSyncTime
();
if
(
trace
)
{
System
.
out
.
format
(
"Safepoint count=%d (diff=%d), sync time=%d ms (diff=%d)%n"
,
System
.
out
.
println
(
"Safepoint sync time (ms): "
+
value
);
count1
,
count1
-
count
,
value1
,
value1
-
value
);
}
if
(
value
<
MIN_VALUE_FOR_PASS
||
value
>
MAX_VALUE_FOR_PASS
)
{
if
(
value
1
<
MIN_VALUE_FOR_PASS
||
value1
>
MAX_VALUE_FOR_PASS
)
{
throw
new
RuntimeException
(
"Safepoint sync time "
+
throw
new
RuntimeException
(
"Safepoint sync time "
+
"illegal value: "
+
value
+
" ms "
+
"illegal value: "
+
value
1
+
" ms "
+
"(MIN = "
+
MIN_VALUE_FOR_PASS
+
"; "
+
"(MIN = "
+
MIN_VALUE_FOR_PASS
+
"; "
+
"MAX = "
+
MAX_VALUE_FOR_PASS
+
")"
);
"MAX = "
+
MAX_VALUE_FOR_PASS
+
")"
);
}
}
...
@@ -76,16 +73,16 @@ public class GetSafepointSyncTime {
...
@@ -76,16 +73,16 @@ public class GetSafepointSyncTime {
Thread
.
getAllStackTraces
();
Thread
.
getAllStackTraces
();
}
}
long
count2
=
mbean
.
getSafepointCount
();
long
value2
=
mbean
.
getSafepointSyncTime
();
long
value2
=
mbean
.
getSafepointSyncTime
();
if
(
trace
)
{
System
.
out
.
format
(
"Safepoint count=%d (diff=%d), sync time=%d ms (diff=%d)%n"
,
System
.
out
.
println
(
"Safepoint sync time2 (ms): "
+
value2
);
count2
,
count2
-
count1
,
value2
,
value2
-
value1
);
}
if
(
value2
<=
value
)
{
if
(
value2
<=
value
1
)
{
throw
new
RuntimeException
(
"Safepoint sync time "
+
throw
new
RuntimeException
(
"Safepoint sync time "
+
"did not increase "
+
"did not increase "
+
"(value
= "
+
value
+
"; "
+
"(value
1 = "
+
value1
+
"; "
+
"value2 = "
+
value2
+
")"
);
"value2 = "
+
value2
+
")"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录