Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
31014efc
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看板
提交
31014efc
编写于
8月 07, 2014
作者:
T
tschatzl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8054341: Remove some obsolete code in G1CollectedHeap class
Summary: Remove dead code. Reviewed-by: stefank, brutisso
上级
69662ade
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
19 deletion
+3
-19
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+3
-16
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
+0
-3
未找到文件。
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
31014efc
...
...
@@ -2589,15 +2589,12 @@ bool G1CollectedHeap::is_in(const void* p) const {
// Iteration functions.
// Iterates an OopClosure over all ref-containing fields of objects
// within a HeapRegion.
// Applies an ExtendedOopClosure onto all references of objects within a HeapRegion.
class
IterateOopClosureRegionClosure
:
public
HeapRegionClosure
{
MemRegion
_mr
;
ExtendedOopClosure
*
_cl
;
public:
IterateOopClosureRegionClosure
(
MemRegion
mr
,
ExtendedOopClosure
*
cl
)
:
_mr
(
mr
),
_cl
(
cl
)
{}
IterateOopClosureRegionClosure
(
ExtendedOopClosure
*
cl
)
:
_cl
(
cl
)
{}
bool
doHeapRegion
(
HeapRegion
*
r
)
{
if
(
!
r
->
continuesHumongous
())
{
r
->
oop_iterate
(
_cl
);
...
...
@@ -2607,12 +2604,7 @@ public:
};
void
G1CollectedHeap
::
oop_iterate
(
ExtendedOopClosure
*
cl
)
{
IterateOopClosureRegionClosure
blk
(
_g1_committed
,
cl
);
heap_region_iterate
(
&
blk
);
}
void
G1CollectedHeap
::
oop_iterate
(
MemRegion
mr
,
ExtendedOopClosure
*
cl
)
{
IterateOopClosureRegionClosure
blk
(
mr
,
cl
);
IterateOopClosureRegionClosure
blk
(
cl
);
heap_region_iterate
(
&
blk
);
}
...
...
@@ -4812,11 +4804,6 @@ protected:
Mutex
_stats_lock
;
Mutex
*
stats_lock
()
{
return
&
_stats_lock
;
}
size_t
getNCards
()
{
return
(
_g1h
->
capacity
()
+
G1BlockOffsetSharedArray
::
N_bytes
-
1
)
/
G1BlockOffsetSharedArray
::
N_bytes
;
}
public:
G1ParTask
(
G1CollectedHeap
*
g1h
,
RefToScanQueueSet
*
task_queues
)
:
AbstractGangTask
(
"G1 collection"
),
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
浏览文件 @
31014efc
...
...
@@ -1380,9 +1380,6 @@ public:
// "cl.do_oop" on each.
virtual
void
oop_iterate
(
ExtendedOopClosure
*
cl
);
// Same as above, restricted to a memory region.
void
oop_iterate
(
MemRegion
mr
,
ExtendedOopClosure
*
cl
);
// Iterate over all objects, calling "cl.do_object" on each.
virtual
void
object_iterate
(
ObjectClosure
*
cl
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录