Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
32242c8c
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看板
提交
32242c8c
编写于
6月 24, 2013
作者:
G
goetz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8017313: PPC64 (part 6): stack handling improvements
Summary: Precompute limit for stack overflow check. Reviewed-by: kvn, coleenp
上级
798b24ab
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
1 deletion
+17
-1
src/share/vm/runtime/thread.cpp
src/share/vm/runtime/thread.cpp
+3
-0
src/share/vm/runtime/thread.hpp
src/share/vm/runtime/thread.hpp
+14
-1
未找到文件。
src/share/vm/runtime/thread.cpp
浏览文件 @
32242c8c
...
...
@@ -312,6 +312,9 @@ void Thread::initialize_thread_local_storage() {
void
Thread
::
record_stack_base_and_size
()
{
set_stack_base
(
os
::
current_stack_base
());
set_stack_size
(
os
::
current_stack_size
());
if
(
is_Java_thread
())
{
((
JavaThread
*
)
this
)
->
set_stack_overflow_limit
();
}
// CR 7190089: on Solaris, primordial thread's stack is adjusted
// in initialize_thread(). Without the adjustment, stack size is
// incorrect if stack is set to unlimited (ulimit -s unlimited).
...
...
src/share/vm/runtime/thread.hpp
浏览文件 @
32242c8c
...
...
@@ -895,6 +895,10 @@ class JavaThread: public Thread {
StackGuardState
_stack_guard_state
;
// Precompute the limit of the stack as used in stack overflow checks.
// We load it from here to simplify the stack overflow check in assembly.
address
_stack_overflow_limit
;
// Compiler exception handling (NOTE: The _exception_oop is *NOT* the same as _pending_exception. It is
// used to temp. parsing values into and out of the runtime system during exception handling for compiled
// code)
...
...
@@ -1301,6 +1305,14 @@ class JavaThread: public Thread {
// and reguard if possible.
bool
reguard_stack
(
void
);
address
stack_overflow_limit
()
{
return
_stack_overflow_limit
;
}
void
set_stack_overflow_limit
()
{
_stack_overflow_limit
=
_stack_base
-
_stack_size
+
((
StackShadowPages
+
StackYellowPages
+
StackRedPages
)
*
os
::
vm_page_size
());
}
// Misc. accessors/mutators
void
set_do_not_unlock
(
void
)
{
_do_not_unlock_if_synchronized
=
true
;
}
void
clr_do_not_unlock
(
void
)
{
_do_not_unlock_if_synchronized
=
false
;
}
...
...
@@ -1335,6 +1347,7 @@ class JavaThread: public Thread {
static
ByteSize
exception_oop_offset
()
{
return
byte_offset_of
(
JavaThread
,
_exception_oop
);
}
static
ByteSize
exception_pc_offset
()
{
return
byte_offset_of
(
JavaThread
,
_exception_pc
);
}
static
ByteSize
exception_handler_pc_offset
()
{
return
byte_offset_of
(
JavaThread
,
_exception_handler_pc
);
}
static
ByteSize
stack_overflow_limit_offset
()
{
return
byte_offset_of
(
JavaThread
,
_stack_overflow_limit
);
}
static
ByteSize
is_method_handle_return_offset
()
{
return
byte_offset_of
(
JavaThread
,
_is_method_handle_return
);
}
static
ByteSize
stack_guard_state_offset
()
{
return
byte_offset_of
(
JavaThread
,
_stack_guard_state
);
}
static
ByteSize
suspend_flags_offset
()
{
return
byte_offset_of
(
JavaThread
,
_suspend_flags
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录