Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
60490749
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看板
提交
60490749
编写于
3月 26, 2014
作者:
E
ehelin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8035667: EventMetaspaceSummary doesn't report committed Metaspace memory
Reviewed-by: jmasa, stefank
上级
27d41bd1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
src/share/vm/gc_implementation/shared/gcHeapSummary.hpp
src/share/vm/gc_implementation/shared/gcHeapSummary.hpp
+5
-5
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
+1
-1
src/share/vm/gc_interface/collectedHeap.cpp
src/share/vm/gc_interface/collectedHeap.cpp
+3
-3
src/share/vm/trace/trace.xml
src/share/vm/trace/trace.xml
+1
-1
未找到文件。
src/share/vm/gc_implementation/shared/gcHeapSummary.hpp
浏览文件 @
60490749
...
...
@@ -62,16 +62,16 @@ public:
};
class
MetaspaceSizes
:
public
StackObj
{
size_t
_c
apacity
;
size_t
_c
ommitted
;
size_t
_used
;
size_t
_reserved
;
public:
MetaspaceSizes
()
:
_c
apacity
(
0
),
_used
(
0
),
_reserved
(
0
)
{}
MetaspaceSizes
(
size_t
c
apacity
,
size_t
used
,
size_t
reserved
)
:
_c
apacity
(
capacity
),
_used
(
used
),
_reserved
(
reserved
)
{}
MetaspaceSizes
()
:
_c
ommitted
(
0
),
_used
(
0
),
_reserved
(
0
)
{}
MetaspaceSizes
(
size_t
c
ommitted
,
size_t
used
,
size_t
reserved
)
:
_c
ommitted
(
committed
),
_used
(
used
),
_reserved
(
reserved
)
{}
size_t
c
apacity
()
const
{
return
_capacity
;
}
size_t
c
ommitted
()
const
{
return
_committed
;
}
size_t
used
()
const
{
return
_used
;
}
size_t
reserved
()
const
{
return
_reserved
;
}
};
...
...
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
浏览文件 @
60490749
...
...
@@ -258,7 +258,7 @@ void GCTracer::send_gc_heap_summary_event(GCWhen::Type when, const GCHeapSummary
static
TraceStructMetaspaceSizes
to_trace_struct
(
const
MetaspaceSizes
&
sizes
)
{
TraceStructMetaspaceSizes
meta_sizes
;
meta_sizes
.
set_c
apacity
(
sizes
.
capacity
());
meta_sizes
.
set_c
ommitted
(
sizes
.
committed
());
meta_sizes
.
set_used
(
sizes
.
used
());
meta_sizes
.
set_reserved
(
sizes
.
reserved
());
...
...
src/share/vm/gc_interface/collectedHeap.cpp
浏览文件 @
60490749
...
...
@@ -85,15 +85,15 @@ GCHeapSummary CollectedHeap::create_heap_summary() {
MetaspaceSummary
CollectedHeap
::
create_metaspace_summary
()
{
const
MetaspaceSizes
meta_space
(
MetaspaceAux
::
allocated_capacity
_bytes
(),
MetaspaceAux
::
committed
_bytes
(),
MetaspaceAux
::
allocated_used_bytes
(),
MetaspaceAux
::
reserved_bytes
());
const
MetaspaceSizes
data_space
(
MetaspaceAux
::
allocated_capacity
_bytes
(
Metaspace
::
NonClassType
),
MetaspaceAux
::
committed
_bytes
(
Metaspace
::
NonClassType
),
MetaspaceAux
::
allocated_used_bytes
(
Metaspace
::
NonClassType
),
MetaspaceAux
::
reserved_bytes
(
Metaspace
::
NonClassType
));
const
MetaspaceSizes
class_space
(
MetaspaceAux
::
allocated_capacity
_bytes
(
Metaspace
::
ClassType
),
MetaspaceAux
::
committed
_bytes
(
Metaspace
::
ClassType
),
MetaspaceAux
::
allocated_used_bytes
(
Metaspace
::
ClassType
),
MetaspaceAux
::
reserved_bytes
(
Metaspace
::
ClassType
));
...
...
src/share/vm/trace/trace.xml
浏览文件 @
60490749
...
...
@@ -185,7 +185,7 @@ Declares a structure type that can be used in other events.
</event>
<struct
id=
"MetaspaceSizes"
>
<value
type=
"BYTES64"
field=
"c
apacity"
label=
"Capacity"
description=
"Total available memory to allocate in
"
/>
<value
type=
"BYTES64"
field=
"c
ommitted"
label=
"Committed"
description=
"Committed memory for this space
"
/>
<value
type=
"BYTES64"
field=
"used"
label=
"Used"
description=
"Bytes allocated by objects in the space"
/>
<value
type=
"BYTES64"
field=
"reserved"
label=
"Reserved"
description=
"Reserved memory for this space"
/>
</struct>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录