Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
71dfd6fe
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看板
提交
71dfd6fe
编写于
9月 18, 2012
作者:
J
jcoomes
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
456b6ef3
59e241c6
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
35 addition
and
2 deletion
+35
-2
src/share/vm/runtime/arguments.cpp
src/share/vm/runtime/arguments.cpp
+6
-0
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+3
-0
src/share/vm/runtime/java.cpp
src/share/vm/runtime/java.cpp
+21
-0
src/share/vm/services/memTracker.hpp
src/share/vm/services/memTracker.hpp
+5
-2
未找到文件。
src/share/vm/runtime/arguments.cpp
浏览文件 @
71dfd6fe
...
@@ -1978,6 +1978,12 @@ bool Arguments::check_vm_args_consistency() {
...
@@ -1978,6 +1978,12 @@ bool Arguments::check_vm_args_consistency() {
status
=
status
&&
verify_min_value
(
ClassMetaspaceSize
,
1
*
M
,
status
=
status
&&
verify_min_value
(
ClassMetaspaceSize
,
1
*
M
,
"ClassMetaspaceSize"
);
"ClassMetaspaceSize"
);
// check native memory tracking flags
if
(
PrintNMTStatistics
&&
MemTracker
::
tracking_level
()
==
MemTracker
::
NMT_off
)
{
warning
(
"PrintNMTStatistics is disabled, because native memory tracking is not enabled"
);
PrintNMTStatistics
=
false
;
}
return
status
;
return
status
;
}
}
...
...
src/share/vm/runtime/globals.hpp
浏览文件 @
71dfd6fe
...
@@ -863,6 +863,9 @@ class CommandLineFlags {
...
@@ -863,6 +863,9 @@ class CommandLineFlags {
product(ccstr, NativeMemoryTracking, "off", \
product(ccstr, NativeMemoryTracking, "off", \
"Native memory tracking options") \
"Native memory tracking options") \
\
\
diagnostic(bool, PrintNMTStatistics, false, \
"Print native memory tracking summary data if it is on") \
\
diagnostic(bool, LogCompilation, false, \
diagnostic(bool, LogCompilation, false, \
"Log compilation activity in detail to hotspot.log or LogFile") \
"Log compilation activity in detail to hotspot.log or LogFile") \
\
\
...
...
src/share/vm/runtime/java.cpp
浏览文件 @
71dfd6fe
...
@@ -56,6 +56,8 @@
...
@@ -56,6 +56,8 @@
#include "runtime/task.hpp"
#include "runtime/task.hpp"
#include "runtime/timer.hpp"
#include "runtime/timer.hpp"
#include "runtime/vm_operations.hpp"
#include "runtime/vm_operations.hpp"
#include "services/memReporter.hpp"
#include "services/memTracker.hpp"
#include "trace/tracing.hpp"
#include "trace/tracing.hpp"
#include "trace/traceEventTypes.hpp"
#include "trace/traceEventTypes.hpp"
#include "utilities/dtrace.hpp"
#include "utilities/dtrace.hpp"
...
@@ -359,6 +361,15 @@ void print_statistics() {
...
@@ -359,6 +361,15 @@ void print_statistics() {
}
}
#endif // COMPILER2
#endif // COMPILER2
#endif // ENABLE_ZAP_DEAD_LOCALS
#endif // ENABLE_ZAP_DEAD_LOCALS
// Native memory tracking data
if
(
PrintNMTStatistics
)
{
if
(
MemTracker
::
is_on
())
{
BaselineTTYOutputer
outputer
(
tty
);
MemTracker
::
print_memory_usage
(
outputer
,
K
,
false
);
}
else
{
tty
->
print_cr
(
MemTracker
::
reason
());
}
}
}
}
#else // PRODUCT MODE STATISTICS
#else // PRODUCT MODE STATISTICS
...
@@ -376,6 +387,16 @@ void print_statistics() {
...
@@ -376,6 +387,16 @@ void print_statistics() {
if
(
PrintBiasedLockingStatistics
)
{
if
(
PrintBiasedLockingStatistics
)
{
BiasedLocking
::
print_counters
();
BiasedLocking
::
print_counters
();
}
}
// Native memory tracking data
if
(
PrintNMTStatistics
)
{
if
(
MemTracker
::
is_on
())
{
BaselineTTYOutputer
outputer
(
tty
);
MemTracker
::
print_memory_usage
(
outputer
,
K
,
false
);
}
else
{
tty
->
print_cr
(
MemTracker
::
reason
());
}
}
}
}
#endif
#endif
...
...
src/share/vm/services/memTracker.hpp
浏览文件 @
71dfd6fe
...
@@ -85,7 +85,7 @@ class MemTracker : AllStatic {
...
@@ -85,7 +85,7 @@ class MemTracker : AllStatic {
NMT_shutdown
// shutdown
NMT_shutdown
// shutdown
};
};
public:
// native memory tracking level
// native memory tracking level
enum
NMTLevel
{
enum
NMTLevel
{
NMT_off
,
// native memory tracking is off
NMT_off
,
// native memory tracking is off
...
@@ -93,7 +93,6 @@ class MemTracker : AllStatic {
...
@@ -93,7 +93,6 @@ class MemTracker : AllStatic {
NMT_detail
// track callsite also
NMT_detail
// track callsite also
};
};
public:
enum
ShutdownReason
{
enum
ShutdownReason
{
NMT_shutdown_none
,
// no shutdown requested
NMT_shutdown_none
,
// no shutdown requested
NMT_shutdown_user
,
// user requested shutdown
NMT_shutdown_user
,
// user requested shutdown
...
@@ -117,6 +116,10 @@ class MemTracker : AllStatic {
...
@@ -117,6 +116,10 @@ class MemTracker : AllStatic {
_state
>=
NMT_bootstrapping_single_thread
);
_state
>=
NMT_bootstrapping_single_thread
);
}
}
static
inline
enum
NMTLevel
tracking_level
()
{
return
_tracking_level
;
}
// user readable reason for shutting down NMT
// user readable reason for shutting down NMT
static
const
char
*
reason
()
{
static
const
char
*
reason
()
{
switch
(
_reason
)
{
switch
(
_reason
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录