Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
3de8d495
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看板
提交
3de8d495
编写于
1月 19, 2012
作者:
T
tonyp
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7078465: G1: Don't use the undefined value (-1) for the G1 old memory pool max size
Reviewed-by: johnc, brutisso
上级
cb25725e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
7 deletion
+6
-7
src/share/vm/gc_implementation/g1/g1MonitoringSupport.hpp
src/share/vm/gc_implementation/g1/g1MonitoringSupport.hpp
+5
-6
src/share/vm/services/g1MemoryPool.hpp
src/share/vm/services/g1MemoryPool.hpp
+1
-1
未找到文件。
src/share/vm/gc_implementation/g1/g1MonitoringSupport.hpp
浏览文件 @
3de8d495
...
@@ -89,16 +89,15 @@ class G1CollectedHeap;
...
@@ -89,16 +89,15 @@ class G1CollectedHeap;
//
//
// * Min Capacity
// * Min Capacity
//
//
// We set this to 0 for all spaces. We could consider setting the old
// We set this to 0 for all spaces.
// min capacity to the min capacity of the heap (see 7078465).
//
//
// * Max Capacity
// * Max Capacity
//
//
// For jstat, we set the max capacity of all spaces to heap_capacity,
// For jstat, we set the max capacity of all spaces to heap_capacity,
// given that we don't always have a reasonabl
y
upper bound on how big
// given that we don't always have a reasonabl
e
upper bound on how big
// each space can grow. For the memory pools, we
actually
make the max
// each space can grow. For the memory pools, we make the max
// capacity undefined
. We could consider setting the old max capacity
// capacity undefined
with the exception of the old memory pool for
//
to the max capacity of the heap (see 7078465)
.
//
which we make the max capacity same as the max heap capacity
.
//
//
// If we had more accurate occupancy / capacity information per
// If we had more accurate occupancy / capacity information per
// region set the above calculations would be greatly simplified and
// region set the above calculations would be greatly simplified and
...
...
src/share/vm/services/g1MemoryPool.hpp
浏览文件 @
3de8d495
...
@@ -101,7 +101,7 @@ public:
...
@@ -101,7 +101,7 @@ public:
return
_g1mm
->
old_space_used
();
return
_g1mm
->
old_space_used
();
}
}
size_t
max_size
()
const
{
size_t
max_size
()
const
{
return
_
undefined_max
;
return
_
g1mm
->
old_gen_max
()
;
}
}
MemoryUsage
get_memory_usage
();
MemoryUsage
get_memory_usage
();
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录