Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
b4bc21c1
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看板
提交
b4bc21c1
编写于
11月 15, 2012
作者:
B
bharadwaj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8001077: remove ciMethod::will_link
Summary: Removed will_link and changed all calls to is_loaded(). Reviewed-by: kvn
上级
00de2884
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
3 addition
and
25 deletion
+3
-25
src/share/vm/c1/c1_GraphBuilder.cpp
src/share/vm/c1/c1_GraphBuilder.cpp
+1
-1
src/share/vm/ci/bcEscapeAnalyzer.cpp
src/share/vm/ci/bcEscapeAnalyzer.cpp
+1
-1
src/share/vm/ci/ciMethod.cpp
src/share/vm/ci/ciMethod.cpp
+0
-19
src/share/vm/ci/ciMethod.hpp
src/share/vm/ci/ciMethod.hpp
+0
-3
src/share/vm/opto/doCall.cpp
src/share/vm/opto/doCall.cpp
+1
-1
未找到文件。
src/share/vm/c1/c1_GraphBuilder.cpp
浏览文件 @
b4bc21c1
...
...
@@ -1836,7 +1836,7 @@ void GraphBuilder::invoke(Bytecodes::Code code) {
// check if we could do inlining
if
(
!
PatchALot
&&
Inline
&&
klass
->
is_loaded
()
&&
(
klass
->
is_initialized
()
||
klass
->
is_interface
()
&&
target
->
holder
()
->
is_initialized
())
&&
target
->
will_link
(
klass
,
callee_holder
,
code
))
{
&&
target
->
is_loaded
(
))
{
// callee is known => check if we have static binding
assert
(
target
->
is_loaded
(),
"callee must be known"
);
if
(
code
==
Bytecodes
::
_invokestatic
||
...
...
src/share/vm/ci/bcEscapeAnalyzer.cpp
浏览文件 @
b4bc21c1
...
...
@@ -282,7 +282,7 @@ void BCEscapeAnalyzer::invoke(StateInfo &state, Bytecodes::Code code, ciMethod*
ciMethod
*
inline_target
=
NULL
;
if
(
target
->
is_loaded
()
&&
klass
->
is_loaded
()
&&
(
klass
->
is_initialized
()
||
klass
->
is_interface
()
&&
target
->
holder
()
->
is_initialized
())
&&
target
->
will_link
(
klass
,
callee_holder
,
code
))
{
&&
target
->
is_loaded
(
))
{
if
(
code
==
Bytecodes
::
_invokestatic
||
code
==
Bytecodes
::
_invokespecial
||
code
==
Bytecodes
::
_invokevirtual
&&
target
->
is_final_method
())
{
...
...
src/share/vm/ci/ciMethod.cpp
浏览文件 @
b4bc21c1
...
...
@@ -875,25 +875,6 @@ ciMethodData* ciMethod::method_data_or_null() {
return
md
;
}
// ------------------------------------------------------------------
// ciMethod::will_link
//
// Will this method link in a specific calling context?
bool
ciMethod
::
will_link
(
ciKlass
*
accessing_klass
,
ciKlass
*
declared_method_holder
,
Bytecodes
::
Code
bc
)
{
if
(
!
is_loaded
())
{
// Method lookup failed.
return
false
;
}
// The link checks have been front-loaded into the get_method
// call. This method (ciMethod::will_link()) will be removed
// in the future.
return
true
;
}
// ------------------------------------------------------------------
// ciMethod::should_exclude
//
...
...
src/share/vm/ci/ciMethod.hpp
浏览文件 @
b4bc21c1
...
...
@@ -241,9 +241,6 @@ class ciMethod : public ciMetadata {
int
resolve_vtable_index
(
ciKlass
*
caller
,
ciKlass
*
receiver
);
// Compilation directives
bool
will_link
(
ciKlass
*
accessing_klass
,
ciKlass
*
declared_method_holder
,
Bytecodes
::
Code
bc
);
bool
should_exclude
();
bool
should_inline
();
bool
should_not_inline
();
...
...
src/share/vm/opto/doCall.cpp
浏览文件 @
b4bc21c1
...
...
@@ -334,7 +334,7 @@ bool Parse::can_not_compile_call_site(ciMethod *dest_method, ciInstanceKlass* kl
return
true
;
}
assert
(
dest_method
->
will_link
(
method
()
->
holder
(),
klass
,
bc
()
),
"dest_method: typeflow responsibility"
);
assert
(
dest_method
->
is_loaded
(
),
"dest_method: typeflow responsibility"
);
return
false
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录