Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
cf41cce1
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看板
提交
cf41cce1
编写于
10月 25, 2013
作者:
H
hseigel
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
7333c169
7b66ed50
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
src/os/bsd/vm/os_bsd.cpp
src/os/bsd/vm/os_bsd.cpp
+4
-6
src/os/linux/vm/os_linux.cpp
src/os/linux/vm/os_linux.cpp
+4
-6
src/share/vm/services/jmm.h
src/share/vm/services/jmm.h
+1
-0
src/share/vm/services/management.cpp
src/share/vm/services/management.cpp
+3
-0
未找到文件。
src/os/bsd/vm/os_bsd.cpp
浏览文件 @
cf41cce1
...
@@ -945,17 +945,15 @@ extern "C" Thread* get_thread() {
...
@@ -945,17 +945,15 @@ extern "C" Thread* get_thread() {
// Used by VMSelfDestructTimer and the MemProfiler.
// Used by VMSelfDestructTimer and the MemProfiler.
double
os
::
elapsedTime
()
{
double
os
::
elapsedTime
()
{
return
(
double
)(
os
::
elapsed_counter
())
*
0.000001
;
return
(
(
double
)
os
::
elapsed_counter
())
/
os
::
elapsed_frequency
()
;
}
}
jlong
os
::
elapsed_counter
()
{
jlong
os
::
elapsed_counter
()
{
timeval
time
;
return
javaTimeNanos
()
-
initial_time_count
;
int
status
=
gettimeofday
(
&
time
,
NULL
);
return
jlong
(
time
.
tv_sec
)
*
1000
*
1000
+
jlong
(
time
.
tv_usec
)
-
initial_time_count
;
}
}
jlong
os
::
elapsed_frequency
()
{
jlong
os
::
elapsed_frequency
()
{
return
(
1000
*
1000
);
return
NANOSECS_PER_SEC
;
// nanosecond resolution
}
}
bool
os
::
supports_vtime
()
{
return
true
;
}
bool
os
::
supports_vtime
()
{
return
true
;
}
...
@@ -3582,7 +3580,7 @@ void os::init(void) {
...
@@ -3582,7 +3580,7 @@ void os::init(void) {
Bsd
::
_main_thread
=
pthread_self
();
Bsd
::
_main_thread
=
pthread_self
();
Bsd
::
clock_init
();
Bsd
::
clock_init
();
initial_time_count
=
os
::
elapsed_counter
();
initial_time_count
=
javaTimeNanos
();
#ifdef __APPLE__
#ifdef __APPLE__
// XXXDARWIN
// XXXDARWIN
...
...
src/os/linux/vm/os_linux.cpp
浏览文件 @
cf41cce1
...
@@ -1333,17 +1333,15 @@ void os::Linux::capture_initial_stack(size_t max_size) {
...
@@ -1333,17 +1333,15 @@ void os::Linux::capture_initial_stack(size_t max_size) {
// Used by VMSelfDestructTimer and the MemProfiler.
// Used by VMSelfDestructTimer and the MemProfiler.
double
os
::
elapsedTime
()
{
double
os
::
elapsedTime
()
{
return
(
double
)(
os
::
elapsed_counter
())
*
0.000001
;
return
(
(
double
)
os
::
elapsed_counter
())
/
os
::
elapsed_frequency
();
// nanosecond resolution
}
}
jlong
os
::
elapsed_counter
()
{
jlong
os
::
elapsed_counter
()
{
timeval
time
;
return
javaTimeNanos
()
-
initial_time_count
;
int
status
=
gettimeofday
(
&
time
,
NULL
);
return
jlong
(
time
.
tv_sec
)
*
1000
*
1000
+
jlong
(
time
.
tv_usec
)
-
initial_time_count
;
}
}
jlong
os
::
elapsed_frequency
()
{
jlong
os
::
elapsed_frequency
()
{
return
(
1000
*
1000
);
return
NANOSECS_PER_SEC
;
// nanosecond resolution
}
}
bool
os
::
supports_vtime
()
{
return
true
;
}
bool
os
::
supports_vtime
()
{
return
true
;
}
...
@@ -4750,7 +4748,7 @@ void os::init(void) {
...
@@ -4750,7 +4748,7 @@ void os::init(void) {
Linux
::
_main_thread
=
pthread_self
();
Linux
::
_main_thread
=
pthread_self
();
Linux
::
clock_init
();
Linux
::
clock_init
();
initial_time_count
=
os
::
elapsed_counter
();
initial_time_count
=
javaTimeNanos
();
// pthread_condattr initialization for monotonic clock
// pthread_condattr initialization for monotonic clock
int
status
;
int
status
;
...
...
src/share/vm/services/jmm.h
浏览文件 @
cf41cce1
...
@@ -78,6 +78,7 @@ typedef enum {
...
@@ -78,6 +78,7 @@ typedef enum {
JMM_COMPILE_TOTAL_TIME_MS
=
8
,
/* Total accumulated time spent in compilation */
JMM_COMPILE_TOTAL_TIME_MS
=
8
,
/* Total accumulated time spent in compilation */
JMM_GC_TIME_MS
=
9
,
/* Total accumulated time spent in collection */
JMM_GC_TIME_MS
=
9
,
/* Total accumulated time spent in collection */
JMM_GC_COUNT
=
10
,
/* Total number of collections */
JMM_GC_COUNT
=
10
,
/* Total number of collections */
JMM_JVM_UPTIME_MS
=
11
,
/* The JVM uptime in milliseconds */
JMM_INTERNAL_ATTRIBUTE_INDEX
=
100
,
JMM_INTERNAL_ATTRIBUTE_INDEX
=
100
,
JMM_CLASS_LOADED_BYTES
=
101
,
/* Number of bytes loaded instance classes */
JMM_CLASS_LOADED_BYTES
=
101
,
/* Number of bytes loaded instance classes */
...
...
src/share/vm/services/management.cpp
浏览文件 @
cf41cce1
...
@@ -1032,6 +1032,9 @@ static jlong get_long_attribute(jmmLongAttribute att) {
...
@@ -1032,6 +1032,9 @@ static jlong get_long_attribute(jmmLongAttribute att) {
case
JMM_JVM_INIT_DONE_TIME_MS
:
case
JMM_JVM_INIT_DONE_TIME_MS
:
return
Management
::
vm_init_done_time
();
return
Management
::
vm_init_done_time
();
case
JMM_JVM_UPTIME_MS
:
return
Management
::
ticks_to_ms
(
os
::
elapsed_counter
());
case
JMM_COMPILE_TOTAL_TIME_MS
:
case
JMM_COMPILE_TOTAL_TIME_MS
:
return
Management
::
ticks_to_ms
(
CompileBroker
::
total_compilation_ticks
());
return
Management
::
ticks_to_ms
(
CompileBroker
::
total_compilation_ticks
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录