Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
2750149d
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看板
提交
2750149d
编写于
4月 27, 2011
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7029167: add support for conditional card marks
Reviewed-by: iveresov, kvn
上级
1bd98194
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
5 deletion
+32
-5
src/share/vm/opto/graphKit.cpp
src/share/vm/opto/graphKit.cpp
+19
-2
src/share/vm/opto/macro.cpp
src/share/vm/opto/macro.cpp
+10
-3
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+3
-0
未找到文件。
src/share/vm/opto/graphKit.cpp
浏览文件 @
2750149d
...
...
@@ -3447,9 +3447,22 @@ void GraphKit::write_barrier_post(Node* oop_store,
// Get the alias_index for raw card-mark memory
int
adr_type
=
Compile
::
AliasIdxRaw
;
// Smash zero into card
Node
*
zero
=
__
ConI
(
0
);
Node
*
zero
=
__
ConI
(
0
);
// Dirty card value
BasicType
bt
=
T_BYTE
;
if
(
UseCondCardMark
)
{
// The classic GC reference write barrier is typically implemented
// as a store into the global card mark table. Unfortunately
// unconditional stores can result in false sharing and excessive
// coherence traffic as well as false transactional aborts.
// UseCondCardMark enables MP "polite" conditional card mark
// stores. In theory we could relax the load from ctrl() to
// no_ctrl, but that doesn't buy much latitude.
Node
*
card_val
=
__
load
(
__
ctrl
(),
card_adr
,
TypeInt
::
BYTE
,
bt
,
adr_type
);
__
if_then
(
card_val
,
BoolTest
::
ne
,
zero
);
}
// Smash zero into card
if
(
!
UseConcMarkSweepGC
)
{
__
store
(
__
ctrl
(),
card_adr
,
zero
,
bt
,
adr_type
);
}
else
{
...
...
@@ -3457,6 +3470,10 @@ void GraphKit::write_barrier_post(Node* oop_store,
__
storeCM
(
__
ctrl
(),
card_adr
,
zero
,
oop_store
,
adr_idx
,
bt
,
adr_type
);
}
if
(
UseCondCardMark
)
{
__
end_if
();
}
// Final sync IdealKit and GraphKit.
final_sync
(
ideal
);
}
...
...
src/share/vm/opto/macro.cpp
浏览文件 @
2750149d
...
...
@@ -221,9 +221,16 @@ void PhaseMacroExpand::eliminate_card_mark(Node* p2x) {
Node
*
shift
=
p2x
->
unique_out
();
Node
*
addp
=
shift
->
unique_out
();
for
(
DUIterator_Last
jmin
,
j
=
addp
->
last_outs
(
jmin
);
j
>=
jmin
;
--
j
)
{
Node
*
st
=
addp
->
last_out
(
j
);
assert
(
st
->
is_Store
(),
"store required"
);
_igvn
.
replace_node
(
st
,
st
->
in
(
MemNode
::
Memory
));
Node
*
mem
=
addp
->
last_out
(
j
);
if
(
UseCondCardMark
&&
mem
->
is_Load
())
{
assert
(
mem
->
Opcode
()
==
Op_LoadB
,
"unexpected code shape"
);
// The load is checking if the card has been written so
// replace it with zero to fold the test.
_igvn
.
replace_node
(
mem
,
intcon
(
0
));
continue
;
}
assert
(
mem
->
is_Store
(),
"store required"
);
_igvn
.
replace_node
(
mem
,
mem
->
in
(
MemNode
::
Memory
));
}
}
else
{
// G1 pre/post barriers
...
...
src/share/vm/runtime/globals.hpp
浏览文件 @
2750149d
...
...
@@ -620,6 +620,9 @@ class CommandLineFlags {
product(bool, UseSSE42Intrinsics, false, \
"SSE4.2 versions of intrinsics") \
\
product(bool, UseCondCardMark, false, \
"Check for already marked card before updating card table") \
\
develop(bool, TraceCallFixup, false, \
"traces all call fixups") \
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录