Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
2e824946
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看板
提交
2e824946
编写于
8月 22, 2011
作者:
Y
ysr
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
6beb97f2
31d96e43
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
5 addition
and
32 deletion
+5
-32
src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
+5
-16
src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
+0
-6
src/share/vm/gc_implementation/g1/g1_globals.hpp
src/share/vm/gc_implementation/g1/g1_globals.hpp
+0
-10
未找到文件。
src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
浏览文件 @
2e824946
...
...
@@ -401,11 +401,9 @@ G1CollectorPolicy::G1CollectorPolicy() :
_concurrent_mark_remark_times_ms
->
add
(
0.05
);
_concurrent_mark_cleanup_times_ms
->
add
(
0.20
);
_tenuring_threshold
=
MaxTenuringThreshold
;
// if G1FixedSurvivorSpaceSize is 0 which means the size is not
// fixed, then _max_survivor_regions will be calculated at
// calculate_young_list_target_length during initialization
_max_survivor_regions
=
G1FixedSurvivorSpaceSize
/
HeapRegion
::
GrainBytes
;
// _max_survivor_regions will be calculated by
// calculate_young_list_target_length() during initialization.
_max_survivor_regions
=
0
;
assert
(
GCTimeRatio
>
0
,
"we should have set it to a default value set_g1_gc_flags() "
...
...
@@ -2290,18 +2288,9 @@ void G1CollectorPolicy::calculate_max_gc_locker_expansion() {
// Calculates survivor space parameters.
void
G1CollectorPolicy
::
calculate_survivors_policy
()
{
if
(
G1FixedSurvivorSpaceSize
==
0
)
{
_max_survivor_regions
=
_young_list_target_length
/
SurvivorRatio
;
}
else
{
_max_survivor_regions
=
G1FixedSurvivorSpaceSize
/
HeapRegion
::
GrainBytes
;
}
if
(
G1FixedTenuringThreshold
)
{
_tenuring_threshold
=
MaxTenuringThreshold
;
}
else
{
_tenuring_threshold
=
_survivors_age_table
.
compute_tenuring_threshold
(
HeapRegion
::
GrainWords
*
_max_survivor_regions
);
}
}
#ifndef PRODUCT
...
...
src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
浏览文件 @
2e824946
...
...
@@ -1090,18 +1090,12 @@ public:
bool
is_young_list_full
()
{
size_t
young_list_length
=
_g1
->
young_list
()
->
length
();
size_t
young_list_target_length
=
_young_list_target_length
;
if
(
G1FixedEdenSize
)
{
young_list_target_length
-=
_max_survivor_regions
;
}
return
young_list_length
>=
young_list_target_length
;
}
bool
can_expand_young_list
()
{
size_t
young_list_length
=
_g1
->
young_list
()
->
length
();
size_t
young_list_max_length
=
_young_list_max_length
;
if
(
G1FixedEdenSize
)
{
young_list_max_length
-=
_max_survivor_regions
;
}
return
young_list_length
<
young_list_max_length
;
}
...
...
src/share/vm/gc_implementation/g1/g1_globals.hpp
浏览文件 @
2e824946
...
...
@@ -249,16 +249,6 @@
"When set, G1 will fail when it encounters an FP 'error', " \
"so as to allow debugging") \
\
develop(bool, G1FixedTenuringThreshold, false, \
"When set, G1 will not adjust the tenuring threshold") \
\
develop(bool, G1FixedEdenSize, false, \
"When set, G1 will not allocate unused survivor space regions") \
\
develop(uintx, G1FixedSurvivorSpaceSize, 0, \
"If non-0 is the size of the G1 survivor space, " \
"otherwise SurvivorRatio is used to determine the size") \
\
product(uintx, G1HeapRegionSize, 0, \
"Size of the G1 regions.") \
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录