Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
e9d3b70a
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看板
提交
e9d3b70a
编写于
10月 07, 2013
作者:
V
vlivanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8024943: ciReplay: fails to dump replay data during safepointing
Reviewed-by: kvn, twisti
上级
253cefe2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
7 deletion
+15
-7
src/share/vm/ci/ciEnv.cpp
src/share/vm/ci/ciEnv.cpp
+13
-3
src/share/vm/ci/ciEnv.hpp
src/share/vm/ci/ciEnv.hpp
+1
-0
src/share/vm/ci/ciInstanceKlass.cpp
src/share/vm/ci/ciInstanceKlass.cpp
+0
-1
src/share/vm/ci/ciMethod.cpp
src/share/vm/ci/ciMethod.cpp
+0
-1
src/share/vm/ci/ciMethodData.cpp
src/share/vm/ci/ciMethodData.cpp
+0
-1
src/share/vm/utilities/vmError.cpp
src/share/vm/utilities/vmError.cpp
+1
-1
未找到文件。
src/share/vm/ci/ciEnv.cpp
浏览文件 @
e9d3b70a
...
@@ -1154,9 +1154,12 @@ ciInstance* ciEnv::unloaded_ciinstance() {
...
@@ -1154,9 +1154,12 @@ ciInstance* ciEnv::unloaded_ciinstance() {
GUARDED_VM_ENTRY
(
return
_factory
->
get_unloaded_object_constant
();)
GUARDED_VM_ENTRY
(
return
_factory
->
get_unloaded_object_constant
();)
}
}
void
ciEnv
::
dump_replay_data
(
outputStream
*
out
)
{
// ------------------------------------------------------------------
VM_ENTRY_MARK
;
// ciEnv::dump_replay_data*
MutexLocker
ml
(
Compile_lock
);
// Don't change thread state and acquire any locks.
// Safe to call from VM error reporter.
void
ciEnv
::
dump_replay_data_unsafe
(
outputStream
*
out
)
{
ResourceMark
rm
;
ResourceMark
rm
;
#if INCLUDE_JVMTI
#if INCLUDE_JVMTI
out
->
print_cr
(
"JvmtiExport can_access_local_variables %d"
,
_jvmti_can_access_local_variables
);
out
->
print_cr
(
"JvmtiExport can_access_local_variables %d"
,
_jvmti_can_access_local_variables
);
...
@@ -1181,3 +1184,10 @@ void ciEnv::dump_replay_data(outputStream* out) {
...
@@ -1181,3 +1184,10 @@ void ciEnv::dump_replay_data(outputStream* out) {
entry_bci
,
comp_level
);
entry_bci
,
comp_level
);
out
->
flush
();
out
->
flush
();
}
}
void
ciEnv
::
dump_replay_data
(
outputStream
*
out
)
{
GUARDED_VM_ENTRY
(
MutexLocker
ml
(
Compile_lock
);
dump_replay_data_unsafe
(
out
);
)
}
src/share/vm/ci/ciEnv.hpp
浏览文件 @
e9d3b70a
...
@@ -452,6 +452,7 @@ public:
...
@@ -452,6 +452,7 @@ public:
// Dump the compilation replay data for the ciEnv to the stream.
// Dump the compilation replay data for the ciEnv to the stream.
void
dump_replay_data
(
outputStream
*
out
);
void
dump_replay_data
(
outputStream
*
out
);
void
dump_replay_data_unsafe
(
outputStream
*
out
);
};
};
#endif // SHARE_VM_CI_CIENV_HPP
#endif // SHARE_VM_CI_CIENV_HPP
src/share/vm/ci/ciInstanceKlass.cpp
浏览文件 @
e9d3b70a
...
@@ -671,7 +671,6 @@ class StaticFinalFieldPrinter : public FieldClosure {
...
@@ -671,7 +671,6 @@ class StaticFinalFieldPrinter : public FieldClosure {
void
ciInstanceKlass
::
dump_replay_data
(
outputStream
*
out
)
{
void
ciInstanceKlass
::
dump_replay_data
(
outputStream
*
out
)
{
ASSERT_IN_VM
;
ResourceMark
rm
;
ResourceMark
rm
;
InstanceKlass
*
ik
=
get_instanceKlass
();
InstanceKlass
*
ik
=
get_instanceKlass
();
...
...
src/share/vm/ci/ciMethod.cpp
浏览文件 @
e9d3b70a
...
@@ -1247,7 +1247,6 @@ ciMethodBlocks *ciMethod::get_method_blocks() {
...
@@ -1247,7 +1247,6 @@ ciMethodBlocks *ciMethod::get_method_blocks() {
#undef FETCH_FLAG_FROM_VM
#undef FETCH_FLAG_FROM_VM
void
ciMethod
::
dump_replay_data
(
outputStream
*
st
)
{
void
ciMethod
::
dump_replay_data
(
outputStream
*
st
)
{
ASSERT_IN_VM
;
ResourceMark
rm
;
ResourceMark
rm
;
Method
*
method
=
get_Method
();
Method
*
method
=
get_Method
();
MethodCounters
*
mcs
=
method
->
method_counters
();
MethodCounters
*
mcs
=
method
->
method_counters
();
...
...
src/share/vm/ci/ciMethodData.cpp
浏览文件 @
e9d3b70a
...
@@ -373,7 +373,6 @@ void ciMethodData::print_impl(outputStream* st) {
...
@@ -373,7 +373,6 @@ void ciMethodData::print_impl(outputStream* st) {
}
}
void
ciMethodData
::
dump_replay_data
(
outputStream
*
out
)
{
void
ciMethodData
::
dump_replay_data
(
outputStream
*
out
)
{
ASSERT_IN_VM
;
ResourceMark
rm
;
ResourceMark
rm
;
MethodData
*
mdo
=
get_MethodData
();
MethodData
*
mdo
=
get_MethodData
();
Method
*
method
=
mdo
->
method
();
Method
*
method
=
mdo
->
method
();
...
...
src/share/vm/utilities/vmError.cpp
浏览文件 @
e9d3b70a
...
@@ -1050,7 +1050,7 @@ void VMError::report_and_die() {
...
@@ -1050,7 +1050,7 @@ void VMError::report_and_die() {
FILE
*
replay_data_file
=
os
::
open
(
fd
,
"w"
);
FILE
*
replay_data_file
=
os
::
open
(
fd
,
"w"
);
if
(
replay_data_file
!=
NULL
)
{
if
(
replay_data_file
!=
NULL
)
{
fileStream
replay_data_stream
(
replay_data_file
,
/*need_close=*/
true
);
fileStream
replay_data_stream
(
replay_data_file
,
/*need_close=*/
true
);
env
->
dump_replay_data
(
&
replay_data_stream
);
env
->
dump_replay_data
_unsafe
(
&
replay_data_stream
);
out
.
print_raw
(
"#
\n
# Compiler replay data is saved as:
\n
# "
);
out
.
print_raw
(
"#
\n
# Compiler replay data is saved as:
\n
# "
);
out
.
print_raw_cr
(
buffer
);
out
.
print_raw_cr
(
buffer
);
}
else
{
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录