Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
2bc63929
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看板
提交
2bc63929
编写于
5月 05, 2011
作者:
J
jcoomes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6728025: LinkResolver is missing some ResourceMarks
Reviewed-by: dholmes, coleenp, ysr, kamg
上级
2c2c1d9c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
0 deletion
+8
-0
src/share/vm/interpreter/linkResolver.cpp
src/share/vm/interpreter/linkResolver.cpp
+8
-0
未找到文件。
src/share/vm/interpreter/linkResolver.cpp
浏览文件 @
2bc63929
...
...
@@ -327,6 +327,7 @@ void LinkResolver::resolve_method(methodHandle& resolved_method, KlassHandle res
// 1. check if klass is not interface
if
(
resolved_klass
->
is_interface
())
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Found interface %s, but class was expected"
,
Klass
::
cast
(
resolved_klass
())
->
external_name
());
THROW_MSG
(
vmSymbols
::
java_lang_IncompatibleClassChangeError
(),
buf
);
...
...
@@ -413,6 +414,7 @@ void LinkResolver::resolve_interface_method(methodHandle& resolved_method,
// check if klass is interface
if
(
!
resolved_klass
->
is_interface
())
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Found class %s, but interface was expected"
,
Klass
::
cast
(
resolved_klass
())
->
external_name
());
THROW_MSG
(
vmSymbols
::
java_lang_IncompatibleClassChangeError
(),
buf
);
...
...
@@ -534,6 +536,7 @@ void LinkResolver::resolve_field(FieldAccessInfo& result, constantPoolHandle poo
// check for errors
if
(
is_static
!=
fd
.
is_static
())
{
ResourceMark
rm
(
THREAD
);
char
msg
[
200
];
jio_snprintf
(
msg
,
sizeof
(
msg
),
"Expected %s field %s.%s"
,
is_static
?
"static"
:
"non-static"
,
Klass
::
cast
(
resolved_klass
())
->
external_name
(),
fd
.
name
()
->
as_C_string
());
THROW_MSG
(
vmSymbols
::
java_lang_IncompatibleClassChangeError
(),
msg
);
...
...
@@ -631,6 +634,7 @@ void LinkResolver::linktime_resolve_static_method(methodHandle& resolved_method,
// check if static
if
(
!
resolved_method
->
is_static
())
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Expected static method %s"
,
methodOopDesc
::
name_and_sig_as_C_string
(
Klass
::
cast
(
resolved_klass
()),
resolved_method
->
name
(),
...
...
@@ -671,6 +675,7 @@ void LinkResolver::linktime_resolve_special_method(methodHandle& resolved_method
// check if not static
if
(
resolved_method
->
is_static
())
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Expecting non-static method %s"
,
...
...
@@ -717,6 +722,7 @@ void LinkResolver::runtime_resolve_special_method(CallInfo& result, methodHandle
// check if not static
if
(
sel_method
->
is_static
())
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Expecting non-static method %s"
,
methodOopDesc
::
name_and_sig_as_C_string
(
Klass
::
cast
(
resolved_klass
()),
resolved_method
->
name
(),
...
...
@@ -757,6 +763,7 @@ void LinkResolver::linktime_resolve_virtual_method(methodHandle &resolved_method
// check if not static
if
(
resolved_method
->
is_static
())
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Expecting non-static method %s"
,
methodOopDesc
::
name_and_sig_as_C_string
(
Klass
::
cast
(
resolved_klass
()),
resolved_method
->
name
(),
...
...
@@ -873,6 +880,7 @@ void LinkResolver::runtime_resolve_interface_method(CallInfo& result, methodHand
// check if receiver klass implements the resolved interface
if
(
!
recv_klass
->
is_subtype_of
(
resolved_klass
()))
{
ResourceMark
rm
(
THREAD
);
char
buf
[
200
];
jio_snprintf
(
buf
,
sizeof
(
buf
),
"Class %s does not implement the requested interface %s"
,
(
Klass
::
cast
(
recv_klass
()))
->
external_name
(),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录