Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
9191009b
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看板
提交
9191009b
编写于
4月 14, 2015
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8077420: Build failure with SS12u4
Reviewed-by: dholmes, lfoltan
上级
76f33b71
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
6 addition
and
11 deletion
+6
-11
src/share/vm/utilities/stack.hpp
src/share/vm/utilities/stack.hpp
+6
-3
src/share/vm/utilities/stack.inline.hpp
src/share/vm/utilities/stack.inline.hpp
+0
-8
未找到文件。
src/share/vm/utilities/stack.hpp
浏览文件 @
9191009b
...
@@ -96,11 +96,16 @@ class Stack: public StackBase<F>
...
@@ -96,11 +96,16 @@ class Stack: public StackBase<F>
public:
public:
friend
class
StackIterator
<
E
,
F
>
;
friend
class
StackIterator
<
E
,
F
>
;
// Number of elements that fit in 4K bytes minus the size of two pointers
// (link field and malloc header).
static
const
size_t
_default_segment_size
=
(
4096
-
2
*
sizeof
(
E
*
))
/
sizeof
(
E
);
static
size_t
default_segment_size
()
{
return
_default_segment_size
;
}
// segment_size: number of items per segment
// segment_size: number of items per segment
// max_cache_size: maxmium number of *segments* to cache
// max_cache_size: maxmium number of *segments* to cache
// max_size: maximum number of items allowed, rounded to a multiple of
// max_size: maximum number of items allowed, rounded to a multiple of
// the segment size (0 == unlimited)
// the segment size (0 == unlimited)
inline
Stack
(
size_t
segment_size
=
default_segment_size
()
,
inline
Stack
(
size_t
segment_size
=
_default_segment_size
,
size_t
max_cache_size
=
4
,
size_t
max_size
=
0
);
size_t
max_cache_size
=
4
,
size_t
max_size
=
0
);
inline
~
Stack
()
{
clear
(
true
);
}
inline
~
Stack
()
{
clear
(
true
);
}
...
@@ -122,8 +127,6 @@ public:
...
@@ -122,8 +127,6 @@ public:
// clear_cache is true, also release any cached segments.
// clear_cache is true, also release any cached segments.
void
clear
(
bool
clear_cache
=
false
);
void
clear
(
bool
clear_cache
=
false
);
static
inline
size_t
default_segment_size
();
protected:
protected:
// Each segment includes space for _seg_size elements followed by a link
// Each segment includes space for _seg_size elements followed by a link
// (pointer) to the previous segment; the space is allocated as a single block
// (pointer) to the previous segment; the space is allocated as a single block
...
...
src/share/vm/utilities/stack.inline.hpp
浏览文件 @
9191009b
...
@@ -85,14 +85,6 @@ void Stack<E, F>::clear(bool clear_cache)
...
@@ -85,14 +85,6 @@ void Stack<E, F>::clear(bool clear_cache)
reset
(
clear_cache
);
reset
(
clear_cache
);
}
}
template
<
class
E
,
MEMFLAGS
F
>
size_t
Stack
<
E
,
F
>::
default_segment_size
()
{
// Number of elements that fit in 4K bytes minus the size of two pointers
// (link field and malloc header).
return
(
4096
-
2
*
sizeof
(
E
*
))
/
sizeof
(
E
);
}
template
<
class
E
,
MEMFLAGS
F
>
template
<
class
E
,
MEMFLAGS
F
>
size_t
Stack
<
E
,
F
>::
adjust_segment_size
(
size_t
seg_size
)
size_t
Stack
<
E
,
F
>::
adjust_segment_size
(
size_t
seg_size
)
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录