Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0ed8fd00
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看板
提交
0ed8fd00
编写于
12月 20, 2011
作者:
J
jmasa
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
98c79549
1dbed9cd
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
11 addition
and
3 deletion
+11
-3
src/share/vm/gc_implementation/g1/heapRegion.cpp
src/share/vm/gc_implementation/g1/heapRegion.cpp
+11
-3
未找到文件。
src/share/vm/gc_implementation/g1/heapRegion.cpp
浏览文件 @
0ed8fd00
...
@@ -94,7 +94,8 @@ public:
...
@@ -94,7 +94,8 @@ public:
#endif // PRODUCT
#endif // PRODUCT
}
}
template
<
class
T
>
void
do_oop_work
(
T
*
p
)
{
template
<
class
T
>
void
do_oop_work
(
T
*
p
)
{
assert
(
_containing_obj
!=
NULL
,
"Precondition"
);
assert
(
_containing_obj
!=
NULL
,
"Precondition"
);
assert
(
!
_g1h
->
is_obj_dead_cond
(
_containing_obj
,
_vo
),
assert
(
!
_g1h
->
is_obj_dead_cond
(
_containing_obj
,
_vo
),
"Precondition"
);
"Precondition"
);
...
@@ -102,8 +103,10 @@ public:
...
@@ -102,8 +103,10 @@ public:
if
(
!
oopDesc
::
is_null
(
heap_oop
))
{
if
(
!
oopDesc
::
is_null
(
heap_oop
))
{
oop
obj
=
oopDesc
::
decode_heap_oop_not_null
(
heap_oop
);
oop
obj
=
oopDesc
::
decode_heap_oop_not_null
(
heap_oop
);
bool
failed
=
false
;
bool
failed
=
false
;
if
(
!
_g1h
->
is_in_closed_subset
(
obj
)
||
if
(
!
_g1h
->
is_in_closed_subset
(
obj
)
||
_g1h
->
is_obj_dead_cond
(
obj
,
_vo
))
{
_g1h
->
is_obj_dead_cond
(
obj
,
_vo
))
{
MutexLockerEx
x
(
ParGCRareEvent_lock
,
Mutex
::
_no_safepoint_check_flag
);
if
(
!
_failures
)
{
if
(
!
_failures
)
{
gclog_or_tty
->
print_cr
(
""
);
gclog_or_tty
->
print_cr
(
""
);
gclog_or_tty
->
print_cr
(
"----------"
);
gclog_or_tty
->
print_cr
(
"----------"
);
...
@@ -133,6 +136,7 @@ public:
...
@@ -133,6 +136,7 @@ public:
print_object
(
gclog_or_tty
,
obj
);
print_object
(
gclog_or_tty
,
obj
);
}
}
gclog_or_tty
->
print_cr
(
"----------"
);
gclog_or_tty
->
print_cr
(
"----------"
);
gclog_or_tty
->
flush
();
_failures
=
true
;
_failures
=
true
;
failed
=
true
;
failed
=
true
;
_n_failures
++
;
_n_failures
++
;
...
@@ -155,6 +159,9 @@ public:
...
@@ -155,6 +159,9 @@ public:
cv_field
==
dirty
cv_field
==
dirty
:
cv_obj
==
dirty
||
cv_field
==
dirty
));
:
cv_obj
==
dirty
||
cv_field
==
dirty
));
if
(
is_bad
)
{
if
(
is_bad
)
{
MutexLockerEx
x
(
ParGCRareEvent_lock
,
Mutex
::
_no_safepoint_check_flag
);
if
(
!
_failures
)
{
if
(
!
_failures
)
{
gclog_or_tty
->
print_cr
(
""
);
gclog_or_tty
->
print_cr
(
""
);
gclog_or_tty
->
print_cr
(
"----------"
);
gclog_or_tty
->
print_cr
(
"----------"
);
...
@@ -174,6 +181,7 @@ public:
...
@@ -174,6 +181,7 @@ public:
gclog_or_tty
->
print_cr
(
"Obj head CTE = %d, field CTE = %d."
,
gclog_or_tty
->
print_cr
(
"Obj head CTE = %d, field CTE = %d."
,
cv_obj
,
cv_field
);
cv_obj
,
cv_field
);
gclog_or_tty
->
print_cr
(
"----------"
);
gclog_or_tty
->
print_cr
(
"----------"
);
gclog_or_tty
->
flush
();
_failures
=
true
;
_failures
=
true
;
if
(
!
failed
)
_n_failures
++
;
if
(
!
failed
)
_n_failures
++
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录