Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
71181927
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
71181927
编写于
5月 22, 2013
作者:
B
brutisso
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8014971: Minor code cleanup of the freelist management
Reviewed-by: jwilhelm, jmasa, tschatzl
上级
34fb9b2d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
1 addition
and
29 deletion
+1
-29
src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.cpp
...c_implementation/concurrentMarkSweep/adaptiveFreeList.cpp
+0
-8
src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.hpp
...c_implementation/concurrentMarkSweep/adaptiveFreeList.hpp
+0
-1
src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp
...entation/concurrentMarkSweep/compactibleFreeListSpace.cpp
+1
-3
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
...ion/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
+0
-1
src/share/vm/memory/freeList.cpp
src/share/vm/memory/freeList.cpp
+0
-11
src/share/vm/memory/freeList.hpp
src/share/vm/memory/freeList.hpp
+0
-5
未找到文件。
src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.cpp
浏览文件 @
71181927
...
...
@@ -50,14 +50,6 @@ AdaptiveFreeList<Chunk>::AdaptiveFreeList() : FreeList<Chunk>(), _hint(0) {
init_statistics
();
}
template
<
class
Chunk
>
AdaptiveFreeList
<
Chunk
>::
AdaptiveFreeList
(
Chunk
*
fc
)
:
FreeList
<
Chunk
>
(
fc
),
_hint
(
0
)
{
init_statistics
();
#ifndef PRODUCT
_allocation_stats
.
set_returned_bytes
(
size
()
*
HeapWordSize
);
#endif
}
template
<
class
Chunk
>
void
AdaptiveFreeList
<
Chunk
>::
initialize
()
{
FreeList
<
Chunk
>::
initialize
();
...
...
src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.hpp
浏览文件 @
71181927
...
...
@@ -55,7 +55,6 @@ class AdaptiveFreeList : public FreeList<Chunk> {
public:
AdaptiveFreeList
();
AdaptiveFreeList
(
Chunk
*
fc
);
using
FreeList
<
Chunk
>::
assert_proper_lock_protection
;
#ifdef ASSERT
...
...
src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp
浏览文件 @
71181927
...
...
@@ -153,8 +153,6 @@ CompactibleFreeListSpace::CompactibleFreeListSpace(BlockOffsetSharedArray* bs,
_indexedFreeListParLocks
[
i
]
=
new
Mutex
(
Mutex
::
leaf
-
1
,
// == ExpandHeap_lock - 1
"a freelist par lock"
,
true
);
if
(
_indexedFreeListParLocks
[
i
]
==
NULL
)
vm_exit_during_initialization
(
"Could not allocate a par lock"
);
DEBUG_ONLY
(
_indexedFreeList
[
i
].
set_protecting_lock
(
_indexedFreeListParLocks
[
i
]);
)
...
...
@@ -1763,7 +1761,7 @@ CompactibleFreeListSpace::addChunkToFreeListsAtEndRecordingStats(
}
ec
->
set_size
(
size
);
debug_only
(
ec
->
mangleFreed
(
size
));
if
(
size
<
SmallForDictionary
)
{
if
(
size
<
SmallForDictionary
&&
ParallelGCThreads
!=
0
)
{
lock
=
_indexedFreeListParLocks
[
size
];
}
MutexLockerEx
x
(
lock
,
Mutex
::
_no_safepoint_check_flag
);
...
...
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
浏览文件 @
71181927
...
...
@@ -3381,7 +3381,6 @@ bool ConcurrentMarkSweepGeneration::grow_by(size_t bytes) {
assert_locked_or_safepoint
(
Heap_lock
);
bool
result
=
_virtual_space
.
expand_by
(
bytes
);
if
(
result
)
{
HeapWord
*
old_end
=
_cmsSpace
->
end
();
size_t
new_word_size
=
heap_word_size
(
_virtual_space
.
committed_size
());
MemRegion
mr
(
_cmsSpace
->
bottom
(),
new_word_size
);
...
...
src/share/vm/memory/freeList.cpp
浏览文件 @
71181927
...
...
@@ -54,17 +54,6 @@ FreeList<Chunk>::FreeList() :
_count
=
0
;
}
template
<
class
Chunk
>
FreeList
<
Chunk
>::
FreeList
(
Chunk
*
fc
)
:
_head
(
fc
),
_tail
(
fc
)
#ifdef ASSERT
,
_protecting_lock
(
NULL
)
#endif
{
_size
=
fc
->
size
();
_count
=
1
;
}
template
<
class
Chunk
>
void
FreeList
<
Chunk
>::
link_head
(
Chunk
*
v
)
{
assert_proper_lock_protection
();
...
...
src/share/vm/memory/freeList.hpp
浏览文件 @
71181927
...
...
@@ -80,8 +80,6 @@ class FreeList VALUE_OBJ_CLASS_SPEC {
// Constructor
// Construct a list without any entries.
FreeList
();
// Construct a list with "fc" as the first (and lone) entry in the list.
FreeList
(
Chunk_t
*
fc
);
// Do initialization
void
initialize
();
...
...
@@ -177,9 +175,6 @@ class FreeList VALUE_OBJ_CLASS_SPEC {
// found. Return NULL if "fc" is not found.
bool
verify_chunk_in_free_list
(
Chunk_t
*
fc
)
const
;
// Stats verification
// void verify_stats() const { ShouldNotReachHere(); };
// Printing support
static
void
print_labels_on
(
outputStream
*
st
,
const
char
*
c
);
void
print_on
(
outputStream
*
st
,
const
char
*
c
=
NULL
)
const
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录