Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
9eb79ab2
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看板
提交
9eb79ab2
编写于
9月 13, 2013
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8024752: Log TraceMetadata* output to gclog_or_tty instead of tty
Reviewed-by: brutisso, mgerdin, coleenp
上级
ec905165
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
28 deletion
+32
-28
src/share/vm/memory/metaspace.cpp
src/share/vm/memory/metaspace.cpp
+19
-19
src/share/vm/runtime/virtualspace.cpp
src/share/vm/runtime/virtualspace.cpp
+11
-8
src/share/vm/runtime/virtualspace.hpp
src/share/vm/runtime/virtualspace.hpp
+2
-1
未找到文件。
src/share/vm/memory/metaspace.cpp
浏览文件 @
9eb79ab2
...
...
@@ -881,9 +881,9 @@ Metachunk* VirtualSpaceNode::take_from_committed(size_t chunk_word_size) {
if
(
!
is_available
(
chunk_word_size
))
{
if
(
TraceMetadataChunkAllocation
)
{
tty
->
print
(
"VirtualSpaceNode::take_from_committed() not available %d words "
,
chunk_word_size
);
gclog_or_
tty
->
print
(
"VirtualSpaceNode::take_from_committed() not available %d words "
,
chunk_word_size
);
// Dump some information about the virtual space that is nearly full
print_on
(
tty
);
print_on
(
gclog_or_
tty
);
}
return
NULL
;
}
...
...
@@ -904,7 +904,7 @@ bool VirtualSpaceNode::expand_by(size_t words, bool pre_touch) {
if
(
TraceMetavirtualspaceAllocation
&&
!
result
)
{
gclog_or_tty
->
print_cr
(
"VirtualSpaceNode::expand_by() failed "
"for byte size "
SIZE_FORMAT
,
bytes
);
virtual_space
()
->
print
(
);
virtual_space
()
->
print
_on
(
gclog_or_tty
);
}
return
result
;
}
...
...
@@ -1173,7 +1173,7 @@ void VirtualSpaceList::link_vs(VirtualSpaceNode* new_entry) {
#endif
if
(
TraceMetavirtualspaceAllocation
&&
Verbose
)
{
VirtualSpaceNode
*
vsl
=
current_virtual_space
();
vsl
->
print_on
(
tty
);
vsl
->
print_on
(
gclog_or_
tty
);
}
}
...
...
@@ -1733,9 +1733,9 @@ void ChunkManager::chunk_freelist_deallocate(Metachunk* chunk) {
assert_lock_strong
(
SpaceManager
::
expand_lock
());
slow_locked_verify
();
if
(
TraceMetadataChunkAllocation
)
{
tty
->
print_cr
(
"ChunkManager::chunk_freelist_deallocate: chunk "
PTR_FORMAT
" size "
SIZE_FORMAT
,
chunk
,
chunk
->
word_size
());
gclog_or_
tty
->
print_cr
(
"ChunkManager::chunk_freelist_deallocate: chunk "
PTR_FORMAT
" size "
SIZE_FORMAT
,
chunk
,
chunk
->
word_size
());
}
free_chunks_put
(
chunk
);
}
...
...
@@ -1764,9 +1764,9 @@ Metachunk* ChunkManager::free_chunks_get(size_t word_size) {
dec_free_chunks_total
(
chunk
->
capacity_word_size
());
if
(
TraceMetadataChunkAllocation
&&
Verbose
)
{
tty
->
print_cr
(
"ChunkManager::free_chunks_get: free_list "
PTR_FORMAT
" head "
PTR_FORMAT
" size "
SIZE_FORMAT
,
free_list
,
chunk
,
chunk
->
word_size
());
gclog_or_
tty
->
print_cr
(
"ChunkManager::free_chunks_get: free_list "
PTR_FORMAT
" head "
PTR_FORMAT
" size "
SIZE_FORMAT
,
free_list
,
chunk
,
chunk
->
word_size
());
}
}
else
{
chunk
=
humongous_dictionary
()
->
get_chunk
(
...
...
@@ -1776,10 +1776,10 @@ Metachunk* ChunkManager::free_chunks_get(size_t word_size) {
if
(
chunk
!=
NULL
)
{
if
(
TraceMetadataHumongousAllocation
)
{
size_t
waste
=
chunk
->
word_size
()
-
word_size
;
tty
->
print_cr
(
"Free list allocate humongous chunk size "
SIZE_FORMAT
" for requested size "
SIZE_FORMAT
" waste "
SIZE_FORMAT
,
chunk
->
word_size
(),
word_size
,
waste
);
gclog_or_tty
->
print_cr
(
"Free list allocate humongous chunk size "
SIZE_FORMAT
" for requested size "
SIZE_FORMAT
" waste "
SIZE_FORMAT
,
chunk
->
word_size
(),
word_size
,
waste
);
}
// Chunk is being removed from the chunks free list.
dec_free_chunks_total
(
chunk
->
capacity_word_size
());
...
...
@@ -1821,10 +1821,10 @@ Metachunk* ChunkManager::chunk_freelist_allocate(size_t word_size) {
}
else
{
list_count
=
humongous_dictionary
()
->
total_count
();
}
tty
->
print
(
"ChunkManager::chunk_freelist_allocate: "
PTR_FORMAT
" chunk "
PTR_FORMAT
" size "
SIZE_FORMAT
" count "
SIZE_FORMAT
" "
,
this
,
chunk
,
chunk
->
word_size
(),
list_count
);
locked_print_free_chunks
(
tty
);
gclog_or_
tty
->
print
(
"ChunkManager::chunk_freelist_allocate: "
PTR_FORMAT
" chunk "
PTR_FORMAT
" size "
SIZE_FORMAT
" count "
SIZE_FORMAT
" "
,
this
,
chunk
,
chunk
->
word_size
(),
list_count
);
locked_print_free_chunks
(
gclog_or_
tty
);
}
return
chunk
;
...
...
@@ -2344,7 +2344,7 @@ void SpaceManager::add_chunk(Metachunk* new_chunk, bool make_current) {
sum_count_in_chunks_in_use
());
new_chunk
->
print_on
(
gclog_or_tty
);
if
(
vs_list
()
!=
NULL
)
{
vs_list
()
->
chunk_manager
()
->
locked_print_free_chunks
(
tty
);
vs_list
()
->
chunk_manager
()
->
locked_print_free_chunks
(
gclog_or_
tty
);
}
}
}
...
...
src/share/vm/runtime/virtualspace.cpp
浏览文件 @
9eb79ab2
...
...
@@ -754,16 +754,19 @@ void VirtualSpace::check_for_contiguity() {
assert
(
high
()
<=
upper_high
(),
"upper high"
);
}
void
VirtualSpace
::
print
(
)
{
tty
->
print
(
"Virtual space:"
);
if
(
special
())
tty
->
print
(
" (pinned in memory)"
);
tty
->
cr
();
tty
->
print_cr
(
" - committed: "
SIZE_FORMAT
,
committed_size
());
tty
->
print_cr
(
" - reserved: "
SIZE_FORMAT
,
reserved_size
());
tty
->
print_cr
(
" - [low, high]: ["
INTPTR_FORMAT
", "
INTPTR_FORMAT
"]"
,
low
(),
high
());
tty
->
print_cr
(
" - [low_b, high_b]: ["
INTPTR_FORMAT
", "
INTPTR_FORMAT
"]"
,
low_boundary
(),
high_boundary
());
void
VirtualSpace
::
print
_on
(
outputStream
*
out
)
{
out
->
print
(
"Virtual space:"
);
if
(
special
())
out
->
print
(
" (pinned in memory)"
);
out
->
cr
();
out
->
print_cr
(
" - committed: "
SIZE_FORMAT
,
committed_size
());
out
->
print_cr
(
" - reserved: "
SIZE_FORMAT
,
reserved_size
());
out
->
print_cr
(
" - [low, high]: ["
INTPTR_FORMAT
", "
INTPTR_FORMAT
"]"
,
low
(),
high
());
out
->
print_cr
(
" - [low_b, high_b]: ["
INTPTR_FORMAT
", "
INTPTR_FORMAT
"]"
,
low_boundary
(),
high_boundary
());
}
void
VirtualSpace
::
print
()
{
print_on
(
tty
);
}
/////////////// Unit tests ///////////////
...
...
src/share/vm/runtime/virtualspace.hpp
浏览文件 @
9eb79ab2
...
...
@@ -203,7 +203,8 @@ class VirtualSpace VALUE_OBJ_CLASS_SPEC {
void
check_for_contiguity
()
PRODUCT_RETURN
;
// Debugging
void
print
()
PRODUCT_RETURN
;
void
print_on
(
outputStream
*
out
)
PRODUCT_RETURN
;
void
print
();
};
#endif // SHARE_VM_RUNTIME_VIRTUALSPACE_HPP
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录