Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
88e51dd6
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看板
提交
88e51dd6
编写于
5月 29, 2014
作者:
V
vlivanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8034935: JSR 292 support for PopFrame has a fragile coupling with DirectMethodHandle
Reviewed-by: twisti, jrose, sspitsyn
上级
a9ca8905
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
4 deletion
+10
-4
src/share/vm/interpreter/interpreterRuntime.cpp
src/share/vm/interpreter/interpreterRuntime.cpp
+10
-4
未找到文件。
src/share/vm/interpreter/interpreterRuntime.cpp
浏览文件 @
88e51dd6
...
...
@@ -1269,8 +1269,10 @@ IRT_END
// This is a support of the JVMTI PopFrame interface.
// Make sure it is an invokestatic of a polymorphic intrinsic that has a member_name argument
// and return it as a vm_result so that it can be reloaded in the list of invokestatic parameters.
// The dmh argument is a reference to a DirectMethoHandle that has a member name field.
IRT_ENTRY
(
void
,
InterpreterRuntime
::
member_name_arg_or_null
(
JavaThread
*
thread
,
address
dmh
,
// The member_name argument is a saved reference (in local#0) to the member_name.
// For backward compatibility with some JDK versions (7, 8) it can also be a direct method handle.
// FIXME: remove DMH case after j.l.i.InvokerBytecodeGenerator code shape is updated.
IRT_ENTRY
(
void
,
InterpreterRuntime
::
member_name_arg_or_null
(
JavaThread
*
thread
,
address
member_name
,
Method
*
method
,
address
bcp
))
Bytecodes
::
Code
code
=
Bytecodes
::
code_at
(
method
,
bcp
);
if
(
code
!=
Bytecodes
::
_invokestatic
)
{
...
...
@@ -1282,8 +1284,12 @@ IRT_ENTRY(void, InterpreterRuntime::member_name_arg_or_null(JavaThread* thread,
Symbol
*
mname
=
cpool
->
name_ref_at
(
cp_index
);
if
(
MethodHandles
::
has_member_arg
(
cname
,
mname
))
{
oop
member_name
=
java_lang_invoke_DirectMethodHandle
::
member
((
oop
)
dmh
);
thread
->
set_vm_result
(
member_name
);
oop
member_name_oop
=
(
oop
)
member_name
;
if
(
java_lang_invoke_DirectMethodHandle
::
is_instance
(
member_name_oop
))
{
// FIXME: remove after j.l.i.InvokerBytecodeGenerator code shape is updated.
member_name_oop
=
java_lang_invoke_DirectMethodHandle
::
member
(
member_name_oop
);
}
thread
->
set_vm_result
(
member_name_oop
);
}
IRT_END
#endif // INCLUDE_JVMTI
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录