Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
4b871a91
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看板
提交
4b871a91
编写于
3月 20, 2017
作者:
H
hseigel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8175932: Improve host instance supports
Reviewed-by: coleenp, mschoene Contributed-by: harold.seigel@oracle.com
上级
908f9880
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
7 addition
and
2 deletion
+7
-2
src/share/vm/interpreter/interpreterRuntime.cpp
src/share/vm/interpreter/interpreterRuntime.cpp
+2
-2
src/share/vm/oops/instanceKlass.hpp
src/share/vm/oops/instanceKlass.hpp
+5
-0
未找到文件。
src/share/vm/interpreter/interpreterRuntime.cpp
浏览文件 @
4b871a91
/*
/*
* Copyright (c) 1997, 201
6
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
7
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -768,7 +768,7 @@ IRT_ENTRY(void, InterpreterRuntime::resolve_invoke(JavaThread* thread, Bytecodes
...
@@ -768,7 +768,7 @@ IRT_ENTRY(void, InterpreterRuntime::resolve_invoke(JavaThread* thread, Bytecodes
// it is not an interface. The receiver for invokespecial calls within interface
// it is not an interface. The receiver for invokespecial calls within interface
// methods must be checked for every call.
// methods must be checked for every call.
InstanceKlass
*
sender
=
pool
->
pool_holder
();
InstanceKlass
*
sender
=
pool
->
pool_holder
();
sender
=
sender
->
is_anonymou
s
()
?
InstanceKlass
::
cast
(
sender
->
host_klass
())
:
sender
;
sender
=
sender
->
has_host_klas
s
()
?
InstanceKlass
::
cast
(
sender
->
host_klass
())
:
sender
;
switch
(
info
.
call_kind
())
{
switch
(
info
.
call_kind
())
{
case
CallInfo
::
direct_call
:
case
CallInfo
::
direct_call
:
...
...
src/share/vm/oops/instanceKlass.hpp
浏览文件 @
4b871a91
...
@@ -565,9 +565,11 @@ class InstanceKlass: public Klass {
...
@@ -565,9 +565,11 @@ class InstanceKlass: public Klass {
Klass
*
host_klass
()
const
{
Klass
*
host_klass
()
const
{
Klass
**
hk
=
(
Klass
**
)
adr_host_klass
();
Klass
**
hk
=
(
Klass
**
)
adr_host_klass
();
if
(
hk
==
NULL
)
{
if
(
hk
==
NULL
)
{
assert
(
!
is_anonymous
(),
"Anonymous classes have host klasses"
);
return
NULL
;
return
NULL
;
}
else
{
}
else
{
assert
(
*
hk
!=
NULL
,
"host klass should always be set if the address is not null"
);
assert
(
*
hk
!=
NULL
,
"host klass should always be set if the address is not null"
);
assert
(
is_anonymous
(),
"Only anonymous classes have host klasses"
);
return
*
hk
;
return
*
hk
;
}
}
}
}
...
@@ -579,6 +581,9 @@ class InstanceKlass: public Klass {
...
@@ -579,6 +581,9 @@ class InstanceKlass: public Klass {
*
addr
=
host
;
*
addr
=
host
;
}
}
}
}
bool
has_host_klass
()
const
{
return
adr_host_klass
()
!=
NULL
;
}
bool
is_anonymous
()
const
{
bool
is_anonymous
()
const
{
return
(
_misc_flags
&
_misc_is_anonymous
)
!=
0
;
return
(
_misc_flags
&
_misc_is_anonymous
)
!=
0
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录