Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
a3c963b4
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看板
提交
a3c963b4
编写于
8月 27, 2010
作者:
D
dcubed
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
4f0e4610
6d8cd4f8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
5 deletion
+14
-5
src/os/linux/vm/os_linux.cpp
src/os/linux/vm/os_linux.cpp
+13
-4
src/share/vm/oops/instanceKlass.cpp
src/share/vm/oops/instanceKlass.cpp
+1
-1
未找到文件。
src/os/linux/vm/os_linux.cpp
浏览文件 @
a3c963b4
...
...
@@ -2597,10 +2597,14 @@ get_stack_bounds(uintptr_t *bottom, uintptr_t *top)
// where we're going to put our guard pages, truncate the mapping at
// that point by munmap()ping it. This ensures that when we later
// munmap() the guard pages we don't leave a hole in the stack
// mapping.
// mapping. This only affects the main/initial thread, but guard
// against future OS changes
bool
os
::
create_stack_guard_pages
(
char
*
addr
,
size_t
size
)
{
uintptr_t
stack_extent
,
stack_base
;
if
(
get_stack_bounds
(
&
stack_extent
,
&
stack_base
))
{
bool
chk_bounds
=
NOT_DEBUG
(
os
::
Linux
::
is_initial_thread
())
DEBUG_ONLY
(
true
);
if
(
chk_bounds
&&
get_stack_bounds
(
&
stack_extent
,
&
stack_base
))
{
assert
(
os
::
Linux
::
is_initial_thread
(),
"growable stack in non-initial thread"
);
if
(
stack_extent
<
(
uintptr_t
)
addr
)
::
munmap
((
void
*
)
stack_extent
,
(
uintptr_t
)
addr
-
stack_extent
);
}
...
...
@@ -2609,10 +2613,15 @@ bool os::create_stack_guard_pages(char* addr, size_t size) {
}
// If this is a growable mapping, remove the guard pages entirely by
// munmap()ping them. If not, just call uncommit_memory().
// munmap()ping them. If not, just call uncommit_memory(). This only
// affects the main/initial thread, but guard against future OS changes
bool
os
::
remove_stack_guard_pages
(
char
*
addr
,
size_t
size
)
{
uintptr_t
stack_extent
,
stack_base
;
if
(
get_stack_bounds
(
&
stack_extent
,
&
stack_base
))
{
bool
chk_bounds
=
NOT_DEBUG
(
os
::
Linux
::
is_initial_thread
())
DEBUG_ONLY
(
true
);
if
(
chk_bounds
&&
get_stack_bounds
(
&
stack_extent
,
&
stack_base
))
{
assert
(
os
::
Linux
::
is_initial_thread
(),
"growable stack in non-initial thread"
);
return
::
munmap
(
addr
,
size
)
==
0
;
}
...
...
src/share/vm/oops/instanceKlass.cpp
浏览文件 @
a3c963b4
...
...
@@ -382,7 +382,7 @@ void instanceKlass::initialize_impl(instanceKlassHandle this_oop, TRAPS) {
const
char
*
desc
=
"Could not initialize class "
;
const
char
*
className
=
this_oop
->
external_name
();
size_t
msglen
=
strlen
(
desc
)
+
strlen
(
className
)
+
1
;
char
*
message
=
NEW_
C_HEAP
_ARRAY
(
char
,
msglen
);
char
*
message
=
NEW_
RESOURCE
_ARRAY
(
char
,
msglen
);
if
(
NULL
==
message
)
{
// Out of memory: can't create detailed error message
THROW_MSG
(
vmSymbols
::
java_lang_NoClassDefFoundError
(),
className
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录