Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
ce4e4b9f
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看板
提交
ce4e4b9f
编写于
1月 07, 2014
作者:
R
roland
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8028536: Test cases to cover type system fixes pushed with 8024070
Summary: extra test cases for type speculation Reviewed-by: kvn
上级
18399455
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
136 addition
and
1 deletion
+136
-1
test/compiler/types/TypeSpeculation.java
test/compiler/types/TypeSpeculation.java
+136
-1
未找到文件。
test/compiler/types/TypeSpeculation.java
浏览文件 @
ce4e4b9f
...
...
@@ -25,7 +25,7 @@
* @test
* @bug 8024070
* @summary Test that type speculation doesn't cause incorrect execution
* @run main/othervm -XX:
-UseOnStackReplacement -XX:-BackgroundCompilation -XX:TypeProfileLevel=222
TypeSpeculation
* @run main/othervm -XX:
+IgnoreUnrecognizedVMOptions -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:TypeProfileLevel=222 -XX:+UnlockExperimentalVMOptions -XX:+UseTypeSpeculation
TypeSpeculation
*
*/
...
...
@@ -398,6 +398,133 @@ public class TypeSpeculation {
return
true
;
}
// java/lang/Object:AnyNull:exact *,iid=top
// meets
// stable:bottom[int:max..0]:NotNull *
static
void
test10_4
(
Object
o
)
{
}
static
void
test10_3
(
Object
o
,
boolean
b
)
{
if
(
b
)
{
test10_4
(
o
);
}
}
static
void
test10_2
(
Object
o
,
boolean
b1
,
boolean
b2
)
{
if
(
b1
)
{
test10_3
(
o
,
b2
);
}
}
static
void
test10_1
(
B
[]
b
,
boolean
b1
,
boolean
b2
)
{
test10_2
(
b
,
b1
,
b2
);
}
static
boolean
test10
()
{
Object
o
=
new
Object
();
A
[]
a
=
new
A
[
10
];
B
[]
b
=
new
B
[
10
];
B
[]
c
=
new
C
[
10
];
for
(
int
i
=
0
;
i
<
20000
;
i
++)
{
test10_1
(
b
,
false
,
false
);
test10_1
(
c
,
false
,
false
);
test10_2
(
a
,
true
,
false
);
test10_3
(
o
,
true
);
}
return
true
;
}
// stable:TypeSpeculation$B:TopPTR *,iid=top[int:max..0]:TopPTR *,iid=top
// meets
// java/lang/Object:AnyNull:exact *,iid=top
static
void
test11_3
(
Object
o
)
{
}
static
void
test11_2
(
Object
o
,
boolean
b
)
{
if
(
b
)
{
test11_3
(
o
);
}
}
static
void
test11_1
(
B
[]
b
,
boolean
bb
)
{
test11_2
(
b
,
bb
);
}
static
boolean
test11
()
{
Object
o
=
new
Object
();
B
[]
b
=
new
B
[
10
];
B
[]
c
=
new
C
[
10
];
for
(
int
i
=
0
;
i
<
20000
;
i
++)
{
test11_1
(
b
,
false
);
test11_1
(
c
,
false
);
test11_2
(
o
,
true
);
}
return
true
;
}
// TypeSpeculation$I *
// meets
// java/lang/Object:AnyNull *,iid=top
static
void
test12_3
(
Object
o
)
{
}
static
void
test12_2
(
Object
o
,
boolean
b
)
{
if
(
b
)
{
test12_3
(
o
);
}
}
static
void
test12_1
(
I
i
,
boolean
b
)
{
test12_2
(
i
,
b
);
}
static
boolean
test12
()
{
Object
o
=
new
Object
();
B
b
=
new
B
();
C
c
=
new
C
();
for
(
int
i
=
0
;
i
<
20000
;
i
++)
{
test12_1
(
b
,
false
);
test12_1
(
c
,
false
);
test12_2
(
o
,
true
);
}
return
true
;
}
// stable:bottom[int:max..0]:NotNull *
// meets
// stable:TypeSpeculation$A:TopPTR *,iid=top[int:max..0]:AnyNull:exact *,iid=top
static
Object
test13_3
(
Object
o
,
boolean
b
)
{
Object
oo
;
if
(
b
)
{
oo
=
o
;
}
else
{
oo
=
new
A
[
10
];
}
return
oo
;
}
static
void
test13_2
(
Object
o
,
boolean
b1
,
boolean
b2
)
{
if
(
b1
)
{
test13_3
(
o
,
b2
);
}
}
static
void
test13_1
(
B
[]
b
,
boolean
b1
,
boolean
b2
)
{
test13_2
(
b
,
b1
,
b2
);
}
static
boolean
test13
()
{
A
[]
a
=
new
A
[
10
];
B
[]
b
=
new
B
[
10
];
B
[]
c
=
new
C
[
10
];
for
(
int
i
=
0
;
i
<
20000
;
i
++)
{
test13_1
(
b
,
false
,
false
);
test13_1
(
c
,
false
,
false
);
test13_2
(
a
,
true
,
(
i
%
2
)
==
0
);
}
return
true
;
}
static
public
void
main
(
String
[]
args
)
{
boolean
success
=
true
;
...
...
@@ -419,6 +546,14 @@ public class TypeSpeculation {
success
=
test9
()
&&
success
;
success
=
test10
()
&&
success
;
success
=
test11
()
&&
success
;
success
=
test12
()
&&
success
;
success
=
test13
()
&&
success
;
if
(
success
)
{
System
.
out
.
println
(
"TEST PASSED"
);
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录