Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
147378d3
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
147378d3
编写于
8月 22, 2013
作者:
E
ehelin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8020692: TestGCEventMixed.java failed because of timestamp in event after end event
Reviewed-by: mgerdin, stefank
上级
68148a0f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
12 deletion
+19
-12
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+2
-2
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
+17
-10
未找到文件。
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
147378d3
...
@@ -2493,11 +2493,11 @@ void G1CollectedHeap::register_concurrent_cycle_start(jlong start_time) {
...
@@ -2493,11 +2493,11 @@ void G1CollectedHeap::register_concurrent_cycle_start(jlong start_time) {
void
G1CollectedHeap
::
register_concurrent_cycle_end
()
{
void
G1CollectedHeap
::
register_concurrent_cycle_end
()
{
if
(
_concurrent_cycle_started
)
{
if
(
_concurrent_cycle_started
)
{
_gc_timer_cm
->
register_gc_end
(
os
::
elapsed_counter
());
if
(
_cm
->
has_aborted
())
{
if
(
_cm
->
has_aborted
())
{
_gc_tracer_cm
->
report_concurrent_mode_failure
();
_gc_tracer_cm
->
report_concurrent_mode_failure
();
}
}
_gc_timer_cm
->
register_gc_end
(
os
::
elapsed_counter
());
_gc_tracer_cm
->
report_gc_end
(
_gc_timer_cm
->
gc_end
(),
_gc_timer_cm
->
time_partitions
());
_gc_tracer_cm
->
report_gc_end
(
_gc_timer_cm
->
gc_end
(),
_gc_timer_cm
->
time_partitions
());
_concurrent_cycle_started
=
false
;
_concurrent_cycle_started
=
false
;
...
...
src/share/vm/gc_implementation/shared/gcTraceSend.cpp
浏览文件 @
147378d3
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "gc_implementation/shared/gcTrace.hpp"
#include "gc_implementation/shared/gcTrace.hpp"
#include "gc_implementation/shared/gcWhen.hpp"
#include "gc_implementation/shared/gcWhen.hpp"
#include "gc_implementation/shared/copyFailedInfo.hpp"
#include "gc_implementation/shared/copyFailedInfo.hpp"
#include "runtime/os.hpp"
#include "trace/tracing.hpp"
#include "trace/tracing.hpp"
#include "trace/traceBackend.hpp"
#include "trace/traceBackend.hpp"
#if INCLUDE_ALL_GCS
#if INCLUDE_ALL_GCS
...
@@ -54,11 +55,12 @@ void GCTracer::send_garbage_collection_event() const {
...
@@ -54,11 +55,12 @@ void GCTracer::send_garbage_collection_event() const {
}
}
void
GCTracer
::
send_reference_stats_event
(
ReferenceType
type
,
size_t
count
)
const
{
void
GCTracer
::
send_reference_stats_event
(
ReferenceType
type
,
size_t
count
)
const
{
EventGCReferenceStatistics
e
;
EventGCReferenceStatistics
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_type
((
u1
)
type
);
e
.
set_type
((
u1
)
type
);
e
.
set_count
(
count
);
e
.
set_count
(
count
);
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
...
@@ -105,20 +107,22 @@ static TraceStructCopyFailed to_trace_struct(const CopyFailedInfo& cf_info) {
...
@@ -105,20 +107,22 @@ static TraceStructCopyFailed to_trace_struct(const CopyFailedInfo& cf_info) {
}
}
void
YoungGCTracer
::
send_promotion_failed_event
(
const
PromotionFailedInfo
&
pf_info
)
const
{
void
YoungGCTracer
::
send_promotion_failed_event
(
const
PromotionFailedInfo
&
pf_info
)
const
{
EventPromotionFailed
e
;
EventPromotionFailed
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_data
(
to_trace_struct
(
pf_info
));
e
.
set_data
(
to_trace_struct
(
pf_info
));
e
.
set_thread
(
pf_info
.
thread
()
->
thread_id
());
e
.
set_thread
(
pf_info
.
thread
()
->
thread_id
());
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
// Common to CMS and G1
// Common to CMS and G1
void
OldGCTracer
::
send_concurrent_mode_failure_event
()
{
void
OldGCTracer
::
send_concurrent_mode_failure_event
()
{
EventConcurrentModeFailure
e
;
EventConcurrentModeFailure
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
...
@@ -136,7 +140,7 @@ void G1NewTracer::send_g1_young_gc_event() {
...
@@ -136,7 +140,7 @@ void G1NewTracer::send_g1_young_gc_event() {
}
}
void
G1NewTracer
::
send_evacuation_info_event
(
EvacuationInfo
*
info
)
{
void
G1NewTracer
::
send_evacuation_info_event
(
EvacuationInfo
*
info
)
{
EventEvacuationInfo
e
;
EventEvacuationInfo
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_cSetRegions
(
info
->
collectionset_regions
());
e
.
set_cSetRegions
(
info
->
collectionset_regions
());
...
@@ -147,15 +151,17 @@ void G1NewTracer::send_evacuation_info_event(EvacuationInfo* info) {
...
@@ -147,15 +151,17 @@ void G1NewTracer::send_evacuation_info_event(EvacuationInfo* info) {
e
.
set_allocRegionsUsedAfter
(
info
->
alloc_regions_used_before
()
+
info
->
bytes_copied
());
e
.
set_allocRegionsUsedAfter
(
info
->
alloc_regions_used_before
()
+
info
->
bytes_copied
());
e
.
set_bytesCopied
(
info
->
bytes_copied
());
e
.
set_bytesCopied
(
info
->
bytes_copied
());
e
.
set_regionsFreed
(
info
->
regions_freed
());
e
.
set_regionsFreed
(
info
->
regions_freed
());
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
void
G1NewTracer
::
send_evacuation_failed_event
(
const
EvacuationFailedInfo
&
ef_info
)
const
{
void
G1NewTracer
::
send_evacuation_failed_event
(
const
EvacuationFailedInfo
&
ef_info
)
const
{
EventEvacuationFailed
e
;
EventEvacuationFailed
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_data
(
to_trace_struct
(
ef_info
));
e
.
set_data
(
to_trace_struct
(
ef_info
));
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
...
@@ -189,12 +195,13 @@ class GCHeapSummaryEventSender : public GCHeapSummaryVisitor {
...
@@ -189,12 +195,13 @@ class GCHeapSummaryEventSender : public GCHeapSummaryVisitor {
void
visit
(
const
GCHeapSummary
*
heap_summary
)
const
{
void
visit
(
const
GCHeapSummary
*
heap_summary
)
const
{
const
VirtualSpaceSummary
&
heap_space
=
heap_summary
->
heap
();
const
VirtualSpaceSummary
&
heap_space
=
heap_summary
->
heap
();
EventGCHeapSummary
e
;
EventGCHeapSummary
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_id
);
e
.
set_gcId
(
_id
);
e
.
set_when
((
u1
)
_when
);
e
.
set_when
((
u1
)
_when
);
e
.
set_heapSpace
(
to_trace_struct
(
heap_space
));
e
.
set_heapSpace
(
to_trace_struct
(
heap_space
));
e
.
set_heapUsed
(
heap_summary
->
used
());
e
.
set_heapUsed
(
heap_summary
->
used
());
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
...
@@ -209,7 +216,7 @@ class GCHeapSummaryEventSender : public GCHeapSummaryVisitor {
...
@@ -209,7 +216,7 @@ class GCHeapSummaryEventSender : public GCHeapSummaryVisitor {
const
SpaceSummary
&
from_space
=
ps_heap_summary
->
from
();
const
SpaceSummary
&
from_space
=
ps_heap_summary
->
from
();
const
SpaceSummary
&
to_space
=
ps_heap_summary
->
to
();
const
SpaceSummary
&
to_space
=
ps_heap_summary
->
to
();
EventPSHeapSummary
e
;
EventPSHeapSummary
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_id
);
e
.
set_gcId
(
_id
);
e
.
set_when
((
u1
)
_when
);
e
.
set_when
((
u1
)
_when
);
...
@@ -220,6 +227,7 @@ class GCHeapSummaryEventSender : public GCHeapSummaryVisitor {
...
@@ -220,6 +227,7 @@ class GCHeapSummaryEventSender : public GCHeapSummaryVisitor {
e
.
set_edenSpace
(
to_trace_struct
(
ps_heap_summary
->
eden
()));
e
.
set_edenSpace
(
to_trace_struct
(
ps_heap_summary
->
eden
()));
e
.
set_fromSpace
(
to_trace_struct
(
ps_heap_summary
->
from
()));
e
.
set_fromSpace
(
to_trace_struct
(
ps_heap_summary
->
from
()));
e
.
set_toSpace
(
to_trace_struct
(
ps_heap_summary
->
to
()));
e
.
set_toSpace
(
to_trace_struct
(
ps_heap_summary
->
to
()));
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
...
@@ -241,13 +249,14 @@ static TraceStructMetaspaceSizes to_trace_struct(const MetaspaceSizes& sizes) {
...
@@ -241,13 +249,14 @@ static TraceStructMetaspaceSizes to_trace_struct(const MetaspaceSizes& sizes) {
}
}
void
GCTracer
::
send_meta_space_summary_event
(
GCWhen
::
Type
when
,
const
MetaspaceSummary
&
meta_space_summary
)
const
{
void
GCTracer
::
send_meta_space_summary_event
(
GCWhen
::
Type
when
,
const
MetaspaceSummary
&
meta_space_summary
)
const
{
EventMetaspaceSummary
e
;
EventMetaspaceSummary
e
(
UNTIMED
)
;
if
(
e
.
should_commit
())
{
if
(
e
.
should_commit
())
{
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_gcId
(
_shared_gc_info
.
id
());
e
.
set_when
((
u1
)
when
);
e
.
set_when
((
u1
)
when
);
e
.
set_metaspace
(
to_trace_struct
(
meta_space_summary
.
meta_space
()));
e
.
set_metaspace
(
to_trace_struct
(
meta_space_summary
.
meta_space
()));
e
.
set_dataSpace
(
to_trace_struct
(
meta_space_summary
.
data_space
()));
e
.
set_dataSpace
(
to_trace_struct
(
meta_space_summary
.
data_space
()));
e
.
set_classSpace
(
to_trace_struct
(
meta_space_summary
.
class_space
()));
e
.
set_classSpace
(
to_trace_struct
(
meta_space_summary
.
class_space
()));
e
.
set_endtime
(
os
::
elapsed_counter
());
e
.
commit
();
e
.
commit
();
}
}
}
}
...
@@ -282,8 +291,6 @@ class PhaseSender : public PhaseVisitor {
...
@@ -282,8 +291,6 @@ class PhaseSender : public PhaseVisitor {
default:
/* Ignore sending this phase */
break
;
default:
/* Ignore sending this phase */
break
;
}
}
}
}
#undef send_phase
};
};
void
GCTracer
::
send_phase_events
(
TimePartitions
*
time_partitions
)
const
{
void
GCTracer
::
send_phase_events
(
TimePartitions
*
time_partitions
)
const
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录