Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
05f3f566
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看板
提交
05f3f566
编写于
5月 24, 2013
作者:
J
jwilhelm
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
62f7b21f
524304d3
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
44 addition
and
48 deletion
+44
-48
src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
...lementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
+5
-5
src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp
...lementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp
+3
-3
src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp
src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp
+2
-3
src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp
..._implementation/parallelScavenge/psAdaptiveSizePolicy.cpp
+6
-6
src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
..._implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
+7
-7
src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.hpp
...mentation/parallelScavenge/psGCAdaptivePolicyCounters.hpp
+2
-2
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
...are/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
+7
-7
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
.../gc_implementation/parallelScavenge/psParallelCompact.cpp
+7
-7
src/share/vm/gc_implementation/shared/adaptiveSizePolicy.cpp
src/share/vm/gc_implementation/shared/adaptiveSizePolicy.cpp
+2
-2
src/share/vm/memory/universe.cpp
src/share/vm/memory/universe.cpp
+3
-6
未找到文件。
src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
浏览文件 @
05f3f566
/*
* Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -969,8 +969,8 @@ size_t CMSAdaptiveSizePolicy::promo_increment_aligned_up(size_t cur_promo) {
}
void
CMSAdaptiveSizePolicy
::
compute_
young_generation_free_spac
e
(
size_t
cur_eden
,
size_t
max_eden_size
)
void
CMSAdaptiveSizePolicy
::
compute_
eden_space_siz
e
(
size_t
cur_eden
,
size_t
max_eden_size
)
{
size_t
desired_eden_size
=
cur_eden
;
size_t
eden_limit
=
max_eden_size
;
...
...
@@ -978,7 +978,7 @@ void CMSAdaptiveSizePolicy::compute_young_generation_free_space(size_t cur_eden,
// Printout input
if
(
PrintGC
&&
PrintAdaptiveSizePolicy
)
{
gclog_or_tty
->
print_cr
(
"CMSAdaptiveSizePolicy::compute_
young_generation_free_spac
e: "
"CMSAdaptiveSizePolicy::compute_
eden_space_siz
e: "
"cur_eden "
SIZE_FORMAT
,
cur_eden
);
}
...
...
@@ -1024,7 +1024,7 @@ void CMSAdaptiveSizePolicy::compute_young_generation_free_space(size_t cur_eden,
if
(
PrintGC
&&
PrintAdaptiveSizePolicy
)
{
gclog_or_tty
->
print_cr
(
"CMSAdaptiveSizePolicy::compute_
young_generation_free_spac
e limits:"
"CMSAdaptiveSizePolicy::compute_
eden_space_siz
e limits:"
" desired_eden_size: "
SIZE_FORMAT
" old_eden_size: "
SIZE_FORMAT
,
desired_eden_size
,
cur_eden
);
...
...
src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp
浏览文件 @
05f3f566
/*
* Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -436,8 +436,8 @@ class CMSAdaptiveSizePolicy : public AdaptiveSizePolicy {
size_t
generation_alignment
()
{
return
_generation_alignment
;
}
virtual
void
compute_
young_generation_free_spac
e
(
size_t
cur_eden
,
size_t
max_eden_size
);
virtual
void
compute_
eden_space_siz
e
(
size_t
cur_eden
,
size_t
max_eden_size
);
// Calculates new survivor space size; returns a new tenuring threshold
// value. Stores new survivor size in _survivor_size.
virtual
uint
compute_survivor_space_size_and_threshold
(
...
...
src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp
浏览文件 @
05f3f566
/*
* Copyright (c) 2005, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -585,8 +585,7 @@ void ASParNewGeneration::compute_new_size() {
size_policy
->
avg_young_live
()
->
sample
(
used
());
size_policy
->
avg_eden_live
()
->
sample
(
eden
()
->
used
());
size_policy
->
compute_young_generation_free_space
(
eden
()
->
capacity
(),
max_gen_size
());
size_policy
->
compute_eden_space_size
(
eden
()
->
capacity
(),
max_gen_size
());
resize
(
size_policy
->
calculated_eden_size_in_bytes
(),
size_policy
->
calculated_survivor_size_in_bytes
());
...
...
src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp
浏览文件 @
05f3f566
...
...
@@ -194,7 +194,7 @@ void PSAdaptiveSizePolicy::clear_generation_free_space_flags() {
// If this is not a full GC, only test and modify the young generation.
void
PSAdaptiveSizePolicy
::
compute_generation_free_space
(
void
PSAdaptiveSizePolicy
::
compute_generation
s
_free_space
(
size_t
young_live
,
size_t
eden_live
,
size_t
old_live
,
...
...
@@ -729,7 +729,7 @@ void PSAdaptiveSizePolicy::adjust_promo_for_pause_time(bool is_full_gc,
if
(
PrintAdaptiveSizePolicy
&&
Verbose
)
{
gclog_or_tty
->
print_cr
(
"PSAdaptiveSizePolicy::
compute_old_gen_free_spac
e "
"PSAdaptiveSizePolicy::
adjust_promo_for_pause_tim
e "
"adjusting gen sizes for major pause (avg %f goal %f). "
"desired_promo_size "
SIZE_FORMAT
" promo delta "
SIZE_FORMAT
,
_avg_major_pause
->
average
(),
gc_pause_goal_sec
(),
...
...
@@ -786,7 +786,7 @@ void PSAdaptiveSizePolicy::adjust_eden_for_pause_time(bool is_full_gc,
if
(
PrintAdaptiveSizePolicy
&&
Verbose
)
{
gclog_or_tty
->
print_cr
(
"PSAdaptiveSizePolicy::
compute_eden_space_siz
e "
"PSAdaptiveSizePolicy::
adjust_eden_for_pause_tim
e "
"adjusting gen sizes for major pause (avg %f goal %f). "
"desired_eden_size "
SIZE_FORMAT
" eden delta "
SIZE_FORMAT
,
_avg_major_pause
->
average
(),
gc_pause_goal_sec
(),
...
...
@@ -1001,7 +1001,7 @@ size_t PSAdaptiveSizePolicy::adjust_promo_for_footprint(
if
(
PrintAdaptiveSizePolicy
&&
Verbose
)
{
gclog_or_tty
->
print_cr
(
"AdaptiveSizePolicy::
compute_generation_free_space
"
"AdaptiveSizePolicy::
adjust_promo_for_footprint
"
"adjusting tenured gen for footprint. "
"starting promo size "
SIZE_FORMAT
" reduced promo size "
SIZE_FORMAT
,
...
...
@@ -1025,7 +1025,7 @@ size_t PSAdaptiveSizePolicy::adjust_eden_for_footprint(
if
(
PrintAdaptiveSizePolicy
&&
Verbose
)
{
gclog_or_tty
->
print_cr
(
"AdaptiveSizePolicy::
compute_generation_free_space
"
"AdaptiveSizePolicy::
adjust_eden_for_footprint
"
"adjusting eden for footprint. "
" starting eden size "
SIZE_FORMAT
" reduced eden size "
SIZE_FORMAT
...
...
@@ -1280,7 +1280,7 @@ void PSAdaptiveSizePolicy::update_averages(bool is_survivor_overflow,
if
(
PrintAdaptiveSizePolicy
)
{
gclog_or_tty
->
print
(
"AdaptiveSizePolicy::
compute_survivor_space_size_and_thresh
:"
"AdaptiveSizePolicy::
update_averages
:"
" survived: "
SIZE_FORMAT
" promoted: "
SIZE_FORMAT
" overflow: %s"
,
...
...
src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
浏览文件 @
05f3f566
...
...
@@ -344,13 +344,13 @@ class PSAdaptiveSizePolicy : public AdaptiveSizePolicy {
// Takes current used space in all generations as input, as well
// as an indication if a full gc has just been performed, for use
// in deciding if an OOM error should be thrown.
void
compute_generation_free_space
(
size_t
young_live
,
size_t
eden_live
,
size_t
old_live
,
size_t
cur_eden
,
// current eden in bytes
size_t
max_old_gen_size
,
size_t
max_eden_size
,
bool
is_full_gc
);
void
compute_generation
s
_free_space
(
size_t
young_live
,
size_t
eden_live
,
size_t
old_live
,
size_t
cur_eden
,
// current eden in bytes
size_t
max_old_gen_size
,
size_t
max_eden_size
,
bool
is_full_gc
);
void
compute_eden_space_size
(
size_t
young_live
,
size_t
eden_live
,
...
...
src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.hpp
浏览文件 @
05f3f566
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -119,7 +119,7 @@ class PSGCAdaptivePolicyCounters : public GCAdaptivePolicyCounters {
ps_size_policy
()
->
change_old_gen_for_min_pauses
());
}
// compute_generation_free_space() statistics
// compute_generation
s
_free_space() statistics
inline
void
update_avg_major_pause
()
{
_avg_major_pause
->
set_value
(
...
...
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
浏览文件 @
05f3f566
...
...
@@ -290,13 +290,13 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
// Used for diagnostics
size_policy
->
clear_generation_free_space_flags
();
size_policy
->
compute_generation_free_space
(
young_live
,
eden_live
,
old_live
,
cur_eden
,
max_old_gen_size
,
max_eden_size
,
true
/* full gc*/
);
size_policy
->
compute_generation
s
_free_space
(
young_live
,
eden_live
,
old_live
,
cur_eden
,
max_old_gen_size
,
max_eden_size
,
true
/* full gc*/
);
size_policy
->
check_gc_overhead_limit
(
young_live
,
eden_live
,
...
...
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
浏览文件 @
05f3f566
...
...
@@ -2101,13 +2101,13 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
// Used for diagnostics
size_policy
->
clear_generation_free_space_flags
();
size_policy
->
compute_generation_free_space
(
young_live
,
eden_live
,
old_live
,
cur_eden
,
max_old_gen_size
,
max_eden_size
,
true
/* full gc*/
);
size_policy
->
compute_generation
s
_free_space
(
young_live
,
eden_live
,
old_live
,
cur_eden
,
max_old_gen_size
,
max_eden_size
,
true
/* full gc*/
);
size_policy
->
check_gc_overhead_limit
(
young_live
,
eden_live
,
...
...
src/share/vm/gc_implementation/shared/adaptiveSizePolicy.cpp
浏览文件 @
05f3f566
/*
* Copyright (c) 2004, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -467,7 +467,7 @@ void AdaptiveSizePolicy::check_gc_overhead_limit(
(
free_in_old_gen
<
(
size_t
)
mem_free_old_limit
&&
free_in_eden
<
(
size_t
)
mem_free_eden_limit
)))
{
gclog_or_tty
->
print_cr
(
"PSAdaptiveSizePolicy::c
ompute_generation_free_space limits
:"
"PSAdaptiveSizePolicy::c
heck_gc_overhead_limit
:"
" promo_limit: "
SIZE_FORMAT
" max_eden_size: "
SIZE_FORMAT
" total_free_limit: "
SIZE_FORMAT
...
...
src/share/vm/memory/universe.cpp
浏览文件 @
05f3f566
...
...
@@ -228,11 +228,8 @@ void Universe::serialize(SerializeClosure* f, bool do_all) {
void
Universe
::
check_alignment
(
uintx
size
,
uintx
alignment
,
const
char
*
name
)
{
if
(
size
<
alignment
||
size
%
alignment
!=
0
)
{
ResourceMark
rm
;
stringStream
st
;
st
.
print
(
"Size of %s ("
UINTX_FORMAT
" bytes) must be aligned to "
UINTX_FORMAT
" bytes"
,
name
,
size
,
alignment
);
char
*
error
=
st
.
as_string
();
vm_exit_during_initialization
(
error
);
vm_exit_during_initialization
(
err_msg
(
"Size of %s ("
UINTX_FORMAT
" bytes) must be aligned to "
UINTX_FORMAT
" bytes"
,
name
,
size
,
alignment
));
}
}
...
...
@@ -916,7 +913,7 @@ ReservedSpace Universe::reserve_heap(size_t heap_size, size_t alignment) {
}
if
(
!
total_rs
.
is_reserved
())
{
vm_exit_during_initialization
(
err_msg
(
"Could not reserve enough space for
object heap %d bytes"
,
total_reserved
));
vm_exit_during_initialization
(
err_msg
(
"Could not reserve enough space for
"
SIZE_FORMAT
"KB object heap"
,
total_reserved
/
K
));
return
total_rs
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录