Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
be1ea26d
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看板
提交
be1ea26d
编写于
8月 12, 2010
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6975006: assert(check.is_deoptimized_frame()) failed: missed deopt
Reviewed-by: kvn, twisti
上级
f1c7596a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
11 deletion
+17
-11
src/share/vm/runtime/frame.cpp
src/share/vm/runtime/frame.cpp
+10
-8
src/share/vm/runtime/frame.hpp
src/share/vm/runtime/frame.hpp
+1
-1
src/share/vm/runtime/safepoint.cpp
src/share/vm/runtime/safepoint.cpp
+3
-0
src/share/vm/runtime/safepoint.hpp
src/share/vm/runtime/safepoint.hpp
+2
-0
src/share/vm/runtime/thread.cpp
src/share/vm/runtime/thread.cpp
+1
-2
未找到文件。
src/share/vm/runtime/frame.cpp
浏览文件 @
be1ea26d
...
...
@@ -215,17 +215,15 @@ bool frame::can_be_deoptimized() const {
return
!
nm
->
is_at_poll_return
(
pc
());
}
void
frame
::
deoptimize
(
JavaThread
*
thread
,
bool
thread_is_known_safe
)
{
// Schedule deoptimization of an nmethod activation with this frame.
// Store the original pc before an patch (or request to self-deopt)
// in the published location of the frame.
void
frame
::
deoptimize
(
JavaThread
*
thread
)
{
// Schedule deoptimization of an nmethod activation with this frame.
assert
(
_cb
!=
NULL
&&
_cb
->
is_nmethod
(),
"must be"
);
nmethod
*
nm
=
(
nmethod
*
)
_cb
;
// This is a fix for register window patching race
if
(
NeedsDeoptSuspend
&&
!
thread_is_known_safe
)
{
if
(
NeedsDeoptSuspend
&&
Thread
::
current
()
!=
thread
)
{
assert
(
SafepointSynchronize
::
is_at_safepoint
(),
"patching other threads for deopt may only occur at a safepoint"
);
// It is possible especially with DeoptimizeALot/DeoptimizeRandom that
// we could see the frame again and ask for it to be deoptimized since
...
...
@@ -248,7 +246,11 @@ void frame::deoptimize(JavaThread* thread, bool thread_is_known_safe) {
// whether to spin or block. It isn't worth it. Just treat it like
// native and be done with it.
//
JavaThreadState
state
=
thread
->
thread_state
();
// Examine the state of the thread at the start of safepoint since
// threads that were in native at the start of the safepoint could
// come to a halt during the safepoint, changing the current value
// of the safepoint_state.
JavaThreadState
state
=
thread
->
safepoint_state
()
->
orig_thread_state
();
if
(
state
==
_thread_in_native
||
state
==
_thread_in_native_trans
)
{
// Since we are at a safepoint the target thread will stop itself
// before it can return to java as long as we remain at the safepoint.
...
...
src/share/vm/runtime/frame.hpp
浏览文件 @
be1ea26d
...
...
@@ -174,7 +174,7 @@ class frame VALUE_OBJ_CLASS_SPEC {
address
sender_pc
()
const
;
// Support for deoptimization
void
deoptimize
(
JavaThread
*
thread
,
bool
thread_is_known_safe
=
false
);
void
deoptimize
(
JavaThread
*
thread
);
// The frame's original SP, before any extension by an interpreted callee;
// used for packing debug info into vframeArray objects and vframeArray lookup.
...
...
src/share/vm/runtime/safepoint.cpp
浏览文件 @
be1ea26d
...
...
@@ -782,6 +782,9 @@ void ThreadSafepointState::examine_state_of_thread() {
JavaThreadState
state
=
_thread
->
thread_state
();
// Save the state at the start of safepoint processing.
_orig_thread_state
=
state
;
// Check for a thread that is suspended. Note that thread resume tries
// to grab the Threads_lock which we own here, so a thread cannot be
// resumed during safepoint synchronization.
...
...
src/share/vm/runtime/safepoint.hpp
浏览文件 @
be1ea26d
...
...
@@ -185,6 +185,7 @@ class ThreadSafepointState: public CHeapObj {
JavaThread
*
_thread
;
volatile
suspend_type
_type
;
JavaThreadState
_orig_thread_state
;
public:
...
...
@@ -199,6 +200,7 @@ class ThreadSafepointState: public CHeapObj {
JavaThread
*
thread
()
const
{
return
_thread
;
}
suspend_type
type
()
const
{
return
_type
;
}
bool
is_running
()
const
{
return
(
_type
==
_running
);
}
JavaThreadState
orig_thread_state
()
const
{
return
_orig_thread_state
;
}
// Support for safepoint timeout (debugging)
bool
has_called_back
()
const
{
return
_has_called_back
;
}
...
...
src/share/vm/runtime/thread.cpp
浏览文件 @
be1ea26d
...
...
@@ -2110,8 +2110,7 @@ void JavaThread::check_safepoint_and_suspend_for_native_trans(JavaThread *thread
}
if
(
f
.
id
()
==
thread
->
must_deopt_id
())
{
thread
->
clear_must_deopt_id
();
// Since we know we're safe to deopt the current state is a safe state
f
.
deoptimize
(
thread
,
true
);
f
.
deoptimize
(
thread
);
}
else
{
fatal
(
"missed deoptimization!"
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录