Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
6652bf0c
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看板
提交
6652bf0c
编写于
11月 06, 2009
作者:
K
kamg
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
49fcde7c
b9ed1181
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
6 deletion
+20
-6
src/share/vm/memory/compactingPermGenGen.cpp
src/share/vm/memory/compactingPermGenGen.cpp
+9
-5
src/share/vm/memory/compactingPermGenGen.hpp
src/share/vm/memory/compactingPermGenGen.hpp
+4
-1
src/share/vm/memory/generation.cpp
src/share/vm/memory/generation.cpp
+7
-0
未找到文件。
src/share/vm/memory/compactingPermGenGen.cpp
浏览文件 @
6652bf0c
...
@@ -352,15 +352,19 @@ void CompactingPermGenGen::post_compact() {
...
@@ -352,15 +352,19 @@ void CompactingPermGenGen::post_compact() {
}
}
// Do not use in time-critical operations due to the possibility of paging
// in otherwise untouched or previously unread portions of the perm gen,
// for instance, the shared spaces. NOTE: Because CompactingPermGenGen
// derives from OneContigSpaceCardGeneration which is supposed to have a
// single space, and does not override its object_iterate() method,
// object iteration via that interface does not look at the objects in
// the shared spaces when using CDS. This should be fixed; see CR 6897798.
void
CompactingPermGenGen
::
space_iterate
(
SpaceClosure
*
blk
,
bool
usedOnly
)
{
void
CompactingPermGenGen
::
space_iterate
(
SpaceClosure
*
blk
,
bool
usedOnly
)
{
OneContigSpaceCardGeneration
::
space_iterate
(
blk
,
usedOnly
);
OneContigSpaceCardGeneration
::
space_iterate
(
blk
,
usedOnly
);
if
(
spec
()
->
enable_shared_spaces
())
{
if
(
spec
()
->
enable_shared_spaces
())
{
#ifdef PRODUCT
// Making the rw_space walkable will page in the entire space, and
// Making the rw_space walkable will page in the entire space, and
// is to be avoided. However, this is required for Verify options.
// is to be avoided in the case of time-critical operations.
ShouldNotReachHere
();
// However, this is required for Verify and heap dump operations.
#endif
blk
->
do_space
(
ro_space
());
blk
->
do_space
(
ro_space
());
blk
->
do_space
(
rw_space
());
blk
->
do_space
(
rw_space
());
}
}
...
...
src/share/vm/memory/compactingPermGenGen.hpp
浏览文件 @
6652bf0c
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
class
PermanentGenerationSpec
;
class
PermanentGenerationSpec
;
// This is the "generation" view of a CompactingPermGen.
// This is the "generation" view of a CompactingPermGen.
// NOTE: the shared spaces used for CDS are here handled in
// a somewhat awkward and potentially buggy fashion, see CR 6801625.
// This infelicity should be fixed, see CR 6897789.
class
CompactingPermGenGen
:
public
OneContigSpaceCardGeneration
{
class
CompactingPermGenGen
:
public
OneContigSpaceCardGeneration
{
friend
class
VMStructs
;
friend
class
VMStructs
;
// Abstractly, this is a subtype that gets access to protected fields.
// Abstractly, this is a subtype that gets access to protected fields.
...
@@ -47,7 +50,7 @@ private:
...
@@ -47,7 +50,7 @@ private:
OffsetTableContigSpace
*
_ro_space
;
OffsetTableContigSpace
*
_ro_space
;
OffsetTableContigSpace
*
_rw_space
;
OffsetTableContigSpace
*
_rw_space
;
// With shared spaces there is a dicotomy in the use of the
// With shared spaces there is a dic
h
otomy in the use of the
// _virtual_space of the generation. There is a portion of the
// _virtual_space of the generation. There is a portion of the
// _virtual_space that is used for the unshared part of the
// _virtual_space that is used for the unshared part of the
// permanent generation and a portion that is reserved for the shared part.
// permanent generation and a portion that is reserved for the shared part.
...
...
src/share/vm/memory/generation.cpp
浏览文件 @
6652bf0c
...
@@ -606,6 +606,13 @@ void OneContigSpaceCardGeneration::shrink_by(size_t bytes) {
...
@@ -606,6 +606,13 @@ void OneContigSpaceCardGeneration::shrink_by(size_t bytes) {
void
OneContigSpaceCardGeneration
::
prepare_for_verify
()
{}
void
OneContigSpaceCardGeneration
::
prepare_for_verify
()
{}
// Override for a card-table generation with one contiguous
// space. NOTE: For reasons that are lost in the fog of history,
// this code is used when you iterate over perm gen objects,
// even when one uses CDS, where the perm gen has a couple of
// other spaces; this is because CompactingPermGenGen derives
// from OneContigSpaceCardGeneration. This should be cleaned up,
// see CR 6897789..
void
OneContigSpaceCardGeneration
::
object_iterate
(
ObjectClosure
*
blk
)
{
void
OneContigSpaceCardGeneration
::
object_iterate
(
ObjectClosure
*
blk
)
{
_the_space
->
object_iterate
(
blk
);
_the_space
->
object_iterate
(
blk
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录