Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
543c676f
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
543c676f
编写于
4月 15, 2014
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8039957: Replace the last few %p usages with PTR_FORMAT in the GC code
Reviewed-by: jwilhelm, sjohanss, jmasa
上级
18308af3
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
12 addition
and
8 deletion
+12
-8
hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
...pot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+2
-1
hotspot/src/share/vm/gc_implementation/g1/g1RemSet.cpp
hotspot/src/share/vm/gc_implementation/g1/g1RemSet.cpp
+2
-1
hotspot/src/share/vm/gc_implementation/parallelScavenge/objectStartArray.hpp
...m/gc_implementation/parallelScavenge/objectStartArray.hpp
+0
-2
hotspot/src/share/vm/gc_implementation/parallelScavenge/psScavenge.inline.hpp
.../gc_implementation/parallelScavenge/psScavenge.inline.hpp
+2
-1
hotspot/src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp
...rc/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp
+4
-2
hotspot/src/share/vm/memory/defNewGeneration.cpp
hotspot/src/share/vm/memory/defNewGeneration.cpp
+2
-1
未找到文件。
hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
543c676f
...
...
@@ -57,6 +57,7 @@
#include "oops/oop.inline.hpp"
#include "oops/oop.pcgc.inline.hpp"
#include "runtime/vmThread.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/ticks.hpp"
size_t
G1CollectedHeap
::
_humongous_object_threshold_in_words
=
0
;
...
...
@@ -3222,7 +3223,7 @@ class VerifyKlassClosure: public KlassClosure {
_young_ref_counter_closure
.
reset_count
();
k
->
oops_do
(
&
_young_ref_counter_closure
);
if
(
_young_ref_counter_closure
.
count
()
>
0
)
{
guarantee
(
k
->
has_modified_oops
(),
err_msg
(
"Klass
%p
, has young refs but is not dirty."
,
k
));
guarantee
(
k
->
has_modified_oops
(),
err_msg
(
"Klass
"
PTR_FORMAT
"
, has young refs but is not dirty."
,
k
));
}
}
};
...
...
hotspot/src/share/vm/gc_implementation/g1/g1RemSet.cpp
浏览文件 @
543c676f
...
...
@@ -36,6 +36,7 @@
#include "gc_implementation/g1/heapRegionRemSet.hpp"
#include "memory/iterator.hpp"
#include "oops/oop.inline.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/intHisto.hpp"
#define CARD_REPEAT_HISTO 0
...
...
@@ -163,7 +164,7 @@ public:
void
printCard
(
HeapRegion
*
card_region
,
size_t
card_index
,
HeapWord
*
card_start
)
{
gclog_or_tty
->
print_cr
(
"T %u Region ["
PTR_FORMAT
", "
PTR_FORMAT
") "
"RS names card
%p
: "
"RS names card
"
SIZE_FORMAT_HEX
"
: "
"["
PTR_FORMAT
", "
PTR_FORMAT
")"
,
_worker_i
,
card_region
->
bottom
(),
card_region
->
end
(),
...
...
hotspot/src/share/vm/gc_implementation/parallelScavenge/objectStartArray.hpp
浏览文件 @
543c676f
...
...
@@ -128,8 +128,6 @@ class ObjectStartArray : public CHeapObj<mtGC> {
// When doing MT offsets, we can't assert this.
//assert(offset > *block, "Found backwards allocation");
*
block
=
(
jbyte
)
offset
;
// tty->print_cr("[%p]", p);
}
// Optimized for finding the first object that crosses into
...
...
hotspot/src/share/vm/gc_implementation/parallelScavenge/psScavenge.inline.hpp
浏览文件 @
543c676f
...
...
@@ -31,6 +31,7 @@
#include "gc_implementation/parallelScavenge/psPromotionManager.inline.hpp"
#include "gc_implementation/parallelScavenge/psScavenge.hpp"
#include "memory/iterator.hpp"
#include "utilities/globalDefinitions.hpp"
inline
void
PSScavenge
::
save_to_space_top_before_gc
()
{
ParallelScavengeHeap
*
heap
=
(
ParallelScavengeHeap
*
)
Universe
::
heap
();
...
...
@@ -178,7 +179,7 @@ class PSScavengeKlassClosure: public KlassClosure {
#ifndef PRODUCT
if
(
TraceScavenge
)
{
ResourceMark
rm
;
gclog_or_tty
->
print_cr
(
"PSScavengeKlassClosure::do_klass
%p
, %s, dirty: %s"
,
gclog_or_tty
->
print_cr
(
"PSScavengeKlassClosure::do_klass
"
PTR_FORMAT
"
, %s, dirty: %s"
,
klass
,
klass
->
external_name
(),
klass
->
has_modified_oops
()
?
"true"
:
"false"
);
...
...
hotspot/src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp
浏览文件 @
543c676f
...
...
@@ -27,6 +27,7 @@
#include "memory/sharedHeap.hpp"
#include "oops/arrayOop.hpp"
#include "oops/oop.inline.hpp"
#include "utilities/globalDefinitions.hpp"
ParGCAllocBuffer
::
ParGCAllocBuffer
(
size_t
desired_plab_sz_
)
:
_word_sz
(
desired_plab_sz_
),
_bottom
(
NULL
),
_top
(
NULL
),
...
...
@@ -132,8 +133,9 @@ void PLABStats::adjust_desired_plab_sz(uint no_of_gc_workers) {
#ifndef PRODUCT
void
ParGCAllocBuffer
::
print
()
{
gclog_or_tty
->
print
(
"parGCAllocBuffer: _bottom: %p _top: %p _end: %p _hard_end: %p"
"_retained: %c _retained_filler: [%p,%p)
\n
"
,
gclog_or_tty
->
print
(
"parGCAllocBuffer: _bottom: "
PTR_FORMAT
" _top: "
PTR_FORMAT
" _end: "
PTR_FORMAT
" _hard_end: "
PTR_FORMAT
" _retained: %c"
" _retained_filler: ["
PTR_FORMAT
","
PTR_FORMAT
")
\n
"
,
_bottom
,
_top
,
_end
,
_hard_end
,
"FT"
[
_retained
],
_retained_filler
.
start
(),
_retained_filler
.
end
());
}
...
...
hotspot/src/share/vm/memory/defNewGeneration.cpp
浏览文件 @
543c676f
...
...
@@ -44,6 +44,7 @@
#include "runtime/java.hpp"
#include "runtime/thread.inline.hpp"
#include "utilities/copy.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/stack.inline.hpp"
//
...
...
@@ -131,7 +132,7 @@ void KlassScanClosure::do_klass(Klass* klass) {
#ifndef PRODUCT
if
(
TraceScavenge
)
{
ResourceMark
rm
;
gclog_or_tty
->
print_cr
(
"KlassScanClosure::do_klass
%p
, %s, dirty: %s"
,
gclog_or_tty
->
print_cr
(
"KlassScanClosure::do_klass
"
PTR_FORMAT
"
, %s, dirty: %s"
,
klass
,
klass
->
external_name
(),
klass
->
has_modified_oops
()
?
"true"
:
"false"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录