Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
77e715a0
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看板
提交
77e715a0
编写于
12月 12, 2018
作者:
E
egahlin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8165675: Trace event for thread park has incorrect unit for timeout
Reviewed-by: mgronlun
上级
9fd27380
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
5 deletion
+17
-5
src/share/vm/jfr/metadata/metadata.xml
src/share/vm/jfr/metadata/metadata.xml
+4
-2
src/share/vm/prims/unsafe.cpp
src/share/vm/prims/unsafe.cpp
+13
-3
未找到文件。
src/share/vm/jfr/metadata/metadata.xml
浏览文件 @
77e715a0
...
...
@@ -40,7 +40,8 @@
<Event
name=
"ThreadPark"
category=
"Java Application"
label=
"Java Thread Park"
thread=
"true"
stackTrace=
"true"
>
<Field
type=
"Class"
name=
"parkedClass"
label=
"Class Parked On"
/>
<Field
type=
"long"
contentType=
"millis"
name=
"timeout"
label=
"Park Timeout"
/>
<Field
type=
"long"
contentType=
"nanos"
name=
"timeout"
label=
"Park Timeout"
/>
<Field
type=
"long"
contentType=
"epochmillis"
name=
"until"
label=
"Park Until"
/>
<Field
type=
"ulong"
contentType=
"address"
name=
"address"
label=
"Address of Object Parked"
relation=
"JavaMonitorAddress"
/>
</Event>
...
...
@@ -1134,5 +1135,6 @@
<XmlContentType
name=
"address"
annotationType=
"jdk.jfr.MemoryAddress"
/>
<XmlContentType
name=
"percentage"
annotationType=
"jdk.jfr.Percentage"
/>
<XmlContentType
name=
"millis"
annotationType=
"jdk.jfr.Timespan"
annotationValue=
"MILLISECONDS"
/>
<XmlContentType
name=
"nanos"
annotationType=
"jdk.jfr.Timespan"
annotationValue=
"NANOSECONDS"
/>
</Metadata>
src/share/vm/prims/unsafe.cpp
浏览文件 @
77e715a0
...
...
@@ -1236,11 +1236,12 @@ UNSAFE_ENTRY(jboolean, Unsafe_CompareAndSwapLong(JNIEnv *env, jobject unsafe, jo
#endif
UNSAFE_END
static
void
post_thread_park_event
(
EventThreadPark
*
event
,
const
oop
obj
,
jlong
timeout
)
{
static
void
post_thread_park_event
(
EventThreadPark
*
event
,
const
oop
obj
,
jlong
timeout
_nanos
,
jlong
until_epoch_millis
)
{
assert
(
event
!=
NULL
,
"invariant"
);
assert
(
event
->
should_commit
(),
"invariant"
);
event
->
set_parkedClass
((
obj
!=
NULL
)
?
obj
->
klass
()
:
NULL
);
event
->
set_timeout
(
timeout
);
event
->
set_timeout
(
timeout_nanos
);
event
->
set_until
(
until_epoch_millis
);
event
->
set_address
((
obj
!=
NULL
)
?
(
u8
)
cast_from_oop
<
uintptr_t
>
(
obj
)
:
0
);
event
->
commit
();
}
...
...
@@ -1263,7 +1264,16 @@ UNSAFE_ENTRY(void, Unsafe_Park(JNIEnv *env, jobject unsafe, jboolean isAbsolute,
(
uintptr_t
)
thread
->
parker
());
#endif
/* USDT2 */
if
(
event
.
should_commit
())
{
post_thread_park_event
(
&
event
,
thread
->
current_park_blocker
(),
time
);
const
oop
obj
=
thread
->
current_park_blocker
();
if
(
time
==
0
)
{
post_thread_park_event
(
&
event
,
obj
,
min_jlong
,
min_jlong
);
}
else
{
if
(
isAbsolute
!=
0
)
{
post_thread_park_event
(
&
event
,
obj
,
min_jlong
,
time
);
}
else
{
post_thread_park_event
(
&
event
,
obj
,
time
,
min_jlong
);
}
}
}
UNSAFE_END
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录