Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
586a7855
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看板
提交
586a7855
编写于
1月 04, 2013
作者:
J
jmasa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8005672: Clean up some changes to GC logging with GCCause's
Reviewed-by: johnc, ysr
上级
beabdf1c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
6 deletion
+7
-6
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
...ion/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
+2
-2
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+1
-1
src/share/vm/gc_implementation/parallelScavenge/psYoungGen.cpp
...hare/vm/gc_implementation/parallelScavenge/psYoungGen.cpp
+2
-1
src/share/vm/gc_interface/gcCause.hpp
src/share/vm/gc_interface/gcCause.hpp
+2
-2
未找到文件。
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
浏览文件 @
586a7855
...
...
@@ -827,10 +827,10 @@ void ConcurrentMarkSweepGeneration::printOccupancy(const char *s) {
GenCollectedHeap
*
gch
=
GenCollectedHeap
::
heap
();
if
(
PrintGCDetails
)
{
if
(
Verbose
)
{
gclog_or_tty
->
print
(
"
[%d %s-%s: "
SIZE_FORMAT
"("
SIZE_FORMAT
")]"
,
gclog_or_tty
->
print
(
"[%d %s-%s: "
SIZE_FORMAT
"("
SIZE_FORMAT
")]"
,
level
(),
short_name
(),
s
,
used
(),
capacity
());
}
else
{
gclog_or_tty
->
print
(
"
[%d %s-%s: "
SIZE_FORMAT
"K("
SIZE_FORMAT
"K)]"
,
gclog_or_tty
->
print
(
"[%d %s-%s: "
SIZE_FORMAT
"K("
SIZE_FORMAT
"K)]"
,
level
(),
short_name
(),
s
,
used
()
/
K
,
capacity
()
/
K
);
}
}
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
586a7855
...
...
@@ -3668,7 +3668,7 @@ void G1CollectedHeap::log_gc_header() {
gclog_or_tty
->
stamp
(
PrintGCTimeStamps
);
GCCauseString
gc_cause_str
=
GCCauseString
(
"GC pause"
,
gc_cause
())
.
append
(
g1_policy
()
->
gcs_are_young
()
?
"
(young)"
:
"
(mixed)"
)
.
append
(
g1_policy
()
->
gcs_are_young
()
?
"
(young)"
:
"
(mixed)"
)
.
append
(
g1_policy
()
->
during_initial_mark_pause
()
?
" (initial-mark)"
:
""
);
gclog_or_tty
->
print
(
"[%s"
,
(
const
char
*
)
gc_cause_str
);
...
...
src/share/vm/gc_implementation/parallelScavenge/psYoungGen.cpp
浏览文件 @
586a7855
...
...
@@ -808,8 +808,9 @@ void PSYoungGen::print_on(outputStream* st) const {
st
->
print
(
" to "
);
to_space
()
->
print_on
(
st
);
}
// Note that a space is not printed before the [NAME:
void
PSYoungGen
::
print_used_change
(
size_t
prev_used
)
const
{
gclog_or_tty
->
print
(
"
[%s:"
,
name
());
gclog_or_tty
->
print
(
"[%s:"
,
name
());
gclog_or_tty
->
print
(
" "
SIZE_FORMAT
"K"
"->"
SIZE_FORMAT
"K"
"("
SIZE_FORMAT
"K)"
,
...
...
src/share/vm/gc_interface/gcCause.hpp
浏览文件 @
586a7855
...
...
@@ -99,9 +99,9 @@ class GCCauseString : StackObj {
public:
GCCauseString
(
const
char
*
prefix
,
GCCause
::
Cause
cause
)
{
if
(
PrintGCCause
)
{
_position
=
jio_snprintf
(
_buffer
,
_length
,
"%s (%s)"
,
prefix
,
GCCause
::
to_string
(
cause
));
_position
=
jio_snprintf
(
_buffer
,
_length
,
"%s (%s)
"
,
prefix
,
GCCause
::
to_string
(
cause
));
}
else
{
_position
=
jio_snprintf
(
_buffer
,
_length
,
"%s"
,
prefix
);
_position
=
jio_snprintf
(
_buffer
,
_length
,
"%s
"
,
prefix
);
}
assert
(
_position
>=
0
&&
_position
<=
_length
,
err_msg
(
"Need to increase the buffer size in GCCauseString? %d"
,
_position
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录