Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
fe61b2cd
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看板
提交
fe61b2cd
编写于
8月 25, 2014
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8055416: Several vm/gc/heap/summary "After GC" events emitted for the same GC ID
Reviewed-by: brutisso, ehelin
上级
dabee1f8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
1 deletion
+14
-1
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+13
-1
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
+1
-0
未找到文件。
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
fe61b2cd
...
...
@@ -1877,6 +1877,7 @@ G1CollectedHeap::G1CollectedHeap(G1CollectorPolicy* policy_) :
_old_marking_cycles_started
(
0
),
_old_marking_cycles_completed
(
0
),
_concurrent_cycle_started
(
false
),
_heap_summary_sent
(
false
),
_in_cset_fast_test
(),
_dirty_cards_region_list
(
NULL
),
_worker_cset_start_region
(
NULL
),
...
...
@@ -2447,13 +2448,24 @@ void G1CollectedHeap::register_concurrent_cycle_end() {
_gc_timer_cm
->
register_gc_end
();
_gc_tracer_cm
->
report_gc_end
(
_gc_timer_cm
->
gc_end
(),
_gc_timer_cm
->
time_partitions
());
// Clear state variables to prepare for the next concurrent cycle.
_concurrent_cycle_started
=
false
;
_heap_summary_sent
=
false
;
}
}
void
G1CollectedHeap
::
trace_heap_after_concurrent_cycle
()
{
if
(
_concurrent_cycle_started
)
{
trace_heap_after_gc
(
_gc_tracer_cm
);
// This function can be called when:
// the cleanup pause is run
// the concurrent cycle is aborted before the cleanup pause.
// the concurrent cycle is aborted after the cleanup pause,
// but before the concurrent cycle end has been registered.
// Make sure that we only send the heap information once.
if
(
!
_heap_summary_sent
)
{
trace_heap_after_gc
(
_gc_tracer_cm
);
_heap_summary_sent
=
true
;
}
}
}
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
浏览文件 @
fe61b2cd
...
...
@@ -346,6 +346,7 @@ private:
volatile
unsigned
int
_old_marking_cycles_completed
;
bool
_concurrent_cycle_started
;
bool
_heap_summary_sent
;
// This is a non-product method that is helpful for testing. It is
// called at the end of a GC and artificially expands the heap by
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录