Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0e82c29a
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看板
提交
0e82c29a
编写于
5月 17, 2013
作者:
E
ehelin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8014277: Remove ObjectClosure as base class for BoolObjectClosure
Reviewed-by: brutisso, tschatzl
上级
65c687b0
变更
16
显示空白变更内容
内联
并排
Showing
16 changed file
with
1 addition
and
29 deletion
+1
-29
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp
...ion/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp
+0
-7
src/share/vm/gc_implementation/g1/concurrentMark.hpp
src/share/vm/gc_implementation/g1/concurrentMark.hpp
+0
-3
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+0
-1
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
+0
-1
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
...are/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
+0
-1
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
.../gc_implementation/parallelScavenge/psParallelCompact.cpp
+0
-2
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp
.../gc_implementation/parallelScavenge/psParallelCompact.hpp
+0
-1
src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
...hare/vm/gc_implementation/parallelScavenge/psScavenge.cpp
+0
-3
src/share/vm/gc_implementation/shared/markSweep.cpp
src/share/vm/gc_implementation/shared/markSweep.cpp
+0
-1
src/share/vm/gc_implementation/shared/markSweep.hpp
src/share/vm/gc_implementation/shared/markSweep.hpp
+0
-1
src/share/vm/memory/defNewGeneration.cpp
src/share/vm/memory/defNewGeneration.cpp
+0
-3
src/share/vm/memory/defNewGeneration.hpp
src/share/vm/memory/defNewGeneration.hpp
+0
-1
src/share/vm/memory/iterator.hpp
src/share/vm/memory/iterator.hpp
+1
-1
src/share/vm/memory/referenceProcessor.cpp
src/share/vm/memory/referenceProcessor.cpp
+0
-1
src/share/vm/memory/sharedHeap.cpp
src/share/vm/memory/sharedHeap.cpp
+0
-1
src/share/vm/runtime/jniHandles.cpp
src/share/vm/runtime/jniHandles.cpp
+0
-1
未找到文件。
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp
浏览文件 @
0e82c29a
...
...
@@ -485,10 +485,6 @@ class CMSIsAliveClosure: public BoolObjectClosure {
assert
(
!
span
.
is_empty
(),
"Empty span could spell trouble"
);
}
void
do_object
(
oop
obj
)
{
assert
(
false
,
"not to be invoked"
);
}
bool
do_object_b
(
oop
obj
);
};
...
...
@@ -1536,9 +1532,6 @@ class ScanMarkedObjectsAgainClosure: public UpwardsObjectClosure {
_bit_map
(
bit_map
),
_par_scan_closure
(
cl
)
{
}
void
do_object
(
oop
obj
)
{
guarantee
(
false
,
"Call do_object_b(oop, MemRegion) instead"
);
}
bool
do_object_b
(
oop
obj
)
{
guarantee
(
false
,
"Call do_object_b(oop, MemRegion) form instead"
);
return
false
;
...
...
src/share/vm/gc_implementation/g1/concurrentMark.hpp
浏览文件 @
0e82c29a
...
...
@@ -44,9 +44,6 @@ class G1CMIsAliveClosure: public BoolObjectClosure {
public:
G1CMIsAliveClosure
(
G1CollectedHeap
*
g1
)
:
_g1
(
g1
)
{
}
void
do_object
(
oop
obj
)
{
ShouldNotCallThis
();
}
bool
do_object_b
(
oop
obj
);
};
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
0e82c29a
...
...
@@ -5090,7 +5090,6 @@ class G1AlwaysAliveClosure: public BoolObjectClosure {
G1CollectedHeap
*
_g1
;
public:
G1AlwaysAliveClosure
(
G1CollectedHeap
*
g1
)
:
_g1
(
g1
)
{}
void
do_object
(
oop
p
)
{
assert
(
false
,
"Do not call."
);
}
bool
do_object_b
(
oop
p
)
{
if
(
p
!=
NULL
)
{
return
true
;
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
浏览文件 @
0e82c29a
...
...
@@ -165,7 +165,6 @@ class G1STWIsAliveClosure: public BoolObjectClosure {
G1CollectedHeap
*
_g1
;
public:
G1STWIsAliveClosure
(
G1CollectedHeap
*
g1
)
:
_g1
(
g1
)
{}
void
do_object
(
oop
p
)
{
assert
(
false
,
"Do not call."
);
}
bool
do_object_b
(
oop
p
);
};
...
...
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
浏览文件 @
0e82c29a
...
...
@@ -580,7 +580,6 @@ void PSMarkSweep::mark_sweep_phase2() {
// This should be moved to the shared markSweep code!
class
PSAlwaysTrueClosure
:
public
BoolObjectClosure
{
public:
void
do_object
(
oop
p
)
{
ShouldNotReachHere
();
}
bool
do_object_b
(
oop
p
)
{
return
true
;
}
};
static
PSAlwaysTrueClosure
always_true
;
...
...
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
浏览文件 @
0e82c29a
...
...
@@ -781,7 +781,6 @@ ParallelCompactData PSParallelCompact::_summary_data;
PSParallelCompact
::
IsAliveClosure
PSParallelCompact
::
_is_alive_closure
;
void
PSParallelCompact
::
IsAliveClosure
::
do_object
(
oop
p
)
{
ShouldNotReachHere
();
}
bool
PSParallelCompact
::
IsAliveClosure
::
do_object_b
(
oop
p
)
{
return
mark_bitmap
()
->
is_marked
(
p
);
}
void
PSParallelCompact
::
KeepAliveClosure
::
do_oop
(
oop
*
p
)
{
PSParallelCompact
::
KeepAliveClosure
::
do_oop_work
(
p
);
}
...
...
@@ -2413,7 +2412,6 @@ void PSParallelCompact::adjust_class_loader(ParCompactionManager* cm,
// This should be moved to the shared markSweep code!
class
PSAlwaysTrueClosure
:
public
BoolObjectClosure
{
public:
void
do_object
(
oop
p
)
{
ShouldNotReachHere
();
}
bool
do_object_b
(
oop
p
)
{
return
true
;
}
};
static
PSAlwaysTrueClosure
always_true
;
...
...
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp
浏览文件 @
0e82c29a
...
...
@@ -784,7 +784,6 @@ class PSParallelCompact : AllStatic {
//
class
IsAliveClosure
:
public
BoolObjectClosure
{
public:
virtual
void
do_object
(
oop
p
);
virtual
bool
do_object_b
(
oop
p
);
};
...
...
src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
浏览文件 @
0e82c29a
...
...
@@ -70,9 +70,6 @@ bool PSScavenge::_promotion_failed = false;
// Define before use
class
PSIsAliveClosure
:
public
BoolObjectClosure
{
public:
void
do_object
(
oop
p
)
{
assert
(
false
,
"Do not call."
);
}
bool
do_object_b
(
oop
p
)
{
return
(
!
PSScavenge
::
is_obj_in_young
((
HeapWord
*
)
p
))
||
p
->
is_forwarded
();
}
...
...
src/share/vm/gc_implementation/shared/markSweep.cpp
浏览文件 @
0e82c29a
...
...
@@ -166,7 +166,6 @@ void MarkSweep::restore_marks() {
MarkSweep
::
IsAliveClosure
MarkSweep
::
is_alive
;
void
MarkSweep
::
IsAliveClosure
::
do_object
(
oop
p
)
{
ShouldNotReachHere
();
}
bool
MarkSweep
::
IsAliveClosure
::
do_object_b
(
oop
p
)
{
return
p
->
is_gc_marked
();
}
MarkSweep
::
KeepAliveClosure
MarkSweep
::
keep_alive
;
...
...
src/share/vm/gc_implementation/shared/markSweep.hpp
浏览文件 @
0e82c29a
...
...
@@ -88,7 +88,6 @@ class MarkSweep : AllStatic {
// Used for java/lang/ref handling
class
IsAliveClosure
:
public
BoolObjectClosure
{
public:
virtual
void
do_object
(
oop
p
);
virtual
bool
do_object_b
(
oop
p
);
};
...
...
src/share/vm/memory/defNewGeneration.cpp
浏览文件 @
0e82c29a
...
...
@@ -50,9 +50,6 @@
DefNewGeneration
::
IsAliveClosure
::
IsAliveClosure
(
Generation
*
g
)
:
_g
(
g
)
{
assert
(
g
->
level
()
==
0
,
"Optimized for youngest gen."
);
}
void
DefNewGeneration
::
IsAliveClosure
::
do_object
(
oop
p
)
{
assert
(
false
,
"Do not call."
);
}
bool
DefNewGeneration
::
IsAliveClosure
::
do_object_b
(
oop
p
)
{
return
(
HeapWord
*
)
p
>=
_g
->
reserved
().
end
()
||
p
->
is_forwarded
();
}
...
...
src/share/vm/memory/defNewGeneration.hpp
浏览文件 @
0e82c29a
...
...
@@ -150,7 +150,6 @@ protected:
Generation
*
_g
;
public:
IsAliveClosure
(
Generation
*
g
);
void
do_object
(
oop
p
);
bool
do_object_b
(
oop
p
);
};
...
...
src/share/vm/memory/iterator.hpp
浏览文件 @
0e82c29a
...
...
@@ -158,7 +158,7 @@ class ObjectClosure : public Closure {
};
class
BoolObjectClosure
:
public
Object
Closure
{
class
BoolObjectClosure
:
public
Closure
{
public:
virtual
bool
do_object_b
(
oop
obj
)
=
0
;
};
...
...
src/share/vm/memory/referenceProcessor.cpp
浏览文件 @
0e82c29a
...
...
@@ -252,7 +252,6 @@ uint ReferenceProcessor::count_jni_refs() {
class
AlwaysAliveClosure
:
public
BoolObjectClosure
{
public:
virtual
bool
do_object_b
(
oop
obj
)
{
return
true
;
}
virtual
void
do_object
(
oop
obj
)
{
assert
(
false
,
"Don't call"
);
}
};
class
CountHandleClosure
:
public
OopClosure
{
...
...
src/share/vm/memory/sharedHeap.cpp
浏览文件 @
0e82c29a
...
...
@@ -212,7 +212,6 @@ void SharedHeap::process_strong_roots(bool activate_scope,
class
AlwaysTrueClosure
:
public
BoolObjectClosure
{
public:
void
do_object
(
oop
p
)
{
ShouldNotReachHere
();
}
bool
do_object_b
(
oop
p
)
{
return
true
;
}
};
static
AlwaysTrueClosure
always_true
;
...
...
src/share/vm/runtime/jniHandles.cpp
浏览文件 @
0e82c29a
...
...
@@ -188,7 +188,6 @@ long JNIHandles::weak_global_handle_memory_usage() {
class
AlwaysAliveClosure
:
public
BoolObjectClosure
{
public:
bool
do_object_b
(
oop
obj
)
{
return
true
;
}
void
do_object
(
oop
obj
)
{
assert
(
false
,
"Don't call"
);
}
};
class
CountHandleClosure
:
public
OopClosure
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录