Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
4a3d8765
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看板
提交
4a3d8765
编写于
11月 08, 2011
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7105305: assert check_method_context proper context
Reviewed-by: jrose, kvn
上级
4d7fdbee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
7 deletion
+14
-7
src/share/vm/code/dependencies.cpp
src/share/vm/code/dependencies.cpp
+13
-6
src/share/vm/oops/constantPoolKlass.cpp
src/share/vm/oops/constantPoolKlass.cpp
+1
-1
未找到文件。
src/share/vm/code/dependencies.cpp
浏览文件 @
4a3d8765
...
@@ -763,9 +763,14 @@ class ClassHierarchyWalker {
...
@@ -763,9 +763,14 @@ class ClassHierarchyWalker {
// Method m is inherited into ctxk.
// Method m is inherited into ctxk.
return
true
;
return
true
;
if
(
lm
!=
NULL
)
{
if
(
lm
!=
NULL
)
{
if
(
!
(
lm
->
is_public
()
||
lm
->
is_protected
()))
if
(
!
(
lm
->
is_public
()
||
lm
->
is_protected
()))
{
// Method is [package-]private, so the override story is complex.
// Method is [package-]private, so the override story is complex.
return
true
;
// Must punt the assertion to true.
return
true
;
// Must punt the assertion to true.
}
if
(
lm
->
is_static
())
{
// Static methods don't override non-static so punt
return
true
;
}
if
(
!
Dependencies
::
is_concrete_method
(
lm
)
if
(
!
Dependencies
::
is_concrete_method
(
lm
)
&&
!
Dependencies
::
is_concrete_method
(
m
)
&&
!
Dependencies
::
is_concrete_method
(
m
)
&&
Klass
::
cast
(
lm
->
method_holder
())
->
is_subtype_of
(
m
->
method_holder
()))
&&
Klass
::
cast
(
lm
->
method_holder
())
->
is_subtype_of
(
m
->
method_holder
()))
...
@@ -1091,9 +1096,11 @@ bool Dependencies::is_concrete_klass(klassOop k) {
...
@@ -1091,9 +1096,11 @@ bool Dependencies::is_concrete_klass(klassOop k) {
}
}
bool
Dependencies
::
is_concrete_method
(
methodOop
m
)
{
bool
Dependencies
::
is_concrete_method
(
methodOop
m
)
{
if
(
m
->
is_abstract
())
return
false
;
// Statics are irrelevant to virtual call sites.
// %%% We could treat unexecuted methods as virtually abstract also.
if
(
m
->
is_static
())
return
false
;
// This would require a deoptimization barrier on first execution.
// We could also return false if m does not yet appear to be
// executed, if the VM version supports this distinction also.
return
!
m
->
is_abstract
();
return
!
m
->
is_abstract
();
}
}
...
@@ -1113,7 +1120,7 @@ Klass* Dependencies::find_finalizable_subclass(Klass* k) {
...
@@ -1113,7 +1120,7 @@ Klass* Dependencies::find_finalizable_subclass(Klass* k) {
bool
Dependencies
::
is_concrete_klass
(
ciInstanceKlass
*
k
)
{
bool
Dependencies
::
is_concrete_klass
(
ciInstanceKlass
*
k
)
{
if
(
k
->
is_abstract
())
return
false
;
if
(
k
->
is_abstract
())
return
false
;
// We could
return also
false if k does not yet appear to be
// We could
also return
false if k does not yet appear to be
// instantiated, if the VM version supports this distinction also.
// instantiated, if the VM version supports this distinction also.
//if (k->is_not_instantiated()) return false;
//if (k->is_not_instantiated()) return false;
return
true
;
return
true
;
...
@@ -1123,7 +1130,7 @@ bool Dependencies::is_concrete_method(ciMethod* m) {
...
@@ -1123,7 +1130,7 @@ bool Dependencies::is_concrete_method(ciMethod* m) {
// Statics are irrelevant to virtual call sites.
// Statics are irrelevant to virtual call sites.
if
(
m
->
is_static
())
return
false
;
if
(
m
->
is_static
())
return
false
;
// We could
return also
false if m does not yet appear to be
// We could
also return
false if m does not yet appear to be
// executed, if the VM version supports this distinction also.
// executed, if the VM version supports this distinction also.
return
!
m
->
is_abstract
();
return
!
m
->
is_abstract
();
}
}
...
...
src/share/vm/oops/constantPoolKlass.cpp
浏览文件 @
4a3d8765
...
@@ -532,7 +532,7 @@ void constantPoolKlass::preload_and_initialize_all_classes(oop obj, TRAPS) {
...
@@ -532,7 +532,7 @@ void constantPoolKlass::preload_and_initialize_all_classes(oop obj, TRAPS) {
if
(
cp
->
tag_at
(
i
).
is_unresolved_klass
())
{
if
(
cp
->
tag_at
(
i
).
is_unresolved_klass
())
{
// This will force loading of the class
// This will force loading of the class
klassOop
klass
=
cp
->
klass_at
(
i
,
CHECK
);
klassOop
klass
=
cp
->
klass_at
(
i
,
CHECK
);
if
(
klass
->
is_instance
())
{
if
(
klass
->
klass_part
()
->
oop_
is_instance
())
{
// Force initialization of class
// Force initialization of class
instanceKlass
::
cast
(
klass
)
->
initialize
(
CHECK
);
instanceKlass
::
cast
(
klass
)
->
initialize
(
CHECK
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录