Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
88db4ebe
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看板
提交
88db4ebe
编写于
2月 04, 2009
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6442502: assert(bits,"Use TypePtr for NULL") on linux-x86
Reviewed-by: kvn
上级
9c92459c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
13 deletion
+14
-13
src/share/vm/opto/graphKit.cpp
src/share/vm/opto/graphKit.cpp
+2
-13
src/share/vm/opto/graphKit.hpp
src/share/vm/opto/graphKit.hpp
+12
-0
未找到文件。
src/share/vm/opto/graphKit.cpp
浏览文件 @
88db4ebe
...
...
@@ -1836,10 +1836,7 @@ void GraphKit::write_barrier_post(Node* oop_store, Node* obj, Node* adr,
(
CardTableModRefBS
*
)(
Universe
::
heap
()
->
barrier_set
());
Node
*
b
=
_gvn
.
transform
(
new
(
C
,
3
)
URShiftXNode
(
cast
,
_gvn
.
intcon
(
CardTableModRefBS
::
card_shift
)
));
// We store into a byte array, so do not bother to left-shift by zero
// Get base of card map
assert
(
sizeof
(
*
ct
->
byte_map_base
)
==
sizeof
(
jbyte
),
"adjust this code"
);
Node
*
c
=
makecon
(
TypeRawPtr
::
make
((
address
)
ct
->
byte_map_base
));
Node
*
c
=
byte_map_base_node
();
// Combine
Node
*
sb_ctl
=
control
();
Node
*
sb_adr
=
_gvn
.
transform
(
new
(
C
,
4
)
AddPNode
(
top
()
/*no base ptr*/
,
c
,
b
));
...
...
@@ -3365,14 +3362,6 @@ void GraphKit::g1_write_barrier_post(Node* store,
const
TypeFunc
*
tf
=
OptoRuntime
::
g1_wb_post_Type
();
// Get the address of the card table
CardTableModRefBS
*
ct
=
(
CardTableModRefBS
*
)(
Universe
::
heap
()
->
barrier_set
());
Node
*
card_table
=
__
makecon
(
TypeRawPtr
::
make
((
address
)
ct
->
byte_map_base
));
// Get base of card map
assert
(
sizeof
(
*
ct
->
byte_map_base
)
==
sizeof
(
jbyte
),
"adjust this code"
);
// Offsets into the thread
const
int
index_offset
=
in_bytes
(
JavaThread
::
dirty_card_queue_offset
()
+
PtrQueue
::
byte_offset_of_index
());
...
...
@@ -3402,7 +3391,7 @@ void GraphKit::g1_write_barrier_post(Node* store,
Node
*
card_offset
=
__
URShiftX
(
cast
,
__
ConI
(
CardTableModRefBS
::
card_shift
)
);
// Combine card table base and card offset
Node
*
card_adr
=
__
AddP
(
no_base
,
card_table
,
card_offset
);
Node
*
card_adr
=
__
AddP
(
no_base
,
byte_map_base_node
()
,
card_offset
);
// If we know the value being stored does it cross regions?
...
...
src/share/vm/opto/graphKit.hpp
浏览文件 @
88db4ebe
...
...
@@ -83,6 +83,18 @@ class GraphKit : public Phase {
Node
*
zerocon
(
BasicType
bt
)
const
{
return
_gvn
.
zerocon
(
bt
);
}
// (See also macro MakeConX in type.hpp, which uses intcon or longcon.)
// Helper for byte_map_base
Node
*
byte_map_base_node
()
{
// Get base of card map
CardTableModRefBS
*
ct
=
(
CardTableModRefBS
*
)(
Universe
::
heap
()
->
barrier_set
());
assert
(
sizeof
(
*
ct
->
byte_map_base
)
==
sizeof
(
jbyte
),
"adjust users of this code"
);
if
(
ct
->
byte_map_base
!=
NULL
)
{
return
makecon
(
TypeRawPtr
::
make
((
address
)
ct
->
byte_map_base
));
}
else
{
return
null
();
}
}
jint
find_int_con
(
Node
*
n
,
jint
value_if_unknown
)
{
return
_gvn
.
find_int_con
(
n
,
value_if_unknown
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录