Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
da20bd28
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看板
提交
da20bd28
编写于
7月 09, 2018
作者:
A
aph
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8206406: StubCodeDesc constructor publishes partially-constructed objects on StubCodeDesc::_list
Reviewed-by: dholmes
上级
ff0ed70a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
src/share/vm/runtime/stubCodeGenerator.cpp
src/share/vm/runtime/stubCodeGenerator.cpp
+4
-4
src/share/vm/runtime/stubCodeGenerator.hpp
src/share/vm/runtime/stubCodeGenerator.hpp
+3
-3
未找到文件。
src/share/vm/runtime/stubCodeGenerator.cpp
浏览文件 @
da20bd28
...
@@ -34,12 +34,12 @@
...
@@ -34,12 +34,12 @@
// Implementation of StubCodeDesc
// Implementation of StubCodeDesc
StubCodeDesc
*
StubCodeDesc
::
_list
=
NULL
;
StubCodeDesc
*
volatile
StubCodeDesc
::
_list
=
NULL
;
int
StubCodeDesc
::
_count
=
0
;
int
StubCodeDesc
::
_count
=
0
;
StubCodeDesc
*
StubCodeDesc
::
desc_for
(
address
pc
)
{
StubCodeDesc
*
StubCodeDesc
::
desc_for
(
address
pc
)
{
StubCodeDesc
*
p
=
_list
;
StubCodeDesc
*
p
=
(
StubCodeDesc
*
)
OrderAccess
::
load_ptr_acquire
(
&
_list
)
;
while
(
p
!=
NULL
&&
!
p
->
contains
(
pc
))
p
=
p
->
_next
;
while
(
p
!=
NULL
&&
!
p
->
contains
(
pc
))
p
=
p
->
_next
;
// p == NULL || p->contains(pc)
// p == NULL || p->contains(pc)
return
p
;
return
p
;
...
@@ -47,7 +47,7 @@ StubCodeDesc* StubCodeDesc::desc_for(address pc) {
...
@@ -47,7 +47,7 @@ StubCodeDesc* StubCodeDesc::desc_for(address pc) {
StubCodeDesc
*
StubCodeDesc
::
desc_for_index
(
int
index
)
{
StubCodeDesc
*
StubCodeDesc
::
desc_for_index
(
int
index
)
{
StubCodeDesc
*
p
=
_list
;
StubCodeDesc
*
p
=
(
StubCodeDesc
*
)
OrderAccess
::
load_ptr_acquire
(
&
_list
)
;
while
(
p
!=
NULL
&&
p
->
index
()
!=
index
)
p
=
p
->
_next
;
while
(
p
!=
NULL
&&
p
->
index
()
!=
index
)
p
=
p
->
_next
;
return
p
;
return
p
;
}
}
...
...
src/share/vm/runtime/stubCodeGenerator.hpp
浏览文件 @
da20bd28
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
class
StubCodeDesc
:
public
CHeapObj
<
mtCode
>
{
class
StubCodeDesc
:
public
CHeapObj
<
mtCode
>
{
protected:
protected:
static
StubCodeDesc
*
_list
;
// the list of all descriptors
static
StubCodeDesc
*
volatile
_list
;
// the list of all descriptors
static
int
_count
;
// length of list
static
int
_count
;
// length of list
StubCodeDesc
*
_next
;
// the next element in the linked list
StubCodeDesc
*
_next
;
// the next element in the linked list
...
@@ -69,13 +69,13 @@ class StubCodeDesc: public CHeapObj<mtCode> {
...
@@ -69,13 +69,13 @@ class StubCodeDesc: public CHeapObj<mtCode> {
StubCodeDesc
(
const
char
*
group
,
const
char
*
name
,
address
begin
)
{
StubCodeDesc
(
const
char
*
group
,
const
char
*
name
,
address
begin
)
{
assert
(
name
!=
NULL
,
"no name specified"
);
assert
(
name
!=
NULL
,
"no name specified"
);
_next
=
_list
;
_next
=
(
StubCodeDesc
*
)
OrderAccess
::
load_ptr_acquire
(
&
_list
)
;
_group
=
group
;
_group
=
group
;
_name
=
name
;
_name
=
name
;
_index
=
++
_count
;
// (never zero)
_index
=
++
_count
;
// (never zero)
_begin
=
begin
;
_begin
=
begin
;
_end
=
NULL
;
_end
=
NULL
;
_list
=
this
;
OrderAccess
::
release_store_ptr
(
&
_list
,
this
)
;
};
};
const
char
*
group
()
const
{
return
_group
;
}
const
char
*
group
()
const
{
return
_group
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录