Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
2756411f
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看板
提交
2756411f
编写于
9月 13, 2013
作者:
S
shade
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8024671: G1 generates assert error messages in product builds
Reviewed-by: brutisso, tschatzl
上级
9eb79ab2
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
7 addition
and
11 deletion
+7
-11
src/share/vm/gc_implementation/g1/g1CardCounts.cpp
src/share/vm/gc_implementation/g1/g1CardCounts.cpp
+2
-2
src/share/vm/gc_implementation/g1/g1CardCounts.hpp
src/share/vm/gc_implementation/g1/g1CardCounts.hpp
+5
-9
未找到文件。
src/share/vm/gc_implementation/g1/g1CardCounts.cpp
浏览文件 @
2756411f
...
...
@@ -33,7 +33,7 @@
void
G1CardCounts
::
clear_range
(
size_t
from_card_num
,
size_t
to_card_num
)
{
if
(
has_count_table
())
{
check_card_num
(
from
_card_num
,
assert
(
from_card_num
>=
0
&&
from_card_num
<
_committed_max
_card_num
,
err_msg
(
"from card num out of range: "
SIZE_FORMAT
,
from_card_num
));
assert
(
from_card_num
<
to_card_num
,
err_msg
(
"Wrong order? from: "
SIZE_FORMAT
", to: "
SIZE_FORMAT
,
...
...
src/share/vm/gc_implementation/g1/g1CardCounts.hpp
浏览文件 @
2756411f
...
...
@@ -72,24 +72,20 @@ class G1CardCounts: public CHeapObj<mtGC> {
return
has_reserved_count_table
()
&&
_committed_max_card_num
>
0
;
}
void
check_card_num
(
size_t
card_num
,
const
char
*
msg
)
{
assert
(
card_num
>=
0
&&
card_num
<
_committed_max_card_num
,
msg
);
}
size_t
ptr_2_card_num
(
const
jbyte
*
card_ptr
)
{
assert
(
card_ptr
>=
_ct_bot
,
err_msg
(
"In
avalie
d card pointer: "
err_msg
(
"In
vali
d card pointer: "
"card_ptr: "
PTR_FORMAT
", "
"_ct_bot: "
PTR_FORMAT
,
card_ptr
,
_ct_bot
));
size_t
card_num
=
pointer_delta
(
card_ptr
,
_ct_bot
,
sizeof
(
jbyte
));
check_card_num
(
card_num
,
assert
(
card_num
>=
0
&&
card_num
<
_committed_max_
card_num
,
err_msg
(
"card pointer out of range: "
PTR_FORMAT
,
card_ptr
));
return
card_num
;
}
jbyte
*
card_num_2_ptr
(
size_t
card_num
)
{
check_card_num
(
card_num
,
assert
(
card_num
>=
0
&&
card_num
<
_committed_max_
card_num
,
err_msg
(
"card num out of range: "
SIZE_FORMAT
,
card_num
));
return
(
jbyte
*
)
(
_ct_bot
+
card_num
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录