Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
9892e0a8
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看板
提交
9892e0a8
编写于
12月 05, 2018
作者:
E
egahlin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8205516: JFR tool
Reviewed-by: mgronlun
上级
ca4e51bc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
4 deletion
+16
-4
src/share/vm/jfr/leakprofiler/emitEventOperation.cpp
src/share/vm/jfr/leakprofiler/emitEventOperation.cpp
+6
-4
src/share/vm/jfr/leakprofiler/sampling/objectSampler.cpp
src/share/vm/jfr/leakprofiler/sampling/objectSampler.cpp
+4
-0
src/share/vm/jfr/leakprofiler/sampling/objectSampler.hpp
src/share/vm/jfr/leakprofiler/sampling/objectSampler.hpp
+1
-0
src/share/vm/jfr/leakprofiler/sampling/sampleList.cpp
src/share/vm/jfr/leakprofiler/sampling/sampleList.cpp
+4
-0
src/share/vm/jfr/leakprofiler/sampling/sampleList.hpp
src/share/vm/jfr/leakprofiler/sampling/sampleList.hpp
+1
-0
未找到文件。
src/share/vm/jfr/leakprofiler/emitEventOperation.cpp
浏览文件 @
9892e0a8
...
@@ -157,12 +157,14 @@ int EmitEventOperation::write_events(EdgeStore* edge_store) {
...
@@ -157,12 +157,14 @@ int EmitEventOperation::write_events(EdgeStore* edge_store) {
const
jlong
last_sweep
=
_emit_all
?
max_jlong
:
_object_sampler
->
last_sweep
().
value
();
const
jlong
last_sweep
=
_emit_all
?
max_jlong
:
_object_sampler
->
last_sweep
().
value
();
int
count
=
0
;
int
count
=
0
;
for
(
int
i
=
0
;
i
<
_object_sampler
->
item_count
();
++
i
)
{
const
ObjectSample
*
current
=
_object_sampler
->
first
();
const
ObjectSample
*
sample
=
_object_sampler
->
item_at
(
i
);
while
(
current
!=
NULL
)
{
if
(
sample
->
is_alive_and_older_than
(
last_sweep
))
{
ObjectSample
*
prev
=
current
->
prev
();
write_event
(
sample
,
edge_store
);
if
(
current
->
is_alive_and_older_than
(
last_sweep
))
{
write_event
(
current
,
edge_store
);
++
count
;
++
count
;
}
}
current
=
prev
;
}
}
// restore thread local stack trace and thread id
// restore thread local stack trace and thread id
...
...
src/share/vm/jfr/leakprofiler/sampling/objectSampler.cpp
浏览文件 @
9892e0a8
...
@@ -121,6 +121,10 @@ const ObjectSample* ObjectSampler::last() const {
...
@@ -121,6 +121,10 @@ const ObjectSample* ObjectSampler::last() const {
return
_list
->
last
();
return
_list
->
last
();
}
}
const
ObjectSample
*
ObjectSampler
::
first
()
const
{
return
_list
->
first
();
}
const
ObjectSample
*
ObjectSampler
::
last_resolved
()
const
{
const
ObjectSample
*
ObjectSampler
::
last_resolved
()
const
{
return
_list
->
last_resolved
();
return
_list
->
last_resolved
();
}
}
...
...
src/share/vm/jfr/leakprofiler/sampling/objectSampler.hpp
浏览文件 @
9892e0a8
...
@@ -69,6 +69,7 @@ class ObjectSampler : public CHeapObj<mtTracing> {
...
@@ -69,6 +69,7 @@ class ObjectSampler : public CHeapObj<mtTracing> {
const
ObjectSample
*
item_at
(
int
index
)
const
;
const
ObjectSample
*
item_at
(
int
index
)
const
;
ObjectSample
*
item_at
(
int
index
);
ObjectSample
*
item_at
(
int
index
);
int
item_count
()
const
;
int
item_count
()
const
;
const
ObjectSample
*
first
()
const
;
const
ObjectSample
*
last
()
const
;
const
ObjectSample
*
last
()
const
;
const
ObjectSample
*
last_resolved
()
const
;
const
ObjectSample
*
last_resolved
()
const
;
void
set_last_resolved
(
const
ObjectSample
*
sample
);
void
set_last_resolved
(
const
ObjectSample
*
sample
);
...
...
src/share/vm/jfr/leakprofiler/sampling/sampleList.cpp
浏览文件 @
9892e0a8
...
@@ -45,6 +45,10 @@ ObjectSample* SampleList::last() const {
...
@@ -45,6 +45,10 @@ ObjectSample* SampleList::last() const {
return
_in_use_list
.
head
();
return
_in_use_list
.
head
();
}
}
ObjectSample
*
SampleList
::
first
()
const
{
return
_in_use_list
.
tail
();
}
const
ObjectSample
*
SampleList
::
last_resolved
()
const
{
const
ObjectSample
*
SampleList
::
last_resolved
()
const
{
return
_last_resolved
;
return
_last_resolved
;
}
}
...
...
src/share/vm/jfr/leakprofiler/sampling/sampleList.hpp
浏览文件 @
9892e0a8
...
@@ -53,6 +53,7 @@ class SampleList : public JfrCHeapObj {
...
@@ -53,6 +53,7 @@ class SampleList : public JfrCHeapObj {
void
set_last_resolved
(
const
ObjectSample
*
sample
);
void
set_last_resolved
(
const
ObjectSample
*
sample
);
ObjectSample
*
get
();
ObjectSample
*
get
();
ObjectSample
*
last
()
const
;
ObjectSample
*
last
()
const
;
ObjectSample
*
first
()
const
;
void
release
(
ObjectSample
*
sample
);
void
release
(
ObjectSample
*
sample
);
const
ObjectSample
*
last_resolved
()
const
;
const
ObjectSample
*
last_resolved
()
const
;
ObjectSample
*
reuse
(
ObjectSample
*
sample
);
ObjectSample
*
reuse
(
ObjectSample
*
sample
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录