Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
82aa0647
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看板
提交
82aa0647
编写于
10月 28, 2013
作者:
R
roland
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
94d40aba
8eb41b36
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
32 addition
and
14 deletion
+32
-14
src/share/vm/opto/type.cpp
src/share/vm/opto/type.cpp
+28
-13
src/share/vm/opto/type.hpp
src/share/vm/opto/type.hpp
+4
-1
未找到文件。
src/share/vm/opto/type.cpp
浏览文件 @
82aa0647
...
...
@@ -2787,13 +2787,11 @@ intptr_t TypeOopPtr::get_con() const {
//-----------------------------filter------------------------------------------
// Do not allow interface-vs.-noninterface joins to collapse to top.
const
Type
*
TypeOopPtr
::
filter
(
const
Type
*
kills
)
const
{
const
Type
*
TypeOopPtr
::
filter
(
const
Type
*
kills
)
const
{
const
Type
*
ft
=
join
(
kills
);
const
TypeInstPtr
*
ftip
=
ft
->
isa_instptr
();
const
TypeInstPtr
*
ktip
=
kills
->
isa_instptr
();
const
TypeKlassPtr
*
ftkp
=
ft
->
isa_klassptr
();
const
TypeKlassPtr
*
ktkp
=
kills
->
isa_klassptr
();
if
(
ft
->
empty
())
{
// Check for evil case of 'this' being a class and 'kills' expecting an
...
...
@@ -2807,8 +2805,6 @@ const Type *TypeOopPtr::filter( const Type *kills ) const {
// uplift the type.
if
(
!
empty
()
&&
ktip
!=
NULL
&&
ktip
->
is_loaded
()
&&
ktip
->
klass
()
->
is_interface
())
return
kills
;
// Uplift to interface
if
(
!
empty
()
&&
ktkp
!=
NULL
&&
ktkp
->
klass
()
->
is_loaded
()
&&
ktkp
->
klass
()
->
is_interface
())
return
kills
;
// Uplift to interface
return
Type
::
TOP
;
// Canonical empty value
}
...
...
@@ -2825,14 +2821,6 @@ const Type *TypeOopPtr::filter( const Type *kills ) const {
assert
(
!
ftip
->
klass_is_exact
(),
"interface could not be exact"
);
return
ktip
->
cast_to_ptr_type
(
ftip
->
ptr
());
}
// Interface klass type could be exact in opposite to interface type,
// return it here instead of incorrect Constant ptr J/L/Object (6894807).
if
(
ftkp
!=
NULL
&&
ktkp
!=
NULL
&&
ftkp
->
is_loaded
()
&&
ftkp
->
klass
()
->
is_interface
()
&&
!
ftkp
->
klass_is_exact
()
&&
// Keep exact interface klass
ktkp
->
is_loaded
()
&&
!
ktkp
->
klass
()
->
is_interface
())
{
return
ktkp
->
cast_to_ptr_type
(
ftkp
->
ptr
());
}
return
ft
;
}
...
...
@@ -4385,6 +4373,33 @@ bool TypeKlassPtr::singleton(void) const {
return
(
_offset
==
0
)
&&
!
below_centerline
(
_ptr
);
}
// Do not allow interface-vs.-noninterface joins to collapse to top.
const
Type
*
TypeKlassPtr
::
filter
(
const
Type
*
kills
)
const
{
// logic here mirrors the one from TypeOopPtr::filter. See comments
// there.
const
Type
*
ft
=
join
(
kills
);
const
TypeKlassPtr
*
ftkp
=
ft
->
isa_klassptr
();
const
TypeKlassPtr
*
ktkp
=
kills
->
isa_klassptr
();
if
(
ft
->
empty
())
{
if
(
!
empty
()
&&
ktkp
!=
NULL
&&
ktkp
->
klass
()
->
is_loaded
()
&&
ktkp
->
klass
()
->
is_interface
())
return
kills
;
// Uplift to interface
return
Type
::
TOP
;
// Canonical empty value
}
// Interface klass type could be exact in opposite to interface type,
// return it here instead of incorrect Constant ptr J/L/Object (6894807).
if
(
ftkp
!=
NULL
&&
ktkp
!=
NULL
&&
ftkp
->
is_loaded
()
&&
ftkp
->
klass
()
->
is_interface
()
&&
!
ftkp
->
klass_is_exact
()
&&
// Keep exact interface klass
ktkp
->
is_loaded
()
&&
!
ktkp
->
klass
()
->
is_interface
())
{
return
ktkp
->
cast_to_ptr_type
(
ftkp
->
ptr
());
}
return
ft
;
}
//----------------------compute_klass------------------------------------------
// Compute the defining klass for this class
ciKlass
*
TypeAryPtr
::
compute_klass
(
DEBUG_ONLY
(
bool
verify
))
const
{
...
...
src/share/vm/opto/type.hpp
浏览文件 @
82aa0647
...
...
@@ -63,7 +63,7 @@ class TypeRawPtr;
class
TypeOopPtr
;
class
TypeInstPtr
;
class
TypeAryPtr
;
class
TypeKlassPtr
;
class
TypeKlassPtr
;
class
TypeMetadataPtr
;
//------------------------------Type-------------------------------------------
...
...
@@ -1202,6 +1202,9 @@ public:
virtual
intptr_t
get_con
()
const
;
// Do not allow interface-vs.-noninterface joins to collapse to top.
virtual
const
Type
*
filter
(
const
Type
*
kills
)
const
;
// Convenience common pre-built types.
static
const
TypeKlassPtr
*
OBJECT
;
// Not-null object klass or below
static
const
TypeKlassPtr
*
OBJECT_OR_NULL
;
// Maybe-null version of same
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录