Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
8c0778b3
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看板
提交
8c0778b3
编写于
5月 18, 2010
作者:
K
kvn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6953267: assert in EA code with -XX:+StressReflectiveCode
Summary: Add missing checks into EA code. Reviewed-by: never
上级
be5b9106
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
15 deletion
+25
-15
src/share/vm/opto/escape.cpp
src/share/vm/opto/escape.cpp
+25
-15
未找到文件。
src/share/vm/opto/escape.cpp
浏览文件 @
8c0778b3
...
@@ -1989,20 +1989,15 @@ void ConnectionGraph::process_call_result(ProjNode *resproj, PhaseTransform *pha
...
@@ -1989,20 +1989,15 @@ void ConnectionGraph::process_call_result(ProjNode *resproj, PhaseTransform *pha
case
Op_Allocate
:
case
Op_Allocate
:
{
{
Node
*
k
=
call
->
in
(
AllocateNode
::
KlassNode
);
Node
*
k
=
call
->
in
(
AllocateNode
::
KlassNode
);
const
TypeKlassPtr
*
kt
;
const
TypeKlassPtr
*
kt
=
k
->
bottom_type
()
->
isa_klassptr
();
if
(
k
->
Opcode
()
==
Op_LoadKlass
)
{
kt
=
k
->
as_Load
()
->
type
()
->
isa_klassptr
();
}
else
{
// Also works for DecodeN(LoadNKlass).
kt
=
k
->
as_Type
()
->
type
()
->
isa_klassptr
();
}
assert
(
kt
!=
NULL
,
"TypeKlassPtr required."
);
assert
(
kt
!=
NULL
,
"TypeKlassPtr required."
);
ciKlass
*
cik
=
kt
->
klass
();
ciKlass
*
cik
=
kt
->
klass
();
ciInstanceKlass
*
ciik
=
cik
->
as_instance_klass
();
PointsToNode
::
EscapeState
es
;
PointsToNode
::
EscapeState
es
;
uint
edge_to
;
uint
edge_to
;
if
(
cik
->
is_subclass_of
(
_compile
->
env
()
->
Thread_klass
())
||
ciik
->
has_finalizer
())
{
if
(
cik
->
is_subclass_of
(
_compile
->
env
()
->
Thread_klass
())
||
!
cik
->
is_instance_klass
()
||
// StressReflectiveCode
cik
->
as_instance_klass
()
->
has_finalizer
())
{
es
=
PointsToNode
::
GlobalEscape
;
es
=
PointsToNode
::
GlobalEscape
;
edge_to
=
_phantom_object
;
// Could not be worse
edge_to
=
_phantom_object
;
// Could not be worse
}
else
{
}
else
{
...
@@ -2017,13 +2012,28 @@ void ConnectionGraph::process_call_result(ProjNode *resproj, PhaseTransform *pha
...
@@ -2017,13 +2012,28 @@ void ConnectionGraph::process_call_result(ProjNode *resproj, PhaseTransform *pha
case
Op_AllocateArray
:
case
Op_AllocateArray
:
{
{
int
length
=
call
->
in
(
AllocateNode
::
ALength
)
->
find_int_con
(
-
1
);
if
(
length
<
0
||
length
>
EliminateAllocationArraySizeLimit
)
{
Node
*
k
=
call
->
in
(
AllocateNode
::
KlassNode
);
// Not scalar replaceable if the length is not constant or too big.
const
TypeKlassPtr
*
kt
=
k
->
bottom_type
()
->
isa_klassptr
();
ptnode_adr
(
call_idx
)
->
_scalar_replaceable
=
false
;
assert
(
kt
!=
NULL
,
"TypeKlassPtr required."
);
ciKlass
*
cik
=
kt
->
klass
();
PointsToNode
::
EscapeState
es
;
uint
edge_to
;
if
(
!
cik
->
is_array_klass
())
{
// StressReflectiveCode
es
=
PointsToNode
::
GlobalEscape
;
edge_to
=
_phantom_object
;
}
else
{
es
=
PointsToNode
::
NoEscape
;
edge_to
=
call_idx
;
int
length
=
call
->
in
(
AllocateNode
::
ALength
)
->
find_int_con
(
-
1
);
if
(
length
<
0
||
length
>
EliminateAllocationArraySizeLimit
)
{
// Not scalar replaceable if the length is not constant or too big.
ptnode_adr
(
call_idx
)
->
_scalar_replaceable
=
false
;
}
}
}
set_escape_state
(
call_idx
,
PointsToNode
::
NoEscape
);
set_escape_state
(
call_idx
,
es
);
add_pointsto_edge
(
resproj_idx
,
call_idx
);
add_pointsto_edge
(
resproj_idx
,
edge_to
);
_processed
.
set
(
resproj_idx
);
_processed
.
set
(
resproj_idx
);
break
;
break
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录