Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
e900f46f
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看板
提交
e900f46f
编写于
8月 26, 2014
作者:
B
brutisso
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8029524: Remove unsused method CollectedHeap::unsafe_max_alloc()
Reviewed-by: pliden, jmasa
上级
7c8c621b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
0 addition
and
55 deletion
+0
-55
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+0
-19
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
+0
-9
src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp
..._implementation/parallelScavenge/parallelScavengeHeap.cpp
+0
-4
src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp
..._implementation/parallelScavenge/parallelScavengeHeap.hpp
+0
-2
src/share/vm/gc_interface/collectedHeap.hpp
src/share/vm/gc_interface/collectedHeap.hpp
+0
-9
src/share/vm/memory/genCollectedHeap.cpp
src/share/vm/memory/genCollectedHeap.cpp
+0
-4
src/share/vm/memory/genCollectedHeap.hpp
src/share/vm/memory/genCollectedHeap.hpp
+0
-8
未找到文件。
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
e900f46f
...
...
@@ -2336,25 +2336,6 @@ size_t G1CollectedHeap::recalculate_used() const {
return
blk
.
result
();
}
size_t
G1CollectedHeap
::
unsafe_max_alloc
()
{
if
(
num_free_regions
()
>
0
)
return
HeapRegion
::
GrainBytes
;
// otherwise, is there space in the current allocation region?
// We need to store the current allocation region in a local variable
// here. The problem is that this method doesn't take any locks and
// there may be other threads which overwrite the current allocation
// region field. attempt_allocation(), for example, sets it to NULL
// and this can happen *after* the NULL check here but before the call
// to free(), resulting in a SIGSEGV. Note that this doesn't appear
// to be a problem in the optimized build, since the two loads of the
// current allocation region field are optimized away.
HeapRegion
*
hr
=
_mutator_alloc_region
.
get
();
if
(
hr
==
NULL
)
{
return
0
;
}
return
hr
->
free
();
}
bool
G1CollectedHeap
::
should_do_concurrent_full_gc
(
GCCause
::
Cause
cause
)
{
switch
(
cause
)
{
case
GCCause
::
_gc_locker
:
return
GCLockerInvokesConcurrent
;
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
浏览文件 @
e900f46f
...
...
@@ -1170,15 +1170,6 @@ public:
// end fields defining the extent of the contiguous allocation region.)
// But G1CollectedHeap doesn't yet support this.
// Return an estimate of the maximum allocation that could be performed
// without triggering any collection or expansion activity. In a
// generational collector, for example, this is probably the largest
// allocation that could be supported (without expansion) in the youngest
// generation. It is "unsafe" because no locks are taken; the result
// should be treated as an approximation, not a guarantee, for use in
// heuristic resizing decisions.
virtual
size_t
unsafe_max_alloc
();
virtual
bool
is_maximal_no_gc
()
const
{
return
_hrs
.
available
()
==
0
;
}
...
...
src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp
浏览文件 @
e900f46f
...
...
@@ -485,10 +485,6 @@ void ParallelScavengeHeap::ensure_parsability(bool retire_tlabs) {
young_gen
()
->
eden_space
()
->
ensure_parsability
();
}
size_t
ParallelScavengeHeap
::
unsafe_max_alloc
()
{
return
young_gen
()
->
eden_space
()
->
free_in_bytes
();
}
size_t
ParallelScavengeHeap
::
tlab_capacity
(
Thread
*
thr
)
const
{
return
young_gen
()
->
eden_space
()
->
tlab_capacity
(
thr
);
}
...
...
src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp
浏览文件 @
e900f46f
...
...
@@ -184,8 +184,6 @@ class ParallelScavengeHeap : public CollectedHeap {
void
accumulate_statistics_all_tlabs
();
void
resize_all_tlabs
();
size_t
unsafe_max_alloc
();
bool
supports_tlab_allocation
()
const
{
return
true
;
}
size_t
tlab_capacity
(
Thread
*
thr
)
const
;
...
...
src/share/vm/gc_interface/collectedHeap.hpp
浏览文件 @
e900f46f
...
...
@@ -395,15 +395,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
// allocation from them and necessitating allocation of new TLABs.
virtual
void
ensure_parsability
(
bool
retire_tlabs
);
// Return an estimate of the maximum allocation that could be performed
// without triggering any collection or expansion activity. In a
// generational collector, for example, this is probably the largest
// allocation that could be supported (without expansion) in the youngest
// generation. It is "unsafe" because no locks are taken; the result
// should be treated as an approximation, not a guarantee, for use in
// heuristic resizing decisions.
virtual
size_t
unsafe_max_alloc
()
=
0
;
// Section on thread-local allocation buffers (TLABs)
// If the heap supports thread-local allocation buffers, it should override
// the following methods:
...
...
src/share/vm/memory/genCollectedHeap.cpp
浏览文件 @
e900f46f
...
...
@@ -704,10 +704,6 @@ HeapWord** GenCollectedHeap::end_addr() const {
return
_gens
[
0
]
->
end_addr
();
}
size_t
GenCollectedHeap
::
unsafe_max_alloc
()
{
return
_gens
[
0
]
->
unsafe_max_alloc_nogc
();
}
// public collection interfaces
void
GenCollectedHeap
::
collect
(
GCCause
::
Cause
cause
)
{
...
...
src/share/vm/memory/genCollectedHeap.hpp
浏览文件 @
e900f46f
...
...
@@ -166,14 +166,6 @@ public:
HeapWord
**
top_addr
()
const
;
HeapWord
**
end_addr
()
const
;
// Return an estimate of the maximum allocation that could be performed
// without triggering any collection activity. In a generational
// collector, for example, this is probably the largest allocation that
// could be supported in the youngest generation. It is "unsafe" because
// no locks are taken; the result should be treated as an approximation,
// not a guarantee.
size_t
unsafe_max_alloc
();
// Does this heap support heap inspection? (+PrintClassHistogram)
virtual
bool
supports_heap_inspection
()
const
{
return
true
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录