Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
c148f71d
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看板
提交
c148f71d
编写于
3月 21, 2014
作者:
E
ehelin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8036696: Add metaspace gc threshold to metaspace summary trace event
Reviewed-by: jmasa, stefank, mgerdin
上级
e19f4721
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
8 addition
and
4 deletion
+8
-4
src/share/vm/gc_implementation/shared/gcHeapSummary.hpp
src/share/vm/gc_implementation/shared/gcHeapSummary.hpp
+5
-3
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
+1
-0
src/share/vm/gc_interface/collectedHeap.cpp
src/share/vm/gc_interface/collectedHeap.cpp
+1
-1
src/share/vm/trace/trace.xml
src/share/vm/trace/trace.xml
+1
-0
未找到文件。
src/share/vm/gc_implementation/shared/gcHeapSummary.hpp
浏览文件 @
c148f71d
...
...
@@ -125,15 +125,17 @@ class PSHeapSummary : public GCHeapSummary {
};
class
MetaspaceSummary
:
public
StackObj
{
size_t
_capacity_until_GC
;
MetaspaceSizes
_meta_space
;
MetaspaceSizes
_data_space
;
MetaspaceSizes
_class_space
;
public:
MetaspaceSummary
()
:
_meta_space
(),
_data_space
(),
_class_space
()
{}
MetaspaceSummary
(
const
MetaspaceSizes
&
meta_space
,
const
MetaspaceSizes
&
data_space
,
const
MetaspaceSizes
&
class_space
)
:
_meta_space
(
meta_space
),
_data_space
(
data_space
),
_class_space
(
class_space
)
{
}
MetaspaceSummary
()
:
_
capacity_until_GC
(
0
),
_
meta_space
(),
_data_space
(),
_class_space
()
{}
MetaspaceSummary
(
size_t
capacity_until_GC
,
const
MetaspaceSizes
&
meta_space
,
const
MetaspaceSizes
&
data_space
,
const
MetaspaceSizes
&
class_space
)
:
_
capacity_until_GC
(
capacity_until_GC
),
_
meta_space
(
meta_space
),
_data_space
(
data_space
),
_class_space
(
class_space
)
{
}
size_t
capacity_until_GC
()
const
{
return
_capacity_until_GC
;
}
const
MetaspaceSizes
&
meta_space
()
const
{
return
_meta_space
;
}
const
MetaspaceSizes
&
data_space
()
const
{
return
_data_space
;
}
const
MetaspaceSizes
&
class_space
()
const
{
return
_class_space
;
}
...
...
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
浏览文件 @
c148f71d
...
...
@@ -246,6 +246,7 @@ void GCTracer::send_meta_space_summary_event(GCWhen::Type when, const MetaspaceS
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_when
((
u1
)
when
);
e
.
set_gcThreshold
(
meta_space_summary
.
capacity_until_GC
());
e
.
set_metaspace
(
to_trace_struct
(
meta_space_summary
.
meta_space
()));
e
.
set_dataSpace
(
to_trace_struct
(
meta_space_summary
.
data_space
()));
e
.
set_classSpace
(
to_trace_struct
(
meta_space_summary
.
class_space
()));
...
...
src/share/vm/gc_interface/collectedHeap.cpp
浏览文件 @
c148f71d
...
...
@@ -97,7 +97,7 @@ MetaspaceSummary CollectedHeap::create_metaspace_summary() {
MetaspaceAux
::
allocated_used_bytes
(
Metaspace
::
ClassType
),
MetaspaceAux
::
reserved_bytes
(
Metaspace
::
ClassType
));
return
MetaspaceSummary
(
meta_space
,
data_space
,
class_space
);
return
MetaspaceSummary
(
MetaspaceGC
::
capacity_until_GC
(),
meta_space
,
data_space
,
class_space
);
}
void
CollectedHeap
::
print_heap_before_gc
()
{
...
...
src/share/vm/trace/trace.xml
浏览文件 @
c148f71d
...
...
@@ -193,6 +193,7 @@ Declares a structure type that can be used in other events.
<event
id=
"MetaspaceSummary"
path=
"vm/gc/heap/metaspace_summary"
label=
"Metaspace Summary"
is_instant=
"true"
>
<value
type=
"UINT"
field=
"gcId"
label=
"GC ID"
relation=
"GC_ID"
/>
<value
type=
"GCWHEN"
field=
"when"
label=
"When"
/>
<value
type=
"BYTES64"
field=
"gcThreshold"
label=
"GC Threshold"
/>
<structvalue
type=
"MetaspaceSizes"
field=
"metaspace"
label=
"Total"
/>
<structvalue
type=
"MetaspaceSizes"
field=
"dataSpace"
label=
"Data"
/>
<structvalue
type=
"MetaspaceSizes"
field=
"classSpace"
label=
"Class"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录